All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Kishen Maloor <kishen.maloor@intel.com>
Cc: kbuild-all@lists.01.org, mathew.j.martineau@linux.intel.com,
	linux-kernel@vger.kernel.org
Subject: [martineau:kbuild-mptcp-enabled 7/19] net/mptcp/pm_netlink.c:397:23: warning: variable 'pernet' set but not used
Date: Thu, 17 Mar 2022 19:26:01 +0800	[thread overview]
Message-ID: <202203171940.XUdtPaZP-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/martineau/linux.git kbuild-mptcp-enabled
head:   1842e2df09dac50790d935c8db37aae18f7ad5ab
commit: 11b70f473e519350157fa74fefbdb6d12a99a199 [7/19] mptcp: handle local addrs announced by userspace PMs
config: um-i386_defconfig (https://download.01.org/0day-ci/archive/20220317/202203171940.XUdtPaZP-lkp@intel.com/config)
compiler: gcc-9 (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0
reproduce (this is a W=1 build):
        # https://git.kernel.org/pub/scm/linux/kernel/git/martineau/linux.git/commit/?id=11b70f473e519350157fa74fefbdb6d12a99a199
        git remote add martineau https://git.kernel.org/pub/scm/linux/kernel/git/martineau/linux.git
        git fetch --no-tags martineau kbuild-mptcp-enabled
        git checkout 11b70f473e519350157fa74fefbdb6d12a99a199
        # save the config file to linux build tree
        mkdir build_dir
        make W=1 O=build_dir ARCH=um SUBARCH=i386 SHELL=/bin/bash net/mptcp/

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

All warnings (new ones prefixed by >>):

   net/mptcp/pm_netlink.c: In function 'mptcp_free_local_addr_list':
>> net/mptcp/pm_netlink.c:397:23: warning: variable 'pernet' set but not used [-Wunused-but-set-variable]
     397 |  struct pm_nl_pernet *pernet;
         |                       ^~~~~~
   At top level:
   net/mptcp/pm_netlink.c:902:12: warning: 'mptcp_userspace_pm_append_new_local_addr' defined but not used [-Wunused-function]
     902 | static int mptcp_userspace_pm_append_new_local_addr(struct mptcp_sock *msk,
         |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


vim +/pernet +397 net/mptcp/pm_netlink.c

   392	
   393	void mptcp_free_local_addr_list(struct mptcp_sock *msk)
   394	{
   395		struct mptcp_pm_addr_entry *entry, *tmp;
   396		struct sock *sk = (struct sock *)msk;
 > 397		struct pm_nl_pernet *pernet;
   398		LIST_HEAD(free_list);
   399	
   400		if (!mptcp_pm_is_userspace(msk))
   401			return;
   402	
   403		pernet = net_generic(sock_net(sk), pm_nl_pernet_id);
   404	
   405		mptcp_data_lock(sk);
   406		list_splice_init(&msk->local_addr_list, &free_list);
   407		mptcp_data_unlock(sk);
   408	
   409		list_for_each_entry_safe(entry, tmp, &free_list, list) {
   410			sock_kfree_s(sk, entry, sizeof(*entry));
   411		}
   412	}
   413	

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

                 reply	other threads:[~2022-03-17 11:26 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=202203171940.XUdtPaZP-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    --cc=kishen.maloor@intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mathew.j.martineau@linux.intel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.