gre6: add Kconfig dependency for NET_IPGRE_DEMUX
authorArnd Bergmann <arnd@arndb.de>
Tue, 3 May 2016 15:19:57 +0000 (17:19 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 May 2016 18:12:36 +0000 (14:12 -0400)
commit8bf42e9e51cce73874252e5b8fb938bb09bf0ce4
treec176c1da4a466c7600535e7e662163f83b8277a6
parentb8223bd1c49423a39a7da7e73cad8bf0e02bb032
gre6: add Kconfig dependency for NET_IPGRE_DEMUX

The ipv6 gre implementation was cleaned up to share more code
with the ipv4 version, but it can be enabled even when NET_IPGRE_DEMUX
is disabled, resulting in a link error:

net/built-in.o: In function `gre_rcv':
:(.text+0x17f5d0): undefined reference to `gre_parse_header'
ERROR: "gre_parse_header" [net/ipv6/ip6_gre.ko] undefined!

This adds a Kconfig dependency to prevent that now invalid
configuration.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Fixes: 308edfdf1563 ("gre6: Cleanup GREv6 receive path, call common GRE functions")
Acked-by: Tom Herbert <tom@herbertland.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/Kconfig