7 Oct
2015
7 Oct
'15
4:05 p.m.
On Wed, Oct 07, 2015 at 05:52:12PM +0530, Sudip Mukherjee wrote:
We were getting build warning about "Section mismatch". dmi_platform_intel_broadwell is being referenced from the probe function rt5645_i2c_probe(), but dmi_platform_intel_broadwell was marked with __initdata.
Signed-off-by: Sudip Mukherjee sudip@vectorindia.org
-static struct dmi_system_id dmi_platform_intel_broadwell[] __initdata = { +static struct dmi_system_id dmi_platform_intel_broadwell[] = {
This doesn't seem like the obvious fix - why are we not annotating the probe function suitably (or alternatively if we can't why does __initdata still exist)?