public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Gabriel C <nix.or.die@googlemail.com>
To: Sam Ravnborg <sam@ravnborg.org>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: Section mismatch warnings
Date: Thu, 02 Aug 2007 19:12:36 +0200	[thread overview]
Message-ID: <46B21084.4050308@googlemail.com> (raw)
In-Reply-To: <20070802163108.GA2431@uranus.ravnborg.org>

Sam Ravnborg wrote:
> On Thu, Aug 02, 2007 at 04:27:34PM +0200, Gabriel C wrote:
>>>>> WARNING: vmlinux.o(.init.text+0x29d40): Section mismatch: reference to .exit.text:wbsd_release_resources (between 'wbsd_init' and 'wbsd_probe')
>>>>> WARNING: vmlinux.o(.init.text+0x29d49): Section mismatch: reference to .exit.text:wbsd_free_mmc (between 'wbsd_init' and 'wbsd_probe')
>>>>> WARNING: vmlinux.o(.init.text+0x29f28): Section mismatch: reference to .exit.text:wbsd_free_mmc (between 'wbsd_init' and 'wbsd_probe')
>>>> When a function is marked __exit and used from an init function then the safe choice
>>>> is to just remove the __exit marking. Usually this is small functions used
>>>> only in error situations.
>>>> Should be trivial too.
>>> I'll look at those too
>>>
>>>> Sorry - no patch this time. Could you try to look at it yorself then I will review.
>>> Ok I'll try.
>>>
>> The warnings gone with this patch but I'm not really sure it is correct.
> Looks correct to me.
> You drop the __devexit marking for functions used outside __exit.
> Acked-by: Sam Ravnborg <sam@ravnborg.org>

Shall I send this one to akpm with your ACK or you take care of it ?

> 
> 	Sam
>>
>>  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);
> 

  reply	other threads:[~2007-08-02 17:12 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-30 17:48 Section mismatch warnings Gabriel C
2007-07-30 18:51 ` Sam Ravnborg
2007-07-30 19:31   ` Gabriel C
2007-07-31 19:45     ` Gabriel C
2007-07-31 20:48       ` Sam Ravnborg
2007-07-31 21:58         ` Gabriel C
2007-08-01  1:30           ` [PATCH] Fix section mismatch warnings in sound/pci/hda/ Gabriel C
2007-08-02 14:27           ` Section mismatch warnings Gabriel C
2007-08-02 16:31             ` Sam Ravnborg
2007-08-02 17:12               ` Gabriel C [this message]
2007-08-02 17:59                 ` Sam Ravnborg
2007-08-02 18:24                   ` Gabriel C
  -- strict thread matches above, loose matches on Subject: below --
2006-06-23 17:40 Jan Engelhardt
2006-06-23 22:12 ` Sam Ravnborg
2006-06-23 22:22   ` Al Viro
2006-06-24 21:02     ` Sam Ravnborg
2006-06-23 22:23   ` Al Viro
2006-06-26 12:37     ` Roman Zippel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=46B21084.4050308@googlemail.com \
    --to=nix.or.die@googlemail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sam@ravnborg.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox