• Ingo Molnar's avatar
    xen, x86/headers: Add <linux/device.h> dependency to <asm/xen/page.h> · 7fd5cf0b
    Ingo Molnar authored
    The following patch (not upstream yet):
    
      "x86/boot/e820: Remove spurious asm/e820/api.h inclusions"
    
    Removed the (spurious) <asm/e820.h> include line from <asm/pgtable.h> to
    reduce header file dependencies - but a Xen header has (unintentionally)
    learned to rely on the indirect inclusion of <linux/device.h>.
    
    This resulted in the following (harmless) build warning:
    
       arch/x86/include/asm/xen/page.h:302:7: warning: 'struct device' declared inside parameter list
    
    Include <linux/device.h> explicitly.
    
    No change in functionality.
    Reported-by: default avatarkbuild test robot <fengguang.wu@intel.com>
    Acked-by: default avatarJuergen Gross <jgross@suse.com>
    Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
    Cc: <stefano.stabellini@eu.citrix.com>
    Cc: Linus Torvalds <torvalds@linux-foundation.org>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Cc: linux-kernel@vger.kernel.org
    Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
    7fd5cf0b
page.h 8.61 KB