Content-Type: multipart/mixed; boundary="===============4494520809874788780==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: Re: [PATCH net-next 5/5] mctp: Add SIOCMCTP{ALLOC, DROP}TAG ioctls for tag control Date: Wed, 09 Feb 2022 00:10:24 +0800 Message-ID: <202202090043.BhR7muS4-lkp@intel.com> In-Reply-To: <20220208094617.3675511-6-jk@codeconstruct.com.au> List-Id: --===============4494520809874788780== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi Jeremy, I love your patch! Perhaps something to improve: [auto build test WARNING on net-next/master] url: https://github.com/0day-ci/linux/commits/Jeremy-Kerr/MCTP-tag-contr= ol-interface/20220208-195325 base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git = c3e676b98326a419f30dd5d956c68fc33323f4fd config: nios2-randconfig-r021-20220208 (https://download.01.org/0day-ci/arc= hive/20220209/202202090043.BhR7muS4-lkp(a)intel.com/config) compiler: nios2-linux-gcc (GCC) 11.2.0 reproduce (this is a W=3D1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/= make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://github.com/0day-ci/linux/commit/a1d553f399d7457bd3e455cd3= f5e10dddb4bc2bf git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Jeremy-Kerr/MCTP-tag-control-inter= face/20220208-195325 git checkout a1d553f399d7457bd3e455cd3f5e10dddb4bc2bf # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dgcc-11.2.0 make.cross= O=3Dbuild_dir ARCH=3Dnios2 SHELL=3D/bin/bash kernel/ net/mctp/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> net/mctp/route.c:660:21: warning: no previous prototype for 'mctp_lookup= _prealloc_tag' [-Wmissing-prototypes] 660 | struct mctp_sk_key *mctp_lookup_prealloc_tag(struct mctp_sock *m= sk, | ^~~~~~~~~~~~~~~~~~~~~~~~ vim +/mctp_lookup_prealloc_tag +660 net/mctp/route.c 659 = > 660 struct mctp_sk_key *mctp_lookup_prealloc_tag(struct mctp_sock *msk, 661 mctp_eid_t daddr, u8 req_tag, 662 u8 *tagp) 663 { 664 struct net *net =3D sock_net(&msk->sk); 665 struct netns_mctp *mns =3D &net->mctp; 666 struct mctp_sk_key *key, *tmp; 667 unsigned long flags; 668 = 669 req_tag &=3D ~(MCTP_TAG_PREALLOC | MCTP_TAG_OWNER); 670 key =3D NULL; 671 = 672 spin_lock_irqsave(&mns->keys_lock, flags); 673 = 674 hlist_for_each_entry(tmp, &mns->keys, hlist) { 675 if (tmp->tag !=3D req_tag) 676 continue; 677 = 678 if (!(tmp->peer_addr =3D=3D daddr || tmp->peer_addr =3D=3D MCTP_AD= DR_ANY)) 679 continue; 680 = 681 if (!tmp->manual_alloc) 682 continue; 683 = 684 spin_lock(&tmp->lock); 685 if (tmp->valid) { 686 key =3D tmp; 687 refcount_inc(&key->refs); 688 spin_unlock(&tmp->lock); 689 break; 690 } 691 spin_unlock(&tmp->lock); 692 } 693 spin_unlock_irqrestore(&mns->keys_lock, flags); 694 = 695 if (!key) 696 return ERR_PTR(-ENOENT); 697 = 698 if (tagp) 699 *tagp =3D key->tag; 700 = 701 return key; 702 } 703 = --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============4494520809874788780==--