* [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
@ 2026-01-05 23:22 kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2026-01-05 23:22 UTC (permalink / raw)
To: Gabriele Monaco; +Cc: oe-kbuild-all
tree: https://git.kernel.org/pub/scm/linux/kernel/git/gmonaco/linux.git staging_rv_mon_kunit
head: e50630dce77a6316bf4ba69e1af30004a302bc24
commit: a3a107602a180742b0a05704b5c554f5ba056bf0 [26/28] rv: Add KUnit tests for some DA/HA monitors
config: x86_64-rhel-9.4-kunit (https://download.01.org/0day-ci/archive/20260106/202601060035.2apzs2OJ-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/20260106/202601060035.2apzs2OJ-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/202601060035.2apzs2OJ-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
> 10 #include "rv_monitors_test.h"
11 #include <kunit/static_stub.h>
12 #include <kunit/test-bug.h>
13 #include <linux/kernel.h>
14 #include <linux/rv.h>
15
16 static void stub_rv_react(struct rv_monitor *monitor, const char *msg, ...)
17 {
18 struct rv_kunit_ctx *ctx = kunit_get_current_test()->priv;
19
20 ++ctx->reactions;
21 }
22
23 static int stub_rv_get_task_monitor_slot(void)
24 {
25 return 0;
26 }
27
28 static void stub_rv_put_task_monitor_slot(int slot)
29 {
30 }
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* [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
@ 2026-01-06 14:09 kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2026-01-06 14:09 UTC (permalink / raw)
To: Gabriele Monaco; +Cc: oe-kbuild-all
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-01-06 14:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-06 14:09 [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
-- strict thread matches above, loose matches on Subject: below --
2026-01-05 23:22 kernel test robot
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.