Skip to content

Commit

Permalink
fujitsu-laptop: fix section mismatch warning
Browse files Browse the repository at this point in the history
Could fix a bug in a hotplug add scenario.

WARNING: drivers/misc/fujitsu-laptop.o(.text+0xbde): Section mismatch in reference from the function acpi_fujitsu_add() to the variable .init.data:fujitsu_dmi_table
The function acpi_fujitsu_add() references
the variable __initdata fujitsu_dmi_table.
This is often because acpi_fujitsu_add lacks a __initdata
annotation or the annotation of fujitsu_dmi_table is wrong.

Signed-off-by: Randy Dunlap <[email protected]>
Acked-by: Jonathan Woithe <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Len Brown <[email protected]>
  • Loading branch information
rddunlap authored and lenb committed Nov 7, 2008
1 parent 2d59f6a commit afeb12b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/misc/fujitsu-laptop.c
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ static int dmi_check_cb_p8010(const struct dmi_system_id *id)
return 0;
}

static struct dmi_system_id __initdata fujitsu_dmi_table[] = {
static struct dmi_system_id fujitsu_dmi_table[] = {
{
.ident = "Fujitsu Siemens S6410",
.matches = {
Expand Down

0 comments on commit afeb12b

Please sign in to comment.