mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* fs/nfs/./nfstrace.h:1483:1: sparse: sparse: dereference of noderef expression
@ 2026-02-17  1:04 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2026-02-17  1:04 UTC (permalink / raw)
  To: Jeff Layton
  Cc: oe-kbuild-all, linux-kernel, Anna Schumaker, Benjamin Coddington

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   9702969978695d9a699a1f34771580cdbb153b33
commit: b6ef079fd984930dcc42f4b247777f296528507e nfs: more in-depth tracing of writepage events
date:   5 months ago
config: i386-randconfig-061-20260215 (https://download.01.org/0day-ci/archive/20260217/202602170807.6sL9tkvg-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260217/202602170807.6sL9tkvg-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/202602170807.6sL9tkvg-lkp@intel.com/

sparse warnings: (new ones prefixed by >>)
   fs/nfs/nfstrace.c: note: in included file (through include/trace/trace_events.h, include/trace/define_trace.h, fs/nfs/nfstrace.h):
>> fs/nfs/./nfstrace.h:1483:1: sparse: sparse: dereference of noderef expression
   fs/nfs/nfstrace.c: note: in included file (through include/trace/trace_events.h, include/trace/define_trace.h, fs/nfs/nfstrace.h):
>> fs/nfs/./nfstrace.h:1483:1: sparse: sparse: dereference of noderef expression
   fs/nfs/nfstrace.c: note: in included file (through include/trace/perf.h, include/trace/define_trace.h, fs/nfs/nfstrace.h):
>> fs/nfs/./nfstrace.h:1483:1: sparse: sparse: dereference of noderef expression

vim +1483 fs/nfs/./nfstrace.h

  1482	
> 1483	DECLARE_EVENT_CLASS(nfs_page_class,
  1484			TP_PROTO(
  1485				const struct nfs_page *req
  1486			),
  1487	
  1488			TP_ARGS(req),
  1489	
  1490			TP_STRUCT__entry(
  1491				__field(dev_t, dev)
  1492				__field(u32, fhandle)
  1493				__field(u64, fileid)
  1494				__field(const struct nfs_page *__private, req)
  1495				__field(loff_t, offset)
  1496				__field(unsigned int, count)
  1497				__field(unsigned long, flags)
  1498			),
  1499	
  1500			TP_fast_assign(
  1501				const struct inode *inode = folio_inode(req->wb_folio);
  1502				const struct nfs_inode *nfsi = NFS_I(inode);
  1503	
  1504				__entry->dev = inode->i_sb->s_dev;
  1505				__entry->fileid = nfsi->fileid;
  1506				__entry->fhandle = nfs_fhandle_hash(&nfsi->fh);
  1507				__entry->req = req;
  1508				__entry->offset = req_offset(req);
  1509				__entry->count = req->wb_bytes;
  1510				__entry->flags = req->wb_flags;
  1511			),
  1512	
  1513			TP_printk(
  1514				"fileid=%02x:%02x:%llu fhandle=0x%08x req=%p offset=%lld count=%u flags=%s",
  1515				MAJOR(__entry->dev), MINOR(__entry->dev),
  1516				(unsigned long long)__entry->fileid, __entry->fhandle,
  1517				__entry->req, __entry->offset, __entry->count,
  1518				nfs_show_wb_flags(__entry->flags)
  1519			)
  1520	);
  1521	

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* fs/nfs/./nfstrace.h:1483:1: sparse: sparse: dereference of noderef expression
@ 2025-12-10 22:19 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2025-12-10 22:19 UTC (permalink / raw)
  To: Jeff Layton
  Cc: oe-kbuild-all, linux-kernel, Anna Schumaker, Benjamin Coddington

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   0048fbb4011ec55c32d3148b2cda56433f273375
commit: b6ef079fd984930dcc42f4b247777f296528507e nfs: more in-depth tracing of writepage events
date:   3 months ago
config: i386-randconfig-r113-20251210 (https://download.01.org/0day-ci/archive/20251211/202512110613.PQnFrrXt-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251211/202512110613.PQnFrrXt-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/202512110613.PQnFrrXt-lkp@intel.com/

sparse warnings: (new ones prefixed by >>)
   fs/nfs/nfstrace.c: note: in included file (through include/trace/trace_events.h, include/trace/define_trace.h, fs/nfs/nfstrace.h):
>> fs/nfs/./nfstrace.h:1483:1: sparse: sparse: dereference of noderef expression
   fs/nfs/nfstrace.c: note: in included file (through include/trace/trace_events.h, include/trace/define_trace.h, fs/nfs/nfstrace.h):
>> fs/nfs/./nfstrace.h:1483:1: sparse: sparse: dereference of noderef expression
   fs/nfs/nfstrace.c: note: in included file (through include/trace/perf.h, include/trace/define_trace.h, fs/nfs/nfstrace.h):
>> fs/nfs/./nfstrace.h:1483:1: sparse: sparse: dereference of noderef expression

vim +1483 fs/nfs/./nfstrace.h

  1482	
> 1483	DECLARE_EVENT_CLASS(nfs_page_class,
  1484			TP_PROTO(
  1485				const struct nfs_page *req
  1486			),
  1487	
  1488			TP_ARGS(req),
  1489	
  1490			TP_STRUCT__entry(
  1491				__field(dev_t, dev)
  1492				__field(u32, fhandle)
  1493				__field(u64, fileid)
  1494				__field(const struct nfs_page *__private, req)
  1495				__field(loff_t, offset)
  1496				__field(unsigned int, count)
  1497				__field(unsigned long, flags)
  1498			),
  1499	
  1500			TP_fast_assign(
  1501				const struct inode *inode = folio_inode(req->wb_folio);
  1502				const struct nfs_inode *nfsi = NFS_I(inode);
  1503	
  1504				__entry->dev = inode->i_sb->s_dev;
  1505				__entry->fileid = nfsi->fileid;
  1506				__entry->fhandle = nfs_fhandle_hash(&nfsi->fh);
  1507				__entry->req = req;
  1508				__entry->offset = req_offset(req);
  1509				__entry->count = req->wb_bytes;
  1510				__entry->flags = req->wb_flags;
  1511			),
  1512	
  1513			TP_printk(
  1514				"fileid=%02x:%02x:%llu fhandle=0x%08x req=%p offset=%lld count=%u flags=%s",
  1515				MAJOR(__entry->dev), MINOR(__entry->dev),
  1516				(unsigned long long)__entry->fileid, __entry->fhandle,
  1517				__entry->req, __entry->offset, __entry->count,
  1518				nfs_show_wb_flags(__entry->flags)
  1519			)
  1520	);
  1521	

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-02-17  1:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-02-17  1:04 fs/nfs/./nfstrace.h:1483:1: sparse: sparse: dereference of noderef expression kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2025-12-10 22:19 kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome