Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

include/linux/dmar.h: forward-declare struct acpi_dmar_header

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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Andrew Morton and committed by
Linus Torvalds
6eea69dd 07a72309

+2
+2
include/linux/dmar.h
··· 26 26 #include <linux/msi.h> 27 27 #include <linux/irqreturn.h> 28 28 29 + struct acpi_dmar_header; 30 + 29 31 /* DMAR Flags */ 30 32 #define DMAR_INTR_REMAP 0x1 31 33 #define DMAR_X2APIC_OPT_OUT 0x2