aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/ipconfig.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2015-11-24 12:34:49 +0100
committerDavid S. Miller <davem@davemloft.net>2015-11-24 11:28:06 -0500
commit85beabfeca5343b86057c0d588e33f7975684d37 (patch)
tree603e05845a0b8fcdfb24184ff648344600a03db5 /net/ipv4/ipconfig.c
parentMerge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/jkirsher/next-queue (diff)
downloadlinux-dev-85beabfeca5343b86057c0d588e33f7975684d37.tar.xz
linux-dev-85beabfeca5343b86057c0d588e33f7975684d37.zip
net: dsa: include gpio consumer header file
After the introduction of the switch gpio reset API, I'm getting build errors in configurations that disable CONFIG_GPIOLIB: net/dsa/dsa.c:783:16: error: implicit declaration of function 'gpio_to_desc' [-Werror=implicit-function-declaration] The reason is that linux/gpio/consumer.h is not automatically included without gpiolib support. This adds an explicit #include statement to make it compile in all configurations. The reset functionality will not work without gpiolib, which is what you get when disabling the feature. As far as I can tell, gpiolib is supported on all architectures on which you can have DSA at the moment. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Fixes: cc30c16344fc ("net: dsa: Add support for a switch reset gpio") Acked-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/ipconfig.c')
0 files changed, 0 insertions, 0 deletions