Re: [PATCH] ALSA: more section mismatches

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Andrew Morton <akpm@...>
Cc: Randy Dunlap <randy.dunlap@...>, lkml <linux-kernel@...>, <perex@...>
Date: Thursday, June 28, 2007 - 7:49 pm

On Thu, Jun 28, 2007 at 03:39:49PM -0700, Andrew Morton wrote:

No, it's correct. It simply says that this code can only be discarted 
after initialization if it's not a module, since it's also used from 
__exit code.

The idea behind __init_or_module is that __exit code is never executed 
for non-modular code, and such cases where some function is executed 
both by both __init and __exit and never from other code aren't that 
unusual.

I'm not sure how realistic it is, but it would be best if we could at 
some point in the future simply give gcc a few basic hints that stuff 
like module_init() can use code that is __init and let gcc figure out 
which code to move to this section...

cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed

-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] ALSA: more section mismatches, Randy Dunlap, (Thu Jun 28, 6:05 pm)
Re: [PATCH] ALSA: more section mismatches, Andrew Morton, (Thu Jun 28, 6:39 pm)
Re: [PATCH] ALSA: more section mismatches, Takashi Iwai, (Fri Jun 29, 1:26 pm)
Re: [PATCH] ALSA: more section mismatches, Adrian Bunk, (Thu Jun 28, 7:49 pm)