linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [linux-next:pending-fixes 1998/2286] net/dsa/slave.c:1942: undefined reference to `is_hsr_master'
@ 2021-02-20  1:52 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-02-20  1:52 UTC (permalink / raw)
  To: George McCollister
  Cc: kbuild-all, Linux Memory Management List, Florian Fainelli,
	Vladimir Oltean

[-- Attachment #1: Type: text/plain, Size: 3064 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git pending-fixes
head:   3c15bb8df3365826d67efc332ee490dacc8e901c
commit: 18596f504a3e56c4f8e132b2a437cbe23a3f4635 [1998/2286] net: dsa: add support for offloading HSR
config: x86_64-randconfig-r023-20210219 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
        # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=18596f504a3e56c4f8e132b2a437cbe23a3f4635
        git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
        git fetch --no-tags linux-next pending-fixes
        git checkout 18596f504a3e56c4f8e132b2a437cbe23a3f4635
        # save the attached .config to linux build tree
        make W=1 ARCH=x86_64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   ld: warning: orphan section `.data..decrypted' from `arch/x86/kernel/cpu/vmware.o' being placed in section `.data..decrypted'
   ld: warning: orphan section `.data..decrypted' from `arch/x86/kernel/kvm.o' being placed in section `.data..decrypted'
   ld: net/dsa/slave.o: in function `dsa_slave_changeupper':
>> net/dsa/slave.c:1942: undefined reference to `is_hsr_master'


vim +1942 net/dsa/slave.c

  1911	
  1912	static int dsa_slave_changeupper(struct net_device *dev,
  1913					 struct netdev_notifier_changeupper_info *info)
  1914	{
  1915		struct dsa_port *dp = dsa_slave_to_port(dev);
  1916		int err = NOTIFY_DONE;
  1917	
  1918		if (netif_is_bridge_master(info->upper_dev)) {
  1919			if (info->linking) {
  1920				err = dsa_port_bridge_join(dp, info->upper_dev);
  1921				if (!err)
  1922					dsa_bridge_mtu_normalization(dp);
  1923				err = notifier_from_errno(err);
  1924			} else {
  1925				dsa_port_bridge_leave(dp, info->upper_dev);
  1926				err = NOTIFY_OK;
  1927			}
  1928		} else if (netif_is_lag_master(info->upper_dev)) {
  1929			if (info->linking) {
  1930				err = dsa_port_lag_join(dp, info->upper_dev,
  1931							info->upper_info);
  1932				if (err == -EOPNOTSUPP) {
  1933					NL_SET_ERR_MSG_MOD(info->info.extack,
  1934							   "Offloading not supported");
  1935					err = 0;
  1936				}
  1937				err = notifier_from_errno(err);
  1938			} else {
  1939				dsa_port_lag_leave(dp, info->upper_dev);
  1940				err = NOTIFY_OK;
  1941			}
> 1942		} else if (is_hsr_master(info->upper_dev)) {
  1943			if (info->linking) {
  1944				err = dsa_port_hsr_join(dp, info->upper_dev);
  1945				if (err == -EOPNOTSUPP) {
  1946					NL_SET_ERR_MSG_MOD(info->info.extack,
  1947							   "Offloading not supported");
  1948					err = 0;
  1949				}
  1950				err = notifier_from_errno(err);
  1951			} else {
  1952				dsa_port_hsr_leave(dp, info->upper_dev);
  1953				err = NOTIFY_OK;
  1954			}
  1955		}
  1956	
  1957		return err;
  1958	}
  1959	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 37513 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-02-20  1:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-20  1:52 [linux-next:pending-fixes 1998/2286] net/dsa/slave.c:1942: undefined reference to `is_hsr_master' kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).