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-shrink-cached 61/64] lib/dynamic_debug.c:2166:13: warning: 'ddebug_drop_all_cached_prefixes' defined but not used
Date: Wed, 19 Aug 2026 13:44:51 +0800 [thread overview]
Message-ID: <202608191321.ayWRylKz-lkp@intel.com> (raw)
tree: https://github.com/jimc/linux.git dd-shrink-cached
head: 917ff2e5a74ae1c252ad3a2c9017bd464f9258f9
commit: 2ac93b95f70330b9b6a6e2ff609691c85fa7ceed [61/64] lib/dynamic_debug.c: Cache shared dynamic prefixes eagerly
config: sh-randconfig-r133-20260819 (https://download.01.org/0day-ci/archive/20260819/202608191321.ayWRylKz-lkp@intel.com/config)
compiler: sh4-linux-gcc (GCC) 16.1.0
sparse: v0.6.5-rc1
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260819/202608191321.ayWRylKz-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/202608191321.ayWRylKz-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> lib/dynamic_debug.c:2166:13: warning: 'ddebug_drop_all_cached_prefixes' defined but not used [-Wunused-function]
2166 | static void ddebug_drop_all_cached_prefixes(const struct _ddebug_info *di)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +/ddebug_drop_all_cached_prefixes +2166 lib/dynamic_debug.c
2165
> 2166 static void ddebug_drop_all_cached_prefixes(const struct _ddebug_info *di)
2167 {
2168 int i, f;
2169 struct _ddebug *dp;
2170
2171 for_subvec(i, dp, di, descs) {
2172 for (f = 0; f < 16; f++) {
2173 unsigned long key = ((unsigned long)f << DDEBUG_PREFIX_KEY_FLAGS_SHIFT) |
2174 ((unsigned long)dp >> 4);
2175 char *prefix = mtree_erase(&pr_prefixes, key);
2176 if (prefix) {
2177 pr_prefixes_count--;
2178 v3pr_info("drop cached prefix: %s\n", prefix);
2179 kfree(prefix);
2180 }
2181 }
2182 }
2183 }
2184
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2026-08-19 5:45 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=202608191321.ayWRylKz-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.