net/appletalk: Supply missing net/Space.h include file
Subsystems (2)
PATCH 1/1 net/appletalk: Supply missing net/Space.h include file
If the header file containing a function's prototype isn't included by the sourcefile containing the associated function, the build system complains of missing prototypes.
Fixes the following W=1 kernel build warning(s):
drivers/net/appletalk/cops.c:213:28: warning: no previous prototype for ‘cops_probe’ [-Wmissing-prototypes] drivers/net/appletalk/ltpc.c:1014:28: warning: no previous prototype for ‘ltpc_probe’ [-Wmissing-prototypes]
--- drivers/net/appletalk/cops.c | 2 ++ drivers/net/appletalk/ltpc.c | 2 ++ 2 files changed, 4 insertions(+)
drivers/net/appletalk/cops.c +2 -0
@@ -70,6 +70,8 @@ static const char *version =#include <linux/bitops.h> #include <linux/jiffies.h> +#include <net/Space.h> +#include <asm/io.h> #include <asm/dma.h>
drivers/net/appletalk/ltpc.c +2 -0
@@ -229,6 +229,8 @@ static int dma;#include <linux/bitops.h> #include <linux/gfp.h> +#include <net/Space.h> +#include <asm/dma.h> #include <asm/io.h>
Signature · 1 line
2.17.1
From: Wang Hai <[email protected]>
Date: Fri, 18 Sep 2020 20:55:51 +0800
Quoted 10 lines
If the header file containing a function's prototype isn't included by the sourcefile containing the associated function, the build system complains of missing prototypes.
Fixes the following W=1 kernel build warning(s):
drivers/net/appletalk/cops.c:213:28: warning: no previous prototype for ‘cops_probe’ [-Wmissing-prototypes]drivers/net/appletalk/ltpc.c:1014:28: warning: no previous prototype for ‘ltpc_probe’ [-Wmissing-prototypes]Signed-off-by Wang Hai <[email protected]>
Applied.