Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

bonding: fix bond_option_mode_set warning

During the conversion to "static" functions this one got left out, only its
prototype was converted, thus resulting in:
drivers/net/bonding//bond_options.c:674:5: warning: symbol
'bond_option_mode_set' was not declared. Should it be static?

Fix it by making it static and also break the line in two as it was too
long.

CC: Stephen Hemminger <stephen@networkplumber.org>
CC: Jay Vosburgh <j.vosburgh@gmail.com>
CC: Veaceslav Falico <vfalico@gmail.com>
CC: Andy Gospodarek <andy@greyhouse.net>
CC: David S. Miller <davem@davemloft.net>

Signed-off-by: Nikolay Aleksandrov <nikolay@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Nikolay Aleksandrov and committed by
David S. Miller
ff11d8b2 f5442441

+2 -1
+2 -1
drivers/net/bonding/bond_options.c
··· 671 671 return &bond_opts[option]; 672 672 } 673 673 674 - int bond_option_mode_set(struct bonding *bond, const struct bond_opt_value *newval) 674 + static int bond_option_mode_set(struct bonding *bond, 675 + const struct bond_opt_value *newval) 675 676 { 676 677 if (!bond_mode_uses_arp(newval->value) && bond->params.arp_interval) { 677 678 pr_info("%s: %s mode is incompatible with arp monitoring, start mii monitoring\n",