public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org,
	Jason Gunthorpe <jgg@ziepe.ca>
Subject: include/linux/list.h:72:19: warning: storing the address of local variable 'pbufl' in '*&buf_33(D)->list.prev'
Date: Sat, 14 Mar 2026 17:11:58 +0800	[thread overview]
Message-ID: <202603141757.il2bc9t8-lkp@intel.com> (raw)

Hi Shiraz,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   80234b5ab240f52fa45d201e899e207b9265ef91
commit: fa0cf568fd76550c1ddb806c03a65a1a4a1ea909 RDMA/irdma: Add irdma Kconfig/Makefile and remove i40iw
date:   4 years, 9 months ago
config: mips-allyesconfig (https://download.01.org/0day-ci/archive/20260314/202603141757.il2bc9t8-lkp@intel.com/config)
compiler: mips-linux-gcc (GCC) 15.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260314/202603141757.il2bc9t8-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202603141757.il2bc9t8-lkp@intel.com/

All warnings (new ones prefixed by >>):

   In file included from include/linux/pci.h:32,
                    from drivers/infiniband/hw/irdma/osdep.h:6,
                    from drivers/infiniband/hw/irdma/puda.c:3:
   In function '__list_add',
       inlined from 'list_add' at include/linux/list.h:86:2,
       inlined from 'irdma_ieq_handle_partial' at drivers/infiniband/hw/irdma/puda.c:1384:2:
>> include/linux/list.h:72:19: warning: storing the address of local variable 'pbufl' in '*&buf_33(D)->list.prev' [-Wdangling-pointer=]
      72 |         new->prev = prev;
         |         ~~~~~~~~~~^~~~~~
   drivers/infiniband/hw/irdma/puda.c: In function 'irdma_ieq_handle_partial':
   drivers/infiniband/hw/irdma/puda.c:1377:26: note: 'pbufl' declared here
    1377 |         struct list_head pbufl; /* partial buffer list */
         |                          ^~~~~
   drivers/infiniband/hw/irdma/puda.c:1371:49: note: 'buf' declared here
    1371 |                          struct irdma_puda_buf *buf, u16 fpdu_len)
         |                          ~~~~~~~~~~~~~~~~~~~~~~~^~~


vim +72 include/linux/list.h

d7c816733d501b Kees Cook        2016-08-17  56  
^1da177e4c3f41 Linus Torvalds   2005-04-16  57  /*
^1da177e4c3f41 Linus Torvalds   2005-04-16  58   * Insert a new entry between two known consecutive entries.
^1da177e4c3f41 Linus Torvalds   2005-04-16  59   *
^1da177e4c3f41 Linus Torvalds   2005-04-16  60   * This is only for internal list manipulation where we know
^1da177e4c3f41 Linus Torvalds   2005-04-16  61   * the prev/next entries already!
^1da177e4c3f41 Linus Torvalds   2005-04-16  62   */
^1da177e4c3f41 Linus Torvalds   2005-04-16  63  static inline void __list_add(struct list_head *new,
^1da177e4c3f41 Linus Torvalds   2005-04-16  64  			      struct list_head *prev,
^1da177e4c3f41 Linus Torvalds   2005-04-16  65  			      struct list_head *next)
^1da177e4c3f41 Linus Torvalds   2005-04-16  66  {
d7c816733d501b Kees Cook        2016-08-17  67  	if (!__list_add_valid(new, prev, next))
d7c816733d501b Kees Cook        2016-08-17  68  		return;
d7c816733d501b Kees Cook        2016-08-17  69  
^1da177e4c3f41 Linus Torvalds   2005-04-16  70  	next->prev = new;
^1da177e4c3f41 Linus Torvalds   2005-04-16  71  	new->next = next;
^1da177e4c3f41 Linus Torvalds   2005-04-16 @72  	new->prev = prev;
1c97be677f72b3 Paul E. McKenney 2015-09-20  73  	WRITE_ONCE(prev->next, new);
^1da177e4c3f41 Linus Torvalds   2005-04-16  74  }
^1da177e4c3f41 Linus Torvalds   2005-04-16  75  

:::::: The code at line 72 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2

:::::: TO: Linus Torvalds <torvalds@ppc970.osdl.org>
:::::: CC: Linus Torvalds <torvalds@ppc970.osdl.org>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

             reply	other threads:[~2026-03-14  9:12 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-14  9:11 kernel test robot [this message]
  -- strict thread matches above, loose matches on Subject: below --
2026-04-26  5:31 include/linux/list.h:72:19: warning: storing the address of local variable 'pbufl' in '*&buf_33(D)->list.prev' kernel test robot

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=202603141757.il2bc9t8-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=jgg@ziepe.ca \
    --cc=linux-kernel@vger.kernel.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    /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