CC: kbuild-...@lists.01.org CC: linux-ker...@vger.kernel.org TO: "Jules, Irenge," <jbi.oct...@gmail.com>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 3d77e6a8804abcc0504c904bd6e5cdf3a5cf8162 commit: 64fbca011976ce1564f191f4154e4a6ade25779a net: Add missing annotation for *netlink_seq_start() date: 3 months ago :::::: branch date: 9 hours ago :::::: commit date: 3 months ago config: i386-randconfig-s002-20200601 (attached as .config) compiler: gcc-9 (Debian 9.3.0-13) 9.3.0 reproduce: # apt-get install sparse # sparse version: v0.6.1-243-gc100a7ab-dirty git checkout 64fbca011976ce1564f191f4154e4a6ade25779a # save the attached .config to linux build tree make W=1 C=1 ARCH=i386 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' If you fix the issue, kindly add following tag as appropriate Reported-by: kbuild test robot <l...@intel.com> sparse warnings: (new ones prefixed by >>) net/netlink/af_netlink.c:2543:13: sparse: sparse: context imbalance in 'netlink_walk_start' - wrong count at exit net/netlink/af_netlink.c:2549:13: sparse: sparse: context imbalance in 'netlink_walk_stop' - unexpected unlock >> net/netlink/af_netlink.c:2585:13: sparse: sparse: context imbalance in >> 'netlink_seq_start' - wrong count at exit # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=64fbca011976ce1564f191f4154e4a6ade25779a git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git remote update linus git checkout 64fbca011976ce1564f191f4154e4a6ade25779a vim +/netlink_seq_start +2585 net/netlink/af_netlink.c ^1da177e4c3f41 Linus Torvalds 2005-04-16 2584 56d28b1e921b57 Herbert Xu 2015-02-04 @2585 static void *netlink_seq_start(struct seq_file *seq, loff_t *posp) 64fbca011976ce Jules Irenge 2020-03-11 2586 __acquires(RCU) 56d28b1e921b57 Herbert Xu 2015-02-04 2587 { 56d28b1e921b57 Herbert Xu 2015-02-04 2588 struct nl_seq_iter *iter = seq->private; 56d28b1e921b57 Herbert Xu 2015-02-04 2589 void *obj = SEQ_START_TOKEN; 56d28b1e921b57 Herbert Xu 2015-02-04 2590 loff_t pos; ^1da177e4c3f41 Linus Torvalds 2005-04-16 2591 56d28b1e921b57 Herbert Xu 2015-02-04 2592 iter->link = 0; 56d28b1e921b57 Herbert Xu 2015-02-04 2593 abf9979f7ef34e Taehee Yoo 2019-06-10 2594 netlink_walk_start(iter); 56d28b1e921b57 Herbert Xu 2015-02-04 2595 56d28b1e921b57 Herbert Xu 2015-02-04 2596 for (pos = *posp; pos && obj && !IS_ERR(obj); pos--) 56d28b1e921b57 Herbert Xu 2015-02-04 2597 obj = __netlink_seq_next(seq); 56d28b1e921b57 Herbert Xu 2015-02-04 2598 56d28b1e921b57 Herbert Xu 2015-02-04 2599 return obj; 56d28b1e921b57 Herbert Xu 2015-02-04 2600 } 56d28b1e921b57 Herbert Xu 2015-02-04 2601 :::::: The code at line 2585 was first introduced by commit :::::: 56d28b1e921b57b918a0ae6b13a1671115fe788d netlink: Use rhashtable walk iterator :::::: TO: Herbert Xu <herb...@gondor.apana.org.au> :::::: CC: David S. Miller <da...@davemloft.net> --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org
.config.gz
Description: application/gzip
_______________________________________________ kbuild mailing list -- kbuild@lists.01.org To unsubscribe send an email to kbuild-le...@lists.01.org