perf/x86: Fix section mismatch in uncore_pci_init()
authorRobert Richter <robert.richter@amd.com>
Wed, 20 Jun 2012 16:39:27 +0000 (18:39 +0200)
committerIngo Molnar <mingo@kernel.org>
Mon, 25 Jun 2012 08:32:21 +0000 (10:32 +0200)
Fix section mismatch in uncore_pci_init():

 WARNING: vmlinux.o(.init.text+0x9246): Section mismatch in reference from the function uncore_pci_init() to the function .devexit.text:uncore_pci_remove()
 The function __init uncore_pci_init() references
 a function __devexit uncore_pci_remove().
 [...]

Signed-off-by: Robert Richter <robert.richter@amd.com>
Cc: <a.p.zijlstra@chello.nl>
Cc: <zheng.z.yan@intel.com>
Link: http://lkml.kernel.org/r/20120620163927.GI5046@erda.amd.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/kernel/cpu/perf_event_intel_uncore.c

index 28a8413ca199c514cf8378f3f4d988c4dfc8b5f5..6f43f9584e3d3a24438f4a8caf94569e48d2fb99 100644 (file)
@@ -1313,7 +1313,7 @@ static int __devinit uncore_pci_add(struct intel_uncore_type *type,
        return 0;
 }
 
-static void __devexit uncore_pci_remove(struct pci_dev *pdev)
+static void uncore_pci_remove(struct pci_dev *pdev)
 {
        struct intel_uncore_box *box = pci_get_drvdata(pdev);
        struct intel_uncore_pmu *pmu = box->pmu;