From: kernel test robot <lkp@intel.com>
To: Jeff Layton <jlayton@kernel.org>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: Re: [PATCH v7 07/10] ref_tracker: add a way to create a symlink to the ref_tracker_dir debugfs file
Date: Wed, 7 May 2025 14:42:54 +0800 [thread overview]
Message-ID: <202505071434.YWUTBcYu-lkp@intel.com> (raw)
In-Reply-To: <20250505-reftrack-dbgfs-v7-7-f78c5d97bcca@kernel.org>
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
next prev parent reply other threads:[~2025-05-07 6:43 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-05 17:33 [PATCH v7 00/10] ref_tracker: add ability to register a debugfs file for a ref_tracker_dir Jeff Layton
2025-05-05 17:33 ` [PATCH v7 01/10] ref_tracker: don't use %pK in pr_ostream() output Jeff Layton
2025-05-05 17:33 ` [PATCH v7 02/10] ref_tracker: add a top level debugfs directory for ref_tracker Jeff Layton
2025-05-05 17:33 ` [PATCH v7 03/10] ref_tracker: have callers pass output function to pr_ostream() Jeff Layton
2025-05-05 17:33 ` [PATCH v7 04/10] ref_tracker: add a static classname string to each ref_tracker_dir Jeff Layton
2025-05-05 17:33 ` [PATCH v7 05/10] ref_tracker: allow pr_ostream() to print directly to a seq_file Jeff Layton
2025-05-05 17:33 ` [PATCH v7 06/10] ref_tracker: automatically register a file in debugfs for a ref_tracker_dir Jeff Layton
2025-05-05 17:33 ` [PATCH v7 07/10] ref_tracker: add a way to create a symlink to the ref_tracker_dir debugfs file Jeff Layton
2025-05-07 6:42 ` kernel test robot [this message]
2025-05-07 11:11 ` kernel test robot
2025-05-05 17:33 ` [PATCH v7 08/10] net: add symlinks to ref_tracker_dir for netns Jeff Layton
2025-05-05 17:33 ` [PATCH v7 09/10] i915: add ref_tracker_dir symlinks for each tracker Jeff Layton
2025-05-06 10:25 ` Jani Nikula
2025-05-05 17:33 ` [PATCH v7 10/10] ref_tracker: eliminate the ref_tracker_dir name field Jeff Layton
2025-05-05 18:15 ` ✗ Fi.CI.CHECKPATCH: warning for ref_tracker: add ability to register a debugfs file for a ref_tracker_dir (rev3) Patchwork
2025-05-05 18:15 ` ✗ Fi.CI.SPARSE: " Patchwork
2025-05-05 18:39 ` ✗ i915.CI.BAT: failure " Patchwork
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=202505071434.YWUTBcYu-lkp@intel.com \
--to=lkp@intel.com \
--cc=jlayton@kernel.org \
--cc=llvm@lists.linux.dev \
--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 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.