From: kernel test robot <lkp@intel.com>
To: Gabriele Monaco <gmonaco@redhat.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [glemco:staging_rv_mon_kunit 26/28] kernel/trace/rv/rv_monitors_test.c:41:42: warning: initialization left-hand side might be a candidate for a format attribute
Date: Tue, 06 Jan 2026 22:09:25 +0800 [thread overview]
Message-ID: <202601062250.9mLsBNbP-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/gmonaco/linux.git staging_rv_mon_kunit
head: aa87c6b5e8020a853fbc2444ded06a93a7fc1493
commit: a3a107602a180742b0a05704b5c554f5ba056bf0 [26/28] rv: Add KUnit tests for some DA/HA monitors
config: arc-randconfig-001-20260106 (https://download.01.org/0day-ci/archive/20260106/202601062250.9mLsBNbP-lkp@intel.com/config)
compiler: arc-linux-gcc (GCC) 13.4.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260106/202601062250.9mLsBNbP-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/202601062250.9mLsBNbP-lkp@intel.com/
All warnings (new ones prefixed by >>):
In file included from include/linux/spinlock.h:55,
from include/linux/kref.h:16,
from include/kunit/test.h:22,
from kernel/trace/rv/rv_monitors_test.h:3,
from kernel/trace/rv/rv_monitors_test.c:10:
kernel/trace/rv/rv_monitors_test.c: In function 'rv_trigger_test_init':
>> kernel/trace/rv/rv_monitors_test.c:41:42: warning: initialization left-hand side might be a candidate for a format attribute [-Wsuggest-attribute=format]
41 | kunit_activate_static_stub(test, rv_react, stub_rv_react);
| ^~~~~~~~
include/linux/typecheck.h:21:30: note: in definition of macro 'typecheck_fn'
21 | ({ typeof(type) __tmp = function; \
| ^~~~~~~~
kernel/trace/rv/rv_monitors_test.c:41:9: note: in expansion of macro 'kunit_activate_static_stub'
41 | kunit_activate_static_stub(test, rv_react, stub_rv_react);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from kernel/trace/rv/rv_monitors_test.c:11:
>> kernel/trace/rv/rv_monitors_test.c:41:42: warning: argument 2 of '__kunit_activate_static_stub' might be a candidate for a format attribute [-Wsuggest-attribute=format]
41 | kunit_activate_static_stub(test, rv_react, stub_rv_react);
| ^~~~~~~~
include/kunit/static_stub.h:97:44: note: in definition of macro 'kunit_activate_static_stub'
97 | __kunit_activate_static_stub(test, real_fn_addr, replacement_addr); \
| ^~~~~~~~~~~~
vim +41 kernel/trace/rv/rv_monitors_test.c
31
32 static int rv_trigger_test_init(struct kunit *test)
33 {
34 struct rv_kunit_ctx *ctx;
35
36 ctx = kunit_kzalloc(test, sizeof(*ctx), GFP_KERNEL);
37 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, ctx);
38
39 test->priv = ctx;
40
> 41 kunit_activate_static_stub(test, rv_react, stub_rv_react);
42 kunit_activate_static_stub(test, rv_get_task_monitor_slot,
43 stub_rv_get_task_monitor_slot);
44 kunit_activate_static_stub(test, rv_put_task_monitor_slot,
45 stub_rv_put_task_monitor_slot);
46
47 return 0;
48 }
49
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next reply other threads:[~2026-01-06 14:10 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-06 14:09 kernel test robot [this message]
-- strict thread matches above, loose matches on Subject: below --
2026-01-05 23:22 [glemco:staging_rv_mon_kunit 26/28] kernel/trace/rv/rv_monitors_test.c:41:42: warning: initialization left-hand side might be a candidate for a format attribute kernel test robot
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=202601062250.9mLsBNbP-lkp@intel.com \
--to=lkp@intel.com \
--cc=gmonaco@redhat.com \
--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.