Re: Section mismatch warnings

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Sam Ravnborg <sam@...>
Cc: Linux Kernel Mailing List <linux-kernel@...>
Date: Thursday, August 2, 2007 - 10:27 am

>>> WARNING: vmlinux.o(.init.text+0x29d40): Section mismatch: reference to .exit.text:wbsd_release_resources (between 'wbsd_init' and 'wbsd_probe')

The warnings gone with this patch but I'm not really sure it is correct.


 drivers/mmc/host/wbsd.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/drivers/mmc/host/wbsd.c b/drivers/mmc/host/wbsd.c
index e0c9808..9bf2a87 100644
--- a/drivers/mmc/host/wbsd.c
+++ b/drivers/mmc/host/wbsd.c
@@ -1266,7 +1266,7 @@ static int __devinit wbsd_alloc_mmc(struct device *dev)
 	return 0;
 }
 
-static void __devexit wbsd_free_mmc(struct device *dev)
+static void wbsd_free_mmc(struct device *dev)
 {
 	struct mmc_host *mmc;
 	struct wbsd_host *host;
@@ -1358,7 +1358,7 @@ static int __devinit wbsd_request_region(struct wbsd_host *host, int base)
 	return 0;
 }
 
-static void __devexit wbsd_release_regions(struct wbsd_host *host)
+static void wbsd_release_regions(struct wbsd_host *host)
 {
 	if (host->base)
 		release_region(host->base, 8);
@@ -1434,7 +1434,7 @@ err:
 		"Falling back on FIFO.\n", dma);
 }
 
-static void __devexit wbsd_release_dma(struct wbsd_host *host)
+static void wbsd_release_dma(struct wbsd_host *host)
 {
 	if (host->dma_addr) {
 		dma_unmap_single(mmc_dev(host->mmc), host->dma_addr,
@@ -1484,7 +1484,7 @@ static int __devinit wbsd_request_irq(struct wbsd_host *host, int irq)
 	return 0;
 }
 
-static void __devexit wbsd_release_irq(struct wbsd_host *host)
+static void  wbsd_release_irq(struct wbsd_host *host)
 {
 	if (!host->irq)
 		return;
@@ -1535,7 +1535,7 @@ static int __devinit wbsd_request_resources(struct wbsd_host *host,
  * Release all resources for the host.
  */
 
-static void __devexit wbsd_release_resources(struct wbsd_host *host)
+static void wbsd_release_resources(struct wbsd_host *host)
 {
 	wbsd_release_dma(host);
 	wbsd_release_irq(host);
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Section mismatch warnings, Gabriel C, (Mon Jul 30, 1:48 pm)
Re: Section mismatch warnings, Sam Ravnborg, (Mon Jul 30, 2:51 pm)
Re: Section mismatch warnings, Gabriel C, (Mon Jul 30, 3:31 pm)
Re: Section mismatch warnings, Gabriel C, (Tue Jul 31, 3:45 pm)
Re: Section mismatch warnings, Sam Ravnborg, (Tue Jul 31, 4:48 pm)
Re: Section mismatch warnings, Gabriel C, (Tue Jul 31, 5:58 pm)
Re: Section mismatch warnings, Gabriel C, (Thu Aug 2, 10:27 am)
Re: Section mismatch warnings, Sam Ravnborg, (Thu Aug 2, 12:31 pm)
Re: Section mismatch warnings, Gabriel C, (Thu Aug 2, 1:12 pm)
Re: Section mismatch warnings, Sam Ravnborg, (Thu Aug 2, 1:59 pm)
Re: Section mismatch warnings, Gabriel C, (Thu Aug 2, 2:24 pm)