From: Sebastian Andrzej Siewior Date: Sun, 3 Jun 2012 18:48:17 +0000 (+0200) Subject: scripts/modpost: check for bad references in .pci.fixups area X-Git-Tag: v3.6-rc1~112^2~16^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bb15d8db7cce766b62cab624120916d25e94ac7a;p=pandora-kernel.git scripts/modpost: check for bad references in .pci.fixups area Functions used for PCI fixups (like DECLARE_PCI_FIXUP_HEADER) are often marked __init. This is okay as long as nobody is using PCI hotplug. However if one does execute | echo 1 > /sys/bus/pci/rescan and we hit a module which is marked __init istead of __devinit then we go boom because the code is removed after the kernel booted. This patch help to see those section mismatches. Cc: Michal Marek Cc: linux-kbuild@vger.kernel.org Cc: Rusty Russell Signed-off-by: Sebastian Andrzej Siewior Signed-off-by: Bjorn Helgaas --- Reading git-diff-tree failed