mmc: dw-mmc: fixed secstion mismatch in reference
Subsystems (2)
Jaehoon Chung
maintainerPATCH v2 1/1 mmc: dw-mmc: fixed secstion mismatch in reference
Fixed the below message.
WARNING: drivers/mmc/host/built-in.o(.text+0x5ee8): Section mismatch in reference from the function dw_mci_probe() to the function .init.text:dw_mci_init_slot() The function dw_mci_probe() references
the function __init dw_mci_init_slot().
This is often because dw_mci_probe lacks a __init
annotation or the annotation of dw_mci_init_slot is wrong
---
Changelog v2:
- added __init macro to dw_mmc_pltfm_probe.(reviewed by Seungwon)
drivers/mmc/host/dw_mmc-pltfm.c | 2 +- drivers/mmc/host/dw_mmc.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/mmc/host/dw_mmc-pltfm.c +1 -1
@@ -21,7 +21,7 @@#include <linux/mmc/dw_mmc.h> #include "dw_mmc.h" -static int dw_mci_pltfm_probe (struct platform_device *pdev) +static int __init dw_mci_pltfm_probe (struct platform_device *pdev) {struct dw_mci *host;struct resource *regs;
drivers/mmc/host/dw_mmc.c +1 -1
@@ -1760,7 +1760,7 @@ static void dw_mci_work_routine_card(struct work_struct *work) } } -static int __init dw_mci_init_slot (struct dw_mci *host,unsigned int id) +static int dw_mci_init_slot (struct dw_mci *host,unsigned int id) {struct mmc_host *mmc;struct dw_mci_slot *slot;
Signature · 1 line
1.7.4.1
Quoted 36 lines · Jaehoon Chung
Fixed the below message.
WARNING: drivers/mmc/host/built-in.o(.text+0x5ee8): Section mismatch in reference from the function
dw_mci_probe()to the function .init.text:dw_mci_init_slot()
The functiondw_mci_probe()references
the function__initdw_mci_init_slot().
This is often becausedw_mci_probelacks a__init
annotation or the annotation ofdw_mci_init_slotis wrongSigned-off-by Jaehoon Chung <[email protected]>Signed-off-by Kyungmin Park <[email protected]>---
Changelog v2:
- added__initmacro to dw_mmc_pltfm_probe.(reviewed by Seungwon)drivers/mmc/host/dw_mmc-pltfm.c | 2 +- drivers/mmc/host/dw_mmc.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)drivers/mmc/host/dw_mmc-pltfm.c +1
-1@@ -21,7 +21,7 @@#include <linux/mmc/dw_mmc.h> #include "dw_mmc.h" -static int dw_mci_pltfm_probe (struct platform_device *pdev) +static int __init dw_mci_pltfm_probe (struct platform_device *pdev) {struct dw_mci *host;struct resource *regs;drivers/mmc/host/dw_mmc.c +0
-0
drivers/mmc/host/dw_mmc.c static void dw_mci_work_routine_card(struct work_struct *work) · line 1766
Quoted 8 lines
drivers/mmc/host/dw_mmc.c +1
-1@@ -1760,7 +1760,7 @@ static void dw_mci_work_routine_card(struct work_struct *work) } } -static int __init dw_mci_init_slot (struct dw_mci *host,unsigned int id) +static int dw_mci_init_slot (struct dw_mci *host,unsigned int id) {struct mmc_host *mmc;struct dw_mci_slot *slot;
Looks good to me.
Thanks,
Seungwon Jeon
Quoted 6 lines
--
1.7.4.1
--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html