]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
net: socionext: include linux/io.h to fix build
authorArnd Bergmann <arnd@arndb.de>
Wed, 7 Feb 2018 19:15:42 +0000 (12:15 -0700)
committerSeth Forshee <seth.forshee@canonical.com>
Thu, 8 Feb 2018 02:58:24 +0000 (20:58 -0600)
BugLink: https://bugs.launchpad.net/bugs/1747792
I ran into a randconfig build failure:

drivers/net/ethernet/socionext/netsec.c: In function 'netsec_probe':
drivers/net/ethernet/socionext/netsec.c:1583:17: error: implicit declaration of function 'devm_ioremap'; did you mean 'ioremap'? [-Werror=implicit-function-declaration]

Including linux/io.h directly fixes this.

Fixes: 533dd11a12f6 ("net: socionext: Add Synquacer NetSec driver")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit d9f523723bc794e1851024958a6add303ba67b6c)
Signed-off-by: dann frazier <dann.frazier@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
drivers/net/ethernet/socionext/netsec.c

index a8edcf387bba1a764e5dfbca3146e9e1fc2dbc2c..af47147dd65652453fcb17db220308868d4f11fb 100644 (file)
@@ -8,6 +8,7 @@
 #include <linux/of_mdio.h>
 #include <linux/etherdevice.h>
 #include <linux/interrupt.h>
+#include <linux/io.h>
 
 #include <net/tcp.h>
 #include <net/ip6_checksum.h>