]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
include/linux/dmar.h: forward-declare struct acpi_dmar_header
authorAndrew Morton <akpm@linux-foundation.org>
Wed, 5 Oct 2011 00:42:20 +0000 (11:42 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 14 Oct 2011 06:19:28 +0000 (17:19 +1100)
x86_64 allnoconfig:

In file included from arch/x86/kernel/pci-dma.c:3:
include/linux/dmar.h:248: warning: 'struct acpi_dmar_header' declared inside parameter list
include/linux/dmar.h:248: warning: its scope is only this definition or declaration, which is probably not what you want

Cc: Suresh Siddha <suresh.b.siddha@intel.com>
Cc: Ingo Molnar <mingo@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/dmar.h

index a8b1a847c103bb5cefed7aa7dbb6f4f847079fd5..731a60975101ce76c8e6aa045acde8409c0c2059 100644 (file)
@@ -26,6 +26,8 @@
 #include <linux/msi.h>
 #include <linux/irqreturn.h>
 
+struct acpi_dmar_header;
+
 /* DMAR Flags */
 #define DMAR_INTR_REMAP                0x1
 #define DMAR_X2APIC_OPT_OUT    0x2