Messages in this thread | | | Date | Thu, 4 Aug 2011 15:54:18 -0700 | From | Greg KH <> | Subject | Re: [PATCH] devtmpfs: Fix section mismatch on devtmpfsd() |
| |
On Thu, Aug 04, 2011 at 11:36:11PM +0100, Grant Likely wrote: > devtmpfsd_init() references setup_done which is __initdata, but > devtmpfsd() is not an __init function. The code is fine, because it > is never referenced after discarding __init sections, but it leaves > some additional code that can be discarded with the rest of __init and > it causes gcc to complain with a section mismatch warning.
I have a simpler patch here that just removes the __initdata function, which is simpler.
I hate the initdata stuff, it's almost always pointless...
Would that solve the problem for you as well?
thanks,
greg k-h
| |