All of lore.kernel.org
 help / color / mirror / Atom feed
* [martineau:kbuild-mptcp-enabled 7/19] net/mptcp/pm_netlink.c:397:23: warning: variable 'pernet' set but not used
@ 2022-03-17 11:26 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-03-17 11:26 UTC (permalink / raw)
  To: Kishen Maloor; +Cc: kbuild-all, mathew.j.martineau, linux-kernel

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

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

only message in thread, other threads:[~2022-03-17 11:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-17 11:26 [martineau:kbuild-mptcp-enabled 7/19] net/mptcp/pm_netlink.c:397:23: warning: variable 'pernet' set but not used kernel test robot

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.