All of lore.kernel.org
 help / color / mirror / Atom feed
* [dhowells-fs:netfs-crypt 42/42] fs/afs/write.c:333:13: warning: 'netfs_dump_sg' defined but not used
@ 2026-03-23 21:07 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2026-03-23 21:07 UTC (permalink / raw)
  To: David Howells; +Cc: oe-kbuild-all

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git netfs-crypt
head:   ae7ccdf83025020c44837849de26fb4546fbf825
commit: ae7ccdf83025020c44837849de26fb4546fbf825 [42/42] afs: [DON'T MERGE] Implement trivial content crypto for testing purposes
config: x86_64-rhel-9.4 (https://download.01.org/0day-ci/archive/20260323/202603232152.ph2g80Xk-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/20260323/202603232152.ph2g80Xk-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/202603232152.ph2g80Xk-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> fs/afs/write.c:333:13: warning: 'netfs_dump_sg' defined but not used [-Wunused-function]
     333 | static void netfs_dump_sg(const char *prefix, struct scatterlist *sg, unsigned int n_sg)
         |             ^~~~~~~~~~~~~


vim +/netfs_dump_sg +333 fs/afs/write.c

   332	
 > 333	static void netfs_dump_sg(const char *prefix, struct scatterlist *sg, unsigned int n_sg)
   334	{
   335		unsigned int i;
   336	
   337		for (i = 0; i < n_sg; i++) {
   338			void *p = kmap_local_page(sg_page(sg));
   339			unsigned int l = min_t(size_t, sg->length, 16);
   340	
   341			printk("%s[%x] %016lx %04x %04x %*phN\n",
   342			       prefix, i, sg->page_link, sg->offset, sg->length,
   343			       l, p + sg->offset);
   344			kunmap_local(p);
   345			sg++;
   346		}
   347	}
   348	

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

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

* [dhowells-fs:netfs-crypt 42/42] fs/afs/write.c:333:13: warning: 'netfs_dump_sg' defined but not used
@ 2026-03-24  6:57 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2026-03-24  6:57 UTC (permalink / raw)
  To: David Howells; +Cc: oe-kbuild-all

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git netfs-crypt
head:   ae7ccdf83025020c44837849de26fb4546fbf825
commit: ae7ccdf83025020c44837849de26fb4546fbf825 [42/42] afs: [DON'T MERGE] Implement trivial content crypto for testing purposes
config: nios2-allmodconfig (https://download.01.org/0day-ci/archive/20260324/202603241453.PFODgYO9-lkp@intel.com/config)
compiler: nios2-linux-gcc (GCC) 11.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260324/202603241453.PFODgYO9-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/202603241453.PFODgYO9-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> fs/afs/write.c:333:13: warning: 'netfs_dump_sg' defined but not used [-Wunused-function]
     333 | static void netfs_dump_sg(const char *prefix, struct scatterlist *sg, unsigned int n_sg)
         |             ^~~~~~~~~~~~~


vim +/netfs_dump_sg +333 fs/afs/write.c

   332	
 > 333	static void netfs_dump_sg(const char *prefix, struct scatterlist *sg, unsigned int n_sg)
   334	{
   335		unsigned int i;
   336	
   337		for (i = 0; i < n_sg; i++) {
   338			void *p = kmap_local_page(sg_page(sg));
   339			unsigned int l = min_t(size_t, sg->length, 16);
   340	
   341			printk("%s[%x] %016lx %04x %04x %*phN\n",
   342			       prefix, i, sg->page_link, sg->offset, sg->length,
   343			       l, p + sg->offset);
   344			kunmap_local(p);
   345			sg++;
   346		}
   347	}
   348	

-- 
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-03-24  6:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-24  6:57 [dhowells-fs:netfs-crypt 42/42] fs/afs/write.c:333:13: warning: 'netfs_dump_sg' defined but not used kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2026-03-23 21:07 kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.