[willy-pagecache:headers 17/18] fs/nfs/./nfstrace.h:1506:53: warning: initialization of 'const struct inode *' from 'int' makes pointer from integer without a cast
kernel test robot <[email protected]>
| Newsgroups | dev.linux.lists.oe-kbuild-all |
|---|---|
| Message-ID | <[email protected]> |
tree: git://git.infradead.org/users/willy/pagecache headers head: 33e73a1e8175a4735e962dec9465e64e85d0a63d commit: 7191691f80efdfec4c2f8d87da800a18b7753e08 [17/18] nfs: Remove pagemap.h from includes config: x86_64-randconfig-074-20260814 (https://download.01.org/0day-ci/archive/20260815/[email protected]/config) compiler: gcc-13 (Debian 13.3.0-16) 13.3.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260815/[email protected]/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 <[email protected]> | Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ All warnings (new ones prefixed by >>): In file included from include/trace/define_trace.h:132, from fs/nfs/nfstrace.h:1986, from fs/nfs/nfstrace.c:10: fs/nfs/./nfstrace.h: In function 'do_trace_event_raw_event_nfs_page_class': fs/nfs/./nfstrace.h:1506:53: error: implicit declaration of function 'folio_inode'; did you mean 'folio_zone'? [-Werror=implicit-function-declaration] 1506 | const struct inode *inode = folio_inode(req->wb_folio); | ^~~~~~~~~~~ include/trace/trace_events.h:448:11: note: in definition of macro '__DECLARE_EVENT_CLASS' 448 | { assign; } \ | ^~~~~~ include/trace/trace_events.h:456:23: note: in expansion of macro 'PARAMS' 456 | PARAMS(assign), PARAMS(print)) \ | ^~~~~~ fs/nfs/./nfstrace.h:1488:1: note: in expansion of macro 'DECLARE_EVENT_CLASS' 1488 | DECLARE_EVENT_CLASS(nfs_page_class, | ^~~~~~~~~~~~~~~~~~~ fs/nfs/./nfstrace.h:1505:17: note: in expansion of macro 'TP_fast_assign' 1505 | TP_fast_assign( | ^~~~~~~~~~~~~~ >> fs/nfs/./nfstrace.h:1506:53: warning: initialization of 'const struct inode *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 1506 | const struct inode *inode = folio_inode(req->wb_folio); | ^~~~~~~~~~~ include/trace/trace_events.h:448:11: note: in definition of macro '__DECLARE_EVENT_CLASS' 448 | { assign; } \ | ^~~~~~ include/trace/trace_events.h:456:23: note: in expansion of macro 'PARAMS' 456 | PARAMS(assign), PARAMS(print)) \ | ^~~~~~ fs/nfs/./nfstrace.h:1488:1: note: in expansion of macro 'DECLARE_EVENT_CLASS' 1488 | DECLARE_EVENT_CLASS(nfs_page_class, | ^~~~~~~~~~~~~~~~~~~ fs/nfs/./nfstrace.h:1505:17: note: in expansion of macro 'TP_fast_assign' 1505 | TP_fast_assign( | ^~~~~~~~~~~~~~ In file included from include/trace/define_trace.h:133: fs/nfs/./nfstrace.h: In function 'do_perf_trace_nfs_page_class': >> fs/nfs/./nfstrace.h:1506:53: warning: initialization of 'const struct inode *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 1506 | const struct inode *inode = folio_inode(req->wb_folio); | ^~~~~~~~~~~ include/trace/perf.h:51:11: note: in definition of macro '__DECLARE_EVENT_CLASS' 51 | { assign; } \ | ^~~~~~ include/trace/perf.h:67:23: note: in expansion of macro 'PARAMS' 67 | PARAMS(assign), PARAMS(print)) \ | ^~~~~~ fs/nfs/./nfstrace.h:1488:1: note: in expansion of macro 'DECLARE_EVENT_CLASS' 1488 | DECLARE_EVENT_CLASS(nfs_page_class, | ^~~~~~~~~~~~~~~~~~~ fs/nfs/./nfstrace.h:1505:17: note: in expansion of macro 'TP_fast_assign' 1505 | TP_fast_assign( | ^~~~~~~~~~~~~~ cc1: some warnings being treated as errors vim +1506 fs/nfs/./nfstrace.h 8224b2734ab1da Chuck Lever 2017-08-21 1487 b6ef079fd98493 Jeff Layton 2025-08-08 1488 DECLARE_EVENT_CLASS(nfs_page_class, b6ef079fd98493 Jeff Layton 2025-08-08 1489 TP_PROTO( b6ef079fd98493 Jeff Layton 2025-08-08 1490 const struct nfs_page *req b6ef079fd98493 Jeff Layton 2025-08-08 1491 ), b6ef079fd98493 Jeff Layton 2025-08-08 1492 b6ef079fd98493 Jeff Layton 2025-08-08 1493 TP_ARGS(req), b6ef079fd98493 Jeff Layton 2025-08-08 1494 b6ef079fd98493 Jeff Layton 2025-08-08 1495 TP_STRUCT__entry( b6ef079fd98493 Jeff Layton 2025-08-08 1496 __field(dev_t, dev) b6ef079fd98493 Jeff Layton 2025-08-08 1497 __field(u32, fhandle) b6ef079fd98493 Jeff Layton 2025-08-08 1498 __field(u64, fileid) e8a44ae87b553b Sean Chang 2026-04-20 1499 __field(const struct nfs_page *, req) b6ef079fd98493 Jeff Layton 2025-08-08 1500 __field(loff_t, offset) b6ef079fd98493 Jeff Layton 2025-08-08 1501 __field(unsigned int, count) b6ef079fd98493 Jeff Layton 2025-08-08 1502 __field(unsigned long, flags) b6ef079fd98493 Jeff Layton 2025-08-08 1503 ), b6ef079fd98493 Jeff Layton 2025-08-08 1504 b6ef079fd98493 Jeff Layton 2025-08-08 1505 TP_fast_assign( b6ef079fd98493 Jeff Layton 2025-08-08 @1506 const struct inode *inode = folio_inode(req->wb_folio); b6ef079fd98493 Jeff Layton 2025-08-08 1507 const struct nfs_inode *nfsi = NFS_I(inode); b6ef079fd98493 Jeff Layton 2025-08-08 1508 b6ef079fd98493 Jeff Layton 2025-08-08 1509 __entry->dev = inode->i_sb->s_dev; 2026c8a96afe6e Jeff Layton 2026-05-12 1510 __entry->fileid = inode->i_ino; b6ef079fd98493 Jeff Layton 2025-08-08 1511 __entry->fhandle = nfs_fhandle_hash(&nfsi->fh); b6ef079fd98493 Jeff Layton 2025-08-08 1512 __entry->req = req; b6ef079fd98493 Jeff Layton 2025-08-08 1513 __entry->offset = req_offset(req); b6ef079fd98493 Jeff Layton 2025-08-08 1514 __entry->count = req->wb_bytes; b6ef079fd98493 Jeff Layton 2025-08-08 1515 __entry->flags = req->wb_flags; b6ef079fd98493 Jeff Layton 2025-08-08 1516 ), b6ef079fd98493 Jeff Layton 2025-08-08 1517 b6ef079fd98493 Jeff Layton 2025-08-08 1518 TP_printk( b6ef079fd98493 Jeff Layton 2025-08-08 1519 "fileid=%02x:%02x:%llu fhandle=0x%08x req=%p offset=%lld count=%u flags=%s", b6ef079fd98493 Jeff Layton 2025-08-08 1520 MAJOR(__entry->dev), MINOR(__entry->dev), b6ef079fd98493 Jeff Layton 2025-08-08 1521 (unsigned long long)__entry->fileid, __entry->fhandle, b6ef079fd98493 Jeff Layton 2025-08-08 1522 __entry->req, __entry->offset, __entry->count, b6ef079fd98493 Jeff Layton 2025-08-08 1523 nfs_show_wb_flags(__entry->flags) b6ef079fd98493 Jeff Layton 2025-08-08 1524 ) b6ef079fd98493 Jeff Layton 2025-08-08 1525 ); b6ef079fd98493 Jeff Layton 2025-08-08 1526 :::::: The code at line 1506 was first introduced by commit :::::: b6ef079fd984930dcc42f4b247777f296528507e nfs: more in-depth tracing of writepage events :::::: TO: Jeff Layton <[email protected]> :::::: CC: Anna Schumaker <[email protected]> -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki