From: kernel test robot <lkp@intel.com>
To: "Jim Cromie" <jim.cromie@gmail.com>,
" Łukasz Bartosik" <ukaszb@chromium.org>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [jimc:dd-cached-prefix 66/71] lib/dynamic_debug.c:2205:2: error: #endif without #if
Date: Tue, 18 Aug 2026 00:20:28 +0800 [thread overview]
Message-ID: <202608180019.QQmR184G-lkp@intel.com> (raw)
tree: https://github.com/jimc/linux.git dd-cached-prefix
head: 9c2bc97085eaafb97fb747811e19d549297d5e0a
commit: f5a1c2c15cfd150a90470a1fefc12568fbce7441 [66/71] dyndbg: Combine 3 site-data maple trees into a single tree
config: i386-randconfig-011-20260812 (https://download.01.org/0day-ci/archive/20260818/202608180019.QQmR184G-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/20260818/202608180019.QQmR184G-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/202608180019.QQmR184G-lkp@intel.com/
Note: the jimc/dd-cached-prefix HEAD 9c2bc97085eaafb97fb747811e19d549297d5e0a builds fine.
It only hurts bisectability.
All error/warnings (new ones prefixed by >>):
lib/dynamic_debug.c: In function 'ddebug_proc_show':
lib/dynamic_debug.c:1435:58: error: 'pr_prefixes_count' undeclared (first use in this function); did you mean 'pr_prefixes_lock'?
1435 | seq_printf(m, "#: cached_prefixes=%u\n", pr_prefixes_count);
| ^~~~~~~~~~~~~~~~~
| pr_prefixes_lock
lib/dynamic_debug.c:1435:58: note: each undeclared identifier is reported only once for each function it appears in
lib/dynamic_debug.c: At top level:
>> lib/dynamic_debug.c:2205:2: error: #endif without #if
2205 | #endif
| ^~~~~
>> lib/dynamic_debug.c:2160:13: warning: 'ddebug_prefix_range' defined but not used [-Wunused-function]
2160 | static void ddebug_prefix_range(const struct _ddebug *desc,
| ^~~~~~~~~~~~~~~~~~~
vim +2205 lib/dynamic_debug.c
f5a1c2c15cfd15 Jim Cromie 2026-06-24 2159
ecf273dd666033 Jim Cromie 2026-06-29 @2160 static void ddebug_prefix_range(const struct _ddebug *desc,
ecf273dd666033 Jim Cromie 2026-06-29 2161 struct _dd_prefix_key_range *range)
ecf273dd666033 Jim Cromie 2026-06-29 2162 {
ecf273dd666033 Jim Cromie 2026-06-29 2163 unsigned long addr = (unsigned long)desc;
ecf273dd666033 Jim Cromie 2026-06-29 2164 unsigned long start = addr;
ecf273dd666033 Jim Cromie 2026-06-29 2165 unsigned long end = addr;
ecf273dd666033 Jim Cromie 2026-06-29 2166 uint8_t flags = prefix_flags(desc->flags);
ecf273dd666033 Jim Cromie 2026-06-29 2167
ecf273dd666033 Jim Cromie 2026-06-29 2168 if (flags & _DPRINTK_FLAGS_INCL_LINENO) {
ecf273dd666033 Jim Cromie 2026-06-29 2169 /*
ecf273dd666033 Jim Cromie 2026-06-29 2170 * except for amdgpu, which has macros with 2+ pr_debugs,
ecf273dd666033 Jim Cromie 2026-06-29 2171 * all prefixes with line-numbers are unique.
ecf273dd666033 Jim Cromie 2026-06-29 2172 */
ecf273dd666033 Jim Cromie 2026-06-29 2173 range->start = range->end = ddebug_prefix_key(desc);
ecf273dd666033 Jim Cromie 2026-06-29 2174 return;
ecf273dd666033 Jim Cromie 2026-06-29 2175 }
ecf273dd666033 Jim Cromie 2026-06-29 2176
ecf273dd666033 Jim Cromie 2026-06-29 2177 /* 1. Module Level (Always the base for sharing) */
ecf273dd666033 Jim Cromie 2026-06-29 2178 {
f5a1c2c15cfd15 Jim Cromie 2026-06-24 2179 unsigned long mod_start, mod_end;
f5a1c2c15cfd15 Jim Cromie 2026-06-24 2180 ddebug_resolve_range(&dd_site_map, addr, &mod_start, &mod_end, DD_TAG_MOD);
f5a1c2c15cfd15 Jim Cromie 2026-06-24 2181 start = mod_start;
f5a1c2c15cfd15 Jim Cromie 2026-06-24 2182 end = mod_end;
ecf273dd666033 Jim Cromie 2026-06-29 2183 }
ecf273dd666033 Jim Cromie 2026-06-29 2184
ecf273dd666033 Jim Cromie 2026-06-29 2185 /* 2. File Level (Narrow further if +s is set) */
ecf273dd666033 Jim Cromie 2026-06-29 2186 if (flags & _DPRINTK_FLAGS_INCL_SOURCENAME) {
f5a1c2c15cfd15 Jim Cromie 2026-06-24 2187 unsigned long file_start, file_end;
f5a1c2c15cfd15 Jim Cromie 2026-06-24 2188 ddebug_resolve_range(&dd_site_map, addr, &file_start, &file_end, DD_TAG_FILE);
f5a1c2c15cfd15 Jim Cromie 2026-06-24 2189 start = max(start, file_start);
f5a1c2c15cfd15 Jim Cromie 2026-06-24 2190 end = min(end, file_end);
ecf273dd666033 Jim Cromie 2026-06-29 2191 }
ecf273dd666033 Jim Cromie 2026-06-29 2192
ecf273dd666033 Jim Cromie 2026-06-29 2193 /* 3. Function Level (Narrow if +f is set) */
ecf273dd666033 Jim Cromie 2026-06-29 2194 if (flags & _DPRINTK_FLAGS_INCL_FUNCNAME) {
f5a1c2c15cfd15 Jim Cromie 2026-06-24 2195 unsigned long func_start, func_end;
f5a1c2c15cfd15 Jim Cromie 2026-06-24 2196 ddebug_resolve_range(&dd_site_map, addr, &func_start, &func_end, DD_TAG_FUNC);
f5a1c2c15cfd15 Jim Cromie 2026-06-24 2197 start = max(start, func_start);
f5a1c2c15cfd15 Jim Cromie 2026-06-24 2198 end = min(end, func_end);
ecf273dd666033 Jim Cromie 2026-06-29 2199 }
ecf273dd666033 Jim Cromie 2026-06-29 2200
ecf273dd666033 Jim Cromie 2026-06-29 2201 /* Convert descriptor addresses to top-shifted flag-partitioned keys */
ecf273dd666033 Jim Cromie 2026-06-29 2202 range->start = ddebug_pack_key(start, flags);
ecf273dd666033 Jim Cromie 2026-06-29 2203 range->end = ddebug_pack_key(end, flags);
ecf273dd666033 Jim Cromie 2026-06-29 2204 }
ecf273dd666033 Jim Cromie 2026-06-29 @2205 #endif
ecf273dd666033 Jim Cromie 2026-06-29 2206
:::::: The code at line 2205 was first introduced by commit
:::::: ecf273dd6660331c645940bfe8e7bbca17921ef9 dyndbg: cache shared dynamic prefixes
:::::: TO: Jim Cromie <jim.cromie@gmail.com>
:::::: CC: Jim Cromie <jim.cromie@gmail.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2026-08-17 16:20 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=202608180019.QQmR184G-lkp@intel.com \
--to=lkp@intel.com \
--cc=jim.cromie@gmail.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=ukaszb@chromium.org \
/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.