[PATCH] [S390] lcs net: fix building when multicast is disabled

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



There is a CONFIG_IP_MULTICAST check missing around some multicast code so
that if you try and build lcs with it disabled, it fails like so:

drivers/s390/net/lcs.c: In function ‘lcs_new_device’:
drivers/s390/net/lcs.c:2180: error: implicit declaration of function ‘lcs_set_multicast_list’
make[1]: *** [drivers/s390/net/lcs.o] Error 1

Signed-off-by: Mike Frysinger <vapier@xxxxxxxxxx>
---
 drivers/s390/net/lcs.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/drivers/s390/net/lcs.c b/drivers/s390/net/lcs.c
index acca667..8e51402 100644
--- a/drivers/s390/net/lcs.c
+++ b/drivers/s390/net/lcs.c
@@ -2176,7 +2176,9 @@ lcs_new_device(struct ccwgroup_device *ccwgdev)
 netdev_out:
 	lcs_set_allowed_threads(card,0xffffffff);
 	if (recover_state == DEV_STATE_RECOVER) {
+#ifdef CONFIG_IP_MULTICAST
 		lcs_set_multicast_list(card->dev);
+#endif
 		card->dev->flags |= IFF_UP;
 		netif_carrier_on(card->dev);
 		netif_wake_queue(card->dev);
-- 
1.6.1

--
To unsubscribe from this list: send the line "unsubscribe linux-s390" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Kernel Development]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Info]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Linux Media]     [Device Mapper]

  Powered by Linux