Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
* Re: [PATCH v7 07/10] ref_tracker: add a way to create a symlink to the ref_tracker_dir debugfs file
       [not found] <20250505-reftrack-dbgfs-v7-7-f78c5d97bcca@kernel.org>
@ 2025-05-07  6:42 ` kernel test robot
  2025-05-07 11:11 ` kernel test robot
  1 sibling, 0 replies; 2+ messages in thread
From: kernel test robot @ 2025-05-07  6:42 UTC (permalink / raw)
  To: Jeff Layton; +Cc: llvm, oe-kbuild-all

Hi Jeff,

kernel test robot noticed the following build warnings:

[auto build test WARNING on 5bc1018675ec28a8a60d83b378d8c3991faa5a27]

url:    https://github.com/intel-lab-lkp/linux/commits/Jeff-Layton/ref_tracker-don-t-use-pK-in-pr_ostream-output/20250506-013822
base:   5bc1018675ec28a8a60d83b378d8c3991faa5a27
patch link:    https://lore.kernel.org/r/20250505-reftrack-dbgfs-v7-7-f78c5d97bcca%40kernel.org
patch subject: [PATCH v7 07/10] ref_tracker: add a way to create a symlink to the ref_tracker_dir debugfs file
config: s390-allnoconfig (https://download.01.org/0day-ci/archive/20250507/202505071434.YWUTBcYu-lkp@intel.com/config)
compiler: clang version 21.0.0git (https://github.com/llvm/llvm-project f819f46284f2a79790038e1f6649172789734ae8)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250507/202505071434.YWUTBcYu-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/202505071434.YWUTBcYu-lkp@intel.com/

All warnings (new ones prefixed by >>):

   In file included from fs/proc/namespaces.c:8:
   In file included from include/net/net_namespace.h:40:
   In file included from include/net/net_trackers.h:4:
>> include/linux/ref_tracker.h:124:15: warning: attribute declaration must precede definition [-Wignored-attributes]
     124 | static inline __ostream_printf
         |               ^
   include/linux/ref_tracker.h:9:26: note: expanded from macro '__ostream_printf'
       9 | #define __ostream_printf __printf(2, 3)
         |                          ^
   include/linux/compiler_attributes.h:158:56: note: expanded from macro '__printf'
     158 | #define __printf(a, b)                  __attribute__((__format__(printf, a, b)))
         |                                                        ^
   include/linux/ref_tracker.h:87:20: note: previous definition is here
      87 | static inline void ref_tracker_dir_symlink(struct ref_tracker_dir *dir, const char *fmt, ...)
         |                    ^
   include/linux/ref_tracker.h:125:6: error: redefinition of 'ref_tracker_dir_symlink'
     125 | void ref_tracker_dir_symlink(struct ref_tracker_dir *dir, const char *fmt, ...)
         |      ^
   include/linux/ref_tracker.h:87:20: note: previous definition is here
      87 | static inline void ref_tracker_dir_symlink(struct ref_tracker_dir *dir, const char *fmt, ...)
         |                    ^
   In file included from fs/proc/namespaces.c:8:
   In file included from include/net/net_namespace.h:43:
   In file included from include/linux/skbuff.h:28:
   In file included from include/linux/dma-mapping.h:5:
   In file included from include/linux/device.h:32:
   In file included from include/linux/device/driver.h:21:
   In file included from include/linux/module.h:19:
   In file included from include/linux/elf.h:6:
   In file included from arch/s390/include/asm/elf.h:165:
   include/linux/compat.h:454:22: warning: array index 3 is past the end of the array (that has type 'const unsigned long[1]') [-Warray-bounds]
     454 |         case 4: v.sig[7] = (set->sig[3] >> 32); v.sig[6] = set->sig[3];
         |                             ^        ~
   arch/s390/include/asm/signal.h:22:9: note: array 'sig' declared here
      22 |         unsigned long sig[_NSIG_WORDS];
         |         ^
   In file included from fs/proc/namespaces.c:8:
   In file included from include/net/net_namespace.h:43:
   In file included from include/linux/skbuff.h:28:
   In file included from include/linux/dma-mapping.h:5:
   In file included from include/linux/device.h:32:
   In file included from include/linux/device/driver.h:21:
   In file included from include/linux/module.h:19:
   In file included from include/linux/elf.h:6:
   In file included from arch/s390/include/asm/elf.h:165:
   include/linux/compat.h:454:10: warning: array index 7 is past the end of the array (that has type 'compat_sigset_word[2]' (aka 'unsigned int[2]')) [-Warray-bounds]
     454 |         case 4: v.sig[7] = (set->sig[3] >> 32); v.sig[6] = set->sig[3];
         |                 ^     ~
   include/linux/compat.h:130:2: note: array 'sig' declared here
     130 |         compat_sigset_word      sig[_COMPAT_NSIG_WORDS];
         |         ^
   include/linux/compat.h:454:42: warning: array index 6 is past the end of the array (that has type 'compat_sigset_word[2]' (aka 'unsigned int[2]')) [-Warray-bounds]
     454 |         case 4: v.sig[7] = (set->sig[3] >> 32); v.sig[6] = set->sig[3];
         |                                                 ^     ~
   include/linux/compat.h:130:2: note: array 'sig' declared here
     130 |         compat_sigset_word      sig[_COMPAT_NSIG_WORDS];
         |         ^
   include/linux/compat.h:454:53: warning: array index 3 is past the end of the array (that has type 'const unsigned long[1]') [-Warray-bounds]
     454 |         case 4: v.sig[7] = (set->sig[3] >> 32); v.sig[6] = set->sig[3];
         |                                                            ^        ~
   arch/s390/include/asm/signal.h:22:9: note: array 'sig' declared here
      22 |         unsigned long sig[_NSIG_WORDS];
         |         ^
   In file included from fs/proc/namespaces.c:8:
   In file included from include/net/net_namespace.h:43:
   In file included from include/linux/skbuff.h:28:
   In file included from include/linux/dma-mapping.h:5:
   In file included from include/linux/device.h:32:
   In file included from include/linux/device/driver.h:21:
   In file included from include/linux/module.h:19:
   In file included from include/linux/elf.h:6:
   In file included from arch/s390/include/asm/elf.h:165:
   include/linux/compat.h:456:22: warning: array index 2 is past the end of the array (that has type 'const unsigned long[1]') [-Warray-bounds]
     456 |         case 3: v.sig[5] = (set->sig[2] >> 32); v.sig[4] = set->sig[2];
         |                             ^        ~
   arch/s390/include/asm/signal.h:22:9: note: array 'sig' declared here
      22 |         unsigned long sig[_NSIG_WORDS];
         |         ^
   In file included from fs/proc/namespaces.c:8:
   In file included from include/net/net_namespace.h:43:
   In file included from include/linux/skbuff.h:28:
   In file included from include/linux/dma-mapping.h:5:
   In file included from include/linux/device.h:32:
   In file included from include/linux/device/driver.h:21:
   In file included from include/linux/module.h:19:
   In file included from include/linux/elf.h:6:
   In file included from arch/s390/include/asm/elf.h:165:
   include/linux/compat.h:456:10: warning: array index 5 is past the end of the array (that has type 'compat_sigset_word[2]' (aka 'unsigned int[2]')) [-Warray-bounds]
     456 |         case 3: v.sig[5] = (set->sig[2] >> 32); v.sig[4] = set->sig[2];
         |                 ^     ~
   include/linux/compat.h:130:2: note: array 'sig' declared here
     130 |         compat_sigset_word      sig[_COMPAT_NSIG_WORDS];
         |         ^
   include/linux/compat.h:456:42: warning: array index 4 is past the end of the array (that has type 'compat_sigset_word[2]' (aka 'unsigned int[2]')) [-Warray-bounds]
     456 |         case 3: v.sig[5] = (set->sig[2] >> 32); v.sig[4] = set->sig[2];
         |                                                 ^     ~
   include/linux/compat.h:130:2: note: array 'sig' declared here
     130 |         compat_sigset_word      sig[_COMPAT_NSIG_WORDS];
         |         ^
   include/linux/compat.h:456:53: warning: array index 2 is past the end of the array (that has type 'const unsigned long[1]') [-Warray-bounds]
     456 |         case 3: v.sig[5] = (set->sig[2] >> 32); v.sig[4] = set->sig[2];
         |                                                            ^        ~
   arch/s390/include/asm/signal.h:22:9: note: array 'sig' declared here
      22 |         unsigned long sig[_NSIG_WORDS];
--
   In file included from fs/proc/proc_sysctl.c:17:
   In file included from include/linux/bpf-cgroup.h:11:
   In file included from include/net/sock.h:46:
   In file included from include/linux/netdevice.h:38:
   In file included from include/net/net_namespace.h:40:
   In file included from include/net/net_trackers.h:4:
>> include/linux/ref_tracker.h:124:15: warning: attribute declaration must precede definition [-Wignored-attributes]
     124 | static inline __ostream_printf
         |               ^
   include/linux/ref_tracker.h:9:26: note: expanded from macro '__ostream_printf'
       9 | #define __ostream_printf __printf(2, 3)
         |                          ^
   include/linux/compiler_attributes.h:158:56: note: expanded from macro '__printf'
     158 | #define __printf(a, b)                  __attribute__((__format__(printf, a, b)))
         |                                                        ^
   include/linux/ref_tracker.h:87:20: note: previous definition is here
      87 | static inline void ref_tracker_dir_symlink(struct ref_tracker_dir *dir, const char *fmt, ...)
         |                    ^
   include/linux/ref_tracker.h:125:6: error: redefinition of 'ref_tracker_dir_symlink'
     125 | void ref_tracker_dir_symlink(struct ref_tracker_dir *dir, const char *fmt, ...)
         |      ^
   include/linux/ref_tracker.h:87:20: note: previous definition is here
      87 | static inline void ref_tracker_dir_symlink(struct ref_tracker_dir *dir, const char *fmt, ...)
         |                    ^
   1 warning and 1 error generated.


vim +124 include/linux/ref_tracker.h

   123	
 > 124	static inline __ostream_printf
   125	void ref_tracker_dir_symlink(struct ref_tracker_dir *dir, const char *fmt, ...)
   126	{
   127	}
   128	#endif
   129	

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

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

* Re: [PATCH v7 07/10] ref_tracker: add a way to create a symlink to the ref_tracker_dir debugfs file
       [not found] <20250505-reftrack-dbgfs-v7-7-f78c5d97bcca@kernel.org>
  2025-05-07  6:42 ` [PATCH v7 07/10] ref_tracker: add a way to create a symlink to the ref_tracker_dir debugfs file kernel test robot
@ 2025-05-07 11:11 ` kernel test robot
  1 sibling, 0 replies; 2+ messages in thread
From: kernel test robot @ 2025-05-07 11:11 UTC (permalink / raw)
  To: Jeff Layton; +Cc: llvm, oe-kbuild-all

Hi Jeff,

kernel test robot noticed the following build errors:

[auto build test ERROR on 5bc1018675ec28a8a60d83b378d8c3991faa5a27]

url:    https://github.com/intel-lab-lkp/linux/commits/Jeff-Layton/ref_tracker-don-t-use-pK-in-pr_ostream-output/20250506-013822
base:   5bc1018675ec28a8a60d83b378d8c3991faa5a27
patch link:    https://lore.kernel.org/r/20250505-reftrack-dbgfs-v7-7-f78c5d97bcca%40kernel.org
patch subject: [PATCH v7 07/10] ref_tracker: add a way to create a symlink to the ref_tracker_dir debugfs file
config: x86_64-kexec (https://download.01.org/0day-ci/archive/20250507/202505071837.2I9QYesc-lkp@intel.com/config)
compiler: clang version 20.1.2 (https://github.com/llvm/llvm-project 58df0ef89dd64126512e4ee27b4ac3fd8ddf6247)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250507/202505071837.2I9QYesc-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/202505071837.2I9QYesc-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from fs/nfs/client.c:19:
   In file included from include/linux/sunrpc/addr.h:14:
   In file included from include/net/ipv6.h:12:
   In file included from include/linux/ipv6.h:102:
   In file included from include/linux/tcp.h:19:
   In file included from include/net/sock.h:46:
   In file included from include/linux/netdevice.h:38:
   In file included from include/net/net_namespace.h:40:
   In file included from include/net/net_trackers.h:4:
   include/linux/ref_tracker.h:124:15: warning: attribute declaration must precede definition [-Wignored-attributes]
     124 | static inline __ostream_printf
         |               ^
   include/linux/ref_tracker.h:9:26: note: expanded from macro '__ostream_printf'
       9 | #define __ostream_printf __printf(2, 3)
         |                          ^
   include/linux/compiler_attributes.h:158:56: note: expanded from macro '__printf'
     158 | #define __printf(a, b)                  __attribute__((__format__(printf, a, b)))
         |                                                        ^
   include/linux/ref_tracker.h:87:20: note: previous definition is here
      87 | static inline void ref_tracker_dir_symlink(struct ref_tracker_dir *dir, const char *fmt, ...)
         |                    ^
>> include/linux/ref_tracker.h:125:6: error: redefinition of 'ref_tracker_dir_symlink'
     125 | void ref_tracker_dir_symlink(struct ref_tracker_dir *dir, const char *fmt, ...)
         |      ^
   include/linux/ref_tracker.h:87:20: note: previous definition is here
      87 | static inline void ref_tracker_dir_symlink(struct ref_tracker_dir *dir, const char *fmt, ...)
         |                    ^
   In file included from fs/nfs/client.c:20:
   In file included from include/linux/sunrpc/clnt.h:20:
   In file included from include/linux/sunrpc/sched.h:19:
   include/linux/sunrpc/xdr.h:803:46: warning: result of comparison of constant 4611686018427387903 with expression of type '__u32' (aka 'unsigned int') is always false [-Wtautological-constant-out-of-range-compare]
     803 |         if (U32_MAX >= SIZE_MAX / sizeof(*p) && len > SIZE_MAX / sizeof(*p))
         |                                                 ~~~ ^ ~~~~~~~~~~~~~~~~~~~~~
   2 warnings and 1 error generated.
--
   In file included from fs/nfs/file.c:26:
   In file included from include/linux/nfs_fs.h:31:
   In file included from include/linux/sunrpc/auth.h:14:
   In file included from include/linux/sunrpc/msg_prot.h:205:
   In file included from include/linux/inet.h:42:
   In file included from include/net/net_namespace.h:40:
   In file included from include/net/net_trackers.h:4:
   include/linux/ref_tracker.h:124:15: warning: attribute declaration must precede definition [-Wignored-attributes]
     124 | static inline __ostream_printf
         |               ^
   include/linux/ref_tracker.h:9:26: note: expanded from macro '__ostream_printf'
       9 | #define __ostream_printf __printf(2, 3)
         |                          ^
   include/linux/compiler_attributes.h:158:56: note: expanded from macro '__printf'
     158 | #define __printf(a, b)                  __attribute__((__format__(printf, a, b)))
         |                                                        ^
   include/linux/ref_tracker.h:87:20: note: previous definition is here
      87 | static inline void ref_tracker_dir_symlink(struct ref_tracker_dir *dir, const char *fmt, ...)
         |                    ^
>> include/linux/ref_tracker.h:125:6: error: redefinition of 'ref_tracker_dir_symlink'
     125 | void ref_tracker_dir_symlink(struct ref_tracker_dir *dir, const char *fmt, ...)
         |      ^
   include/linux/ref_tracker.h:87:20: note: previous definition is here
      87 | static inline void ref_tracker_dir_symlink(struct ref_tracker_dir *dir, const char *fmt, ...)
         |                    ^
   1 warning and 1 error generated.
--
   In file included from fs/nfs/pagelist.c:16:
   In file included from include/linux/sunrpc/clnt.h:19:
   In file included from include/linux/sunrpc/msg_prot.h:205:
   In file included from include/linux/inet.h:42:
   In file included from include/net/net_namespace.h:40:
   In file included from include/net/net_trackers.h:4:
   include/linux/ref_tracker.h:124:15: warning: attribute declaration must precede definition [-Wignored-attributes]
     124 | static inline __ostream_printf
         |               ^
   include/linux/ref_tracker.h:9:26: note: expanded from macro '__ostream_printf'
       9 | #define __ostream_printf __printf(2, 3)
         |                          ^
   include/linux/compiler_attributes.h:158:56: note: expanded from macro '__printf'
     158 | #define __printf(a, b)                  __attribute__((__format__(printf, a, b)))
         |                                                        ^
   include/linux/ref_tracker.h:87:20: note: previous definition is here
      87 | static inline void ref_tracker_dir_symlink(struct ref_tracker_dir *dir, const char *fmt, ...)
         |                    ^
>> include/linux/ref_tracker.h:125:6: error: redefinition of 'ref_tracker_dir_symlink'
     125 | void ref_tracker_dir_symlink(struct ref_tracker_dir *dir, const char *fmt, ...)
         |      ^
   include/linux/ref_tracker.h:87:20: note: previous definition is here
      87 | static inline void ref_tracker_dir_symlink(struct ref_tracker_dir *dir, const char *fmt, ...)
         |                    ^
   In file included from fs/nfs/pagelist.c:16:
   In file included from include/linux/sunrpc/clnt.h:19:
   In file included from include/linux/sunrpc/msg_prot.h:205:
   In file included from include/linux/inet.h:42:
   In file included from include/net/net_namespace.h:43:
   In file included from include/linux/skbuff.h:17:
   In file included from include/linux/bvec.h:10:
   In file included from include/linux/highmem.h:5:
   In file included from include/linux/fs.h:34:
   In file included from include/linux/percpu-rwsem.h:7:
   In file included from include/linux/rcuwait.h:6:
   In file included from include/linux/sched/signal.h:6:
   include/linux/signal.h:98:11: warning: array index 3 is past the end of the array (that has type 'unsigned long[1]') [-Warray-bounds]
      98 |                 return (set->sig[3] | set->sig[2] |
         |                         ^        ~
   arch/x86/include/asm/signal.h:24:2: note: array 'sig' declared here
      24 |         unsigned long sig[_NSIG_WORDS];
         |         ^
   In file included from fs/nfs/pagelist.c:16:
   In file included from include/linux/sunrpc/clnt.h:19:
   In file included from include/linux/sunrpc/msg_prot.h:205:
   In file included from include/linux/inet.h:42:
   In file included from include/net/net_namespace.h:43:
   In file included from include/linux/skbuff.h:17:
   In file included from include/linux/bvec.h:10:
   In file included from include/linux/highmem.h:5:
   In file included from include/linux/fs.h:34:
   In file included from include/linux/percpu-rwsem.h:7:
   In file included from include/linux/rcuwait.h:6:
   In file included from include/linux/sched/signal.h:6:
   include/linux/signal.h:98:25: warning: array index 2 is past the end of the array (that has type 'unsigned long[1]') [-Warray-bounds]
      98 |                 return (set->sig[3] | set->sig[2] |
         |                                       ^        ~
   arch/x86/include/asm/signal.h:24:2: note: array 'sig' declared here
      24 |         unsigned long sig[_NSIG_WORDS];
         |         ^
   In file included from fs/nfs/pagelist.c:16:
   In file included from include/linux/sunrpc/clnt.h:19:
   In file included from include/linux/sunrpc/msg_prot.h:205:
   In file included from include/linux/inet.h:42:
   In file included from include/net/net_namespace.h:43:
   In file included from include/linux/skbuff.h:17:
   In file included from include/linux/bvec.h:10:
   In file included from include/linux/highmem.h:5:
   In file included from include/linux/fs.h:34:
   In file included from include/linux/percpu-rwsem.h:7:
   In file included from include/linux/rcuwait.h:6:
   In file included from include/linux/sched/signal.h:6:
   include/linux/signal.h:99:4: warning: array index 1 is past the end of the array (that has type 'unsigned long[1]') [-Warray-bounds]
      99 |                         set->sig[1] | set->sig[0]) == 0;
         |                         ^        ~
   arch/x86/include/asm/signal.h:24:2: note: array 'sig' declared here
      24 |         unsigned long sig[_NSIG_WORDS];
         |         ^
   In file included from fs/nfs/pagelist.c:16:
   In file included from include/linux/sunrpc/clnt.h:19:
   In file included from include/linux/sunrpc/msg_prot.h:205:
   In file included from include/linux/inet.h:42:
   In file included from include/net/net_namespace.h:43:
   In file included from include/linux/skbuff.h:17:
   In file included from include/linux/bvec.h:10:
   In file included from include/linux/highmem.h:5:
   In file included from include/linux/fs.h:34:
   In file included from include/linux/percpu-rwsem.h:7:
   In file included from include/linux/rcuwait.h:6:
   In file included from include/linux/sched/signal.h:6:
   include/linux/signal.h:101:11: warning: array index 1 is past the end of the array (that has type 'unsigned long[1]') [-Warray-bounds]
     101 |                 return (set->sig[1] | set->sig[0]) == 0;
         |                         ^        ~
   arch/x86/include/asm/signal.h:24:2: note: array 'sig' declared here
      24 |         unsigned long sig[_NSIG_WORDS];
         |         ^
   In file included from fs/nfs/pagelist.c:16:
   In file included from include/linux/sunrpc/clnt.h:19:
   In file included from include/linux/sunrpc/msg_prot.h:205:
   In file included from include/linux/inet.h:42:
   In file included from include/net/net_namespace.h:43:
   In file included from include/linux/skbuff.h:17:
   In file included from include/linux/bvec.h:10:
   In file included from include/linux/highmem.h:5:
   In file included from include/linux/fs.h:34:
   In file included from include/linux/percpu-rwsem.h:7:
   In file included from include/linux/rcuwait.h:6:
   In file included from include/linux/sched/signal.h:6:
   include/linux/signal.h:114:11: warning: array index 3 is past the end of the array (that has type 'const unsigned long[1]') [-Warray-bounds]
     114 |                 return  (set1->sig[3] == set2->sig[3]) &&
         |                          ^         ~
   arch/x86/include/asm/signal.h:24:2: note: array 'sig' declared here
      24 |         unsigned long sig[_NSIG_WORDS];
         |         ^
   In file included from fs/nfs/pagelist.c:16:
   In file included from include/linux/sunrpc/clnt.h:19:
   In file included from include/linux/sunrpc/msg_prot.h:205:
   In file included from include/linux/inet.h:42:
   In file included from include/net/net_namespace.h:43:
--
   In file included from fs/nfs/nfs4proc.c:45:
   In file included from include/linux/sunrpc/clnt.h:19:
   In file included from include/linux/sunrpc/msg_prot.h:205:
   In file included from include/linux/inet.h:42:
   In file included from include/net/net_namespace.h:40:
   In file included from include/net/net_trackers.h:4:
   include/linux/ref_tracker.h:124:15: warning: attribute declaration must precede definition [-Wignored-attributes]
     124 | static inline __ostream_printf
         |               ^
   include/linux/ref_tracker.h:9:26: note: expanded from macro '__ostream_printf'
       9 | #define __ostream_printf __printf(2, 3)
         |                          ^
   include/linux/compiler_attributes.h:158:56: note: expanded from macro '__printf'
     158 | #define __printf(a, b)                  __attribute__((__format__(printf, a, b)))
         |                                                        ^
   include/linux/ref_tracker.h:87:20: note: previous definition is here
      87 | static inline void ref_tracker_dir_symlink(struct ref_tracker_dir *dir, const char *fmt, ...)
         |                    ^
>> include/linux/ref_tracker.h:125:6: error: redefinition of 'ref_tracker_dir_symlink'
     125 | void ref_tracker_dir_symlink(struct ref_tracker_dir *dir, const char *fmt, ...)
         |      ^
   include/linux/ref_tracker.h:87:20: note: previous definition is here
      87 | static inline void ref_tracker_dir_symlink(struct ref_tracker_dir *dir, const char *fmt, ...)
         |                    ^
   In file included from fs/nfs/nfs4proc.c:45:
   In file included from include/linux/sunrpc/clnt.h:20:
   In file included from include/linux/sunrpc/sched.h:19:
   include/linux/sunrpc/xdr.h:803:46: warning: result of comparison of constant 4611686018427387903 with expression of type '__u32' (aka 'unsigned int') is always false [-Wtautological-constant-out-of-range-compare]
     803 |         if (U32_MAX >= SIZE_MAX / sizeof(*p) && len > SIZE_MAX / sizeof(*p))
         |                                                 ~~~ ^ ~~~~~~~~~~~~~~~~~~~~~
   fs/nfs/nfs4proc.c:9505:12: warning: variable 'ptr' set but not used [-Wunused-but-set-variable]
    9505 |         unsigned *ptr;
         |                   ^
   3 warnings and 1 error generated.
--
   In file included from fs/nfs/flexfilelayout/flexfilelayout.c:10:
   In file included from include/linux/nfs_fs.h:31:
   In file included from include/linux/sunrpc/auth.h:14:
   In file included from include/linux/sunrpc/msg_prot.h:205:
   In file included from include/linux/inet.h:42:
   In file included from include/net/net_namespace.h:40:
   In file included from include/net/net_trackers.h:4:
   include/linux/ref_tracker.h:124:15: warning: attribute declaration must precede definition [-Wignored-attributes]
     124 | static inline __ostream_printf
         |               ^
   include/linux/ref_tracker.h:9:26: note: expanded from macro '__ostream_printf'
       9 | #define __ostream_printf __printf(2, 3)
         |                          ^
   include/linux/compiler_attributes.h:158:56: note: expanded from macro '__printf'
     158 | #define __printf(a, b)                  __attribute__((__format__(printf, a, b)))
         |                                                        ^
   include/linux/ref_tracker.h:87:20: note: previous definition is here
      87 | static inline void ref_tracker_dir_symlink(struct ref_tracker_dir *dir, const char *fmt, ...)
         |                    ^
>> include/linux/ref_tracker.h:125:6: error: redefinition of 'ref_tracker_dir_symlink'
     125 | void ref_tracker_dir_symlink(struct ref_tracker_dir *dir, const char *fmt, ...)
         |      ^
   include/linux/ref_tracker.h:87:20: note: previous definition is here
      87 | static inline void ref_tracker_dir_symlink(struct ref_tracker_dir *dir, const char *fmt, ...)
         |                    ^
   fs/nfs/flexfilelayout/flexfilelayout.c:1264:6: warning: variable 'err' set but not used [-Wunused-but-set-variable]
    1264 |         int err;
         |             ^
   2 warnings and 1 error generated.
--
   In file included from fs/nfs/flexfilelayout/flexfilelayoutdev.c:10:
   In file included from include/linux/nfs_fs.h:31:
   In file included from include/linux/sunrpc/auth.h:14:
   In file included from include/linux/sunrpc/msg_prot.h:205:
   In file included from include/linux/inet.h:42:
   In file included from include/net/net_namespace.h:40:
   In file included from include/net/net_trackers.h:4:
   include/linux/ref_tracker.h:124:15: warning: attribute declaration must precede definition [-Wignored-attributes]
     124 | static inline __ostream_printf
         |               ^
   include/linux/ref_tracker.h:9:26: note: expanded from macro '__ostream_printf'
       9 | #define __ostream_printf __printf(2, 3)
         |                          ^
   include/linux/compiler_attributes.h:158:56: note: expanded from macro '__printf'
     158 | #define __printf(a, b)                  __attribute__((__format__(printf, a, b)))
         |                                                        ^
   include/linux/ref_tracker.h:87:20: note: previous definition is here
      87 | static inline void ref_tracker_dir_symlink(struct ref_tracker_dir *dir, const char *fmt, ...)
         |                    ^
>> include/linux/ref_tracker.h:125:6: error: redefinition of 'ref_tracker_dir_symlink'
     125 | void ref_tracker_dir_symlink(struct ref_tracker_dir *dir, const char *fmt, ...)
         |      ^
   include/linux/ref_tracker.h:87:20: note: previous definition is here
      87 | static inline void ref_tracker_dir_symlink(struct ref_tracker_dir *dir, const char *fmt, ...)
         |                    ^
   fs/nfs/flexfilelayout/flexfilelayoutdev.c:55:9: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
      55 |         int i, ret = -ENOMEM;
         |                ^
   2 warnings and 1 error generated.
--
   In file included from fs/nfs/blocklayout/blocklayout.c:41:
   In file included from fs/nfs/blocklayout/../pnfs.h:34:
   In file included from include/linux/nfs_fs.h:31:
   In file included from include/linux/sunrpc/auth.h:14:
   In file included from include/linux/sunrpc/msg_prot.h:205:
   In file included from include/linux/inet.h:42:
   In file included from include/net/net_namespace.h:40:
   In file included from include/net/net_trackers.h:4:
   include/linux/ref_tracker.h:124:15: warning: attribute declaration must precede definition [-Wignored-attributes]
     124 | static inline __ostream_printf
         |               ^
   include/linux/ref_tracker.h:9:26: note: expanded from macro '__ostream_printf'
       9 | #define __ostream_printf __printf(2, 3)
         |                          ^
   include/linux/compiler_attributes.h:158:56: note: expanded from macro '__printf'
     158 | #define __printf(a, b)                  __attribute__((__format__(printf, a, b)))
         |                                                        ^
   include/linux/ref_tracker.h:87:20: note: previous definition is here
      87 | static inline void ref_tracker_dir_symlink(struct ref_tracker_dir *dir, const char *fmt, ...)
         |                    ^
>> include/linux/ref_tracker.h:125:6: error: redefinition of 'ref_tracker_dir_symlink'
     125 | void ref_tracker_dir_symlink(struct ref_tracker_dir *dir, const char *fmt, ...)
         |      ^
   include/linux/ref_tracker.h:87:20: note: previous definition is here
      87 | static inline void ref_tracker_dir_symlink(struct ref_tracker_dir *dir, const char *fmt, ...)
         |                    ^
   fs/nfs/blocklayout/blocklayout.c:384:9: warning: variable 'count' set but not used [-Wunused-but-set-variable]
     384 |         size_t count = header->args.count;
         |                ^
   2 warnings and 1 error generated.
..


vim +/ref_tracker_dir_symlink +125 include/linux/ref_tracker.h

     8	
   > 9	#define __ostream_printf __printf(2, 3)
    10	
    11	struct ref_tracker;
    12	
    13	struct ref_tracker_dir {
    14	#ifdef CONFIG_REF_TRACKER
    15		spinlock_t		lock;
    16		unsigned int		quarantine_avail;
    17		refcount_t		untracked;
    18		refcount_t		no_tracker;
    19		bool			dead;
    20		struct list_head	list; /* List of active trackers */
    21		struct list_head	quarantine; /* List of dead trackers */
    22		const char		*class; /* object classname */
    23	#ifdef CONFIG_DEBUG_FS
    24		struct dentry		*dentry;
    25		struct dentry		*symlink;
    26	#endif
    27		char			name[32];
    28	#endif
    29	};
    30	
    31	#ifdef CONFIG_REF_TRACKER
    32	
    33	void ref_tracker_dir_debugfs(struct ref_tracker_dir *dir);
    34	void ref_tracker_dir_symlink(struct ref_tracker_dir *dir, const char *fmt, ...);
    35	
    36	static inline void ref_tracker_dir_init(struct ref_tracker_dir *dir,
    37						unsigned int quarantine_count,
    38						const char *class,
    39						const char *name)
    40	{
    41		INIT_LIST_HEAD(&dir->list);
    42		INIT_LIST_HEAD(&dir->quarantine);
    43		spin_lock_init(&dir->lock);
    44		dir->quarantine_avail = quarantine_count;
    45		dir->dead = false;
    46		refcount_set(&dir->untracked, 1);
    47		refcount_set(&dir->no_tracker, 1);
    48		dir->class = class;
    49	#ifdef CONFIG_DEBUG_FS
    50		dir->dentry = NULL;
    51		dir->symlink = NULL;
    52	#endif
    53		strscpy(dir->name, name, sizeof(dir->name));
    54		ref_tracker_dir_debugfs(dir);
    55		stack_depot_init();
    56	}
    57	
    58	void ref_tracker_dir_exit(struct ref_tracker_dir *dir);
    59	
    60	void ref_tracker_dir_print_locked(struct ref_tracker_dir *dir,
    61					  unsigned int display_limit);
    62	
    63	void ref_tracker_dir_print(struct ref_tracker_dir *dir,
    64				   unsigned int display_limit);
    65	
    66	int ref_tracker_dir_snprint(struct ref_tracker_dir *dir, char *buf, size_t size);
    67	
    68	int ref_tracker_alloc(struct ref_tracker_dir *dir,
    69			      struct ref_tracker **trackerp, gfp_t gfp);
    70	
    71	int ref_tracker_free(struct ref_tracker_dir *dir,
    72			     struct ref_tracker **trackerp);
    73	
    74	#else /* CONFIG_REF_TRACKER */
    75	
    76	static inline void ref_tracker_dir_init(struct ref_tracker_dir *dir,
    77						unsigned int quarantine_count,
    78						const char *class,
    79						const char *name)
    80	{
    81	}
    82	
    83	static inline void ref_tracker_dir_debugfs(struct ref_tracker_dir *dir)
    84	{
    85	}
    86	
    87	static inline void ref_tracker_dir_symlink(struct ref_tracker_dir *dir, const char *fmt, ...)
    88	{
    89	}
    90	
    91	static inline void ref_tracker_dir_exit(struct ref_tracker_dir *dir)
    92	{
    93	}
    94	
    95	static inline void ref_tracker_dir_print_locked(struct ref_tracker_dir *dir,
    96							unsigned int display_limit)
    97	{
    98	}
    99	
   100	static inline void ref_tracker_dir_print(struct ref_tracker_dir *dir,
   101						 unsigned int display_limit)
   102	{
   103	}
   104	
   105	static inline int ref_tracker_dir_snprint(struct ref_tracker_dir *dir,
   106						  char *buf, size_t size)
   107	{
   108		return 0;
   109	}
   110	
   111	static inline int ref_tracker_alloc(struct ref_tracker_dir *dir,
   112					    struct ref_tracker **trackerp,
   113					    gfp_t gfp)
   114	{
   115		return 0;
   116	}
   117	
   118	static inline int ref_tracker_free(struct ref_tracker_dir *dir,
   119					   struct ref_tracker **trackerp)
   120	{
   121		return 0;
   122	}
   123	
   124	static inline __ostream_printf
 > 125	void ref_tracker_dir_symlink(struct ref_tracker_dir *dir, const char *fmt, ...)
   126	{
   127	}
   128	#endif
   129	

-- 
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:[~2025-05-07 11:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20250505-reftrack-dbgfs-v7-7-f78c5d97bcca@kernel.org>
2025-05-07  6:42 ` [PATCH v7 07/10] ref_tracker: add a way to create a symlink to the ref_tracker_dir debugfs file kernel test robot
2025-05-07 11:11 ` 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