]> git.baikalelectronics.ru Git - kernel.git/commit
usb/host/pci-quirks.c: correct annotation of `ehci_dmi_nohandoff_table'
authorArnaud Lacombe <lacombar@gmail.com>
Thu, 21 Jul 2011 17:16:20 +0000 (13:16 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 8 Aug 2011 21:00:14 +0000 (14:00 -0700)
commit7be937e471a29c8f2d223aa4ed92ad3caf84743d
tree058f76f4d6f9db9be9b3476f1537aebc1464940c
parentcd62a0e009512a4f3c267afa2f3141168f56d9da
usb/host/pci-quirks.c: correct annotation of `ehci_dmi_nohandoff_table'

ehci_bios_handoff() is marked __devinit, `ehci_dmi_nohandoff_table' should be
marked __devinitconst, not __initconst. This fixes the following section
mismatch:

WARNING: vmlinux.o(.devinit.text+0x4f08): Section mismatch in reference from the function ehci_bios_handoff() to the variable .init.rodata:ehci_dmi_nohandoff_table
The function __devinit ehci_bios_handoff() references a variable __initconst ehci_dmi_nohandoff_table.
If ehci_dmi_nohandoff_table is only used by ehci_bios_handoff then annotate ehci_dmi_nohandoff_table with a matching annotation.

Cc: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/host/pci-quirks.c