Re: [PATCH 1/3] sparc32: fix section mismatch warnings in apc, pmc and time_32

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Sam Ravnborg <sam@xxxxxxxxxxxx>
Date: Wed, 20 Apr 2011 22:08:59 +0200

> In all cases there were a struct of_device_id variable defined __initdata.
> But it was referenced from struct platform_driver.of_match_table
> which is not guaranteed to be used during init only.
> 
> So drop the __initdata annotation.
> 
> This fixes following warnings:
...
> Signed-off-by: Sam Ravnborg <sam@xxxxxxxxxxxx>

Sam, I'm going to apply this to sparc-2.6 because these are actually
real bugs.

If we initdata the OF driver match information, the generic device
driver layer could reference this freed memory.

Thanks!

--
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Kernel Development]     [DCCP]     [Linux ARM Development]     [Linux]     [Photo]     [Yosemite Help]     [Linux ARM Kernel]     [Linux SCSI]     [Linux x86_64]     [Linux Hams]

  Powered by Linux