lkml.org 
[lkml]   [2023]   [Nov]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 11/22] x86: sta2x11: include header for sta2x11_get_instance() prototype
    Date
    From: Arnd Bergmann <arnd@arndb.de>

    sta2x11_get_instance() is a global function declared in asm/sta2x11.h,
    but this header is not included before the definition, causing a warning:

    arch/x86/pci/sta2x11-fixup.c:95:26: error: no previous prototype for 'sta2x11_get_instance' [-Werror=missing-prototypes]

    Add the missing #include.

    Fixes: 83125a3a189e ("x86, platform: Initial support for sta2x11 I/O hub")
    Signed-off-by: Arnd Bergmann <arnd@arndb.de>
    ---
    arch/x86/pci/sta2x11-fixup.c | 1 +
    1 file changed, 1 insertion(+)

    diff --git a/arch/x86/pci/sta2x11-fixup.c b/arch/x86/pci/sta2x11-fixup.c
    index 7368afc03998..8c8ddc4dcc08 100644
    --- a/arch/x86/pci/sta2x11-fixup.c
    +++ b/arch/x86/pci/sta2x11-fixup.c
    @@ -14,6 +14,7 @@
    #include <linux/dma-map-ops.h>
    #include <linux/swiotlb.h>
    #include <asm/iommu.h>
    +#include <asm/sta2x11.h>

    #define STA2X11_SWIOTLB_SIZE (4*1024*1024)

    --
    2.39.2
    \
     
     \ /
      Last update: 2023-11-20 13:53    [W:6.197 / U:0.396 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site