[jimc:dd-cached-prefix 66/71] lib/dynamic_debug.c:2205:2: error: #endif without #if
kernel test robot <[email protected]>
| Newsgroups | dev.linux.lists.oe-kbuild-all |
|---|---|
| Message-ID | <[email protected]> |
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/[email protected]/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/[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]/ 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 <[email protected]> :::::: CC: Jim Cromie <[email protected]> -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki