linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: George McCollister <george.mccollister@gmail.com>
Cc: kbuild-all@lists.01.org,
	Linux Memory Management List <linux-mm@kvack.org>,
	Florian Fainelli <f.fainelli@gmail.com>,
	Vladimir Oltean <olteanv@gmail.com>
Subject: [linux-next:pending-fixes 1998/2286] net/dsa/slave.c:1942: undefined reference to `is_hsr_master'
Date: Sat, 20 Feb 2021 09:52:09 +0800	[thread overview]
Message-ID: <202102200900.xkMBV6FJ-lkp@intel.com> (raw)

[-- 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 --]

                 reply	other threads:[~2021-02-20  1:52 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202102200900.xkMBV6FJ-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=f.fainelli@gmail.com \
    --cc=george.mccollister@gmail.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-mm@kvack.org \
    --cc=olteanv@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).