Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
* Re: [PATCH v4 4/5] rust: workqueue: add creation of workqueues
       [not found] <20261119-rust-workqueue-v4-4-707c68994940@google.com>
@ 2026-11-26  7:56 ` kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-11-26  7:56 UTC (permalink / raw)
  To: Alice Ryhl, Tejun Heo, Lai Jiangshan, Danilo Krummrich
  Cc: llvm, oe-kbuild-all, Miguel Ojeda, Boqun Feng, Gary Guo,
	Björn Roy Baron, Benno Lossin, Andreas Hindborg,
	Trevor Gross, Daniel Almeida, Tamir Duberstein, Alexandre Courbot,
	Onur Özkan, John Hubbard, Philipp Stanner, rust-for-linux,
	linux-kernel, driver-core, Alice Ryhl

Hi Alice,

kernel test robot noticed the following build warnings:

[auto build test WARNING on aebb7274476403040d582c61478df8f4a7bf9cd3]

url:    https://github.com/intel-lab-lkp/linux/commits/Alice-Ryhl/rust-workqueue-support-stack-allocated-work-items/20261119-141242
base:   aebb7274476403040d582c61478df8f4a7bf9cd3
patch link:    https://lore.kernel.org/r/20261119-rust-workqueue-v4-4-707c68994940%40google.com
patch subject: [PATCH v4 4/5] rust: workqueue: add creation of workqueues
config: x86_64-rhel-9.4-rust (https://download.01.org/0day-ci/archive/20261126/20261126154348.RP9PjaYR-lkp@intel.com/config)
compiler: clang version 22.1.8 (https://github.com/llvm/llvm-project ca7933e47d3a3451d81e72ac174dcb5aa28b59d1)
rustc: rustc 1.96.0 (ac68faa20 2026-05-25)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261126/20261126154348.RP9PjaYR-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/20261126154348.RP9PjaYR-lkp@intel.com/

All warnings (new ones prefixed by >>):

   In file included from rust/helpers/helpers.c:110:
>> rust/helpers/workqueue.c:27:9: warning: diagnostic behavior may be improved by adding the 'format(printf, 1, 4)' attribute to the declaration of 'rust_helper_alloc_workqueue' [-Wmissing-format-attribute]
      23 | __rust_helper
         | __attribute__((format(printf, 1, 4))) 
      24 | struct workqueue_struct *rust_helper_alloc_workqueue(const char *fmt, unsigned int flags,
      25 |                                                      int max_active, const void *data)
      26 | {
      27 |         return alloc_workqueue(fmt, flags, max_active, data);
         |                ^
   include/linux/workqueue.h:519:76: note: expanded from macro 'alloc_workqueue'
     519 | #define alloc_workqueue(...)    alloc_hooks(alloc_workqueue_noprof(__VA_ARGS__))
         |                                                                               ^
   include/linux/alloc_tag.h:270:31: note: expanded from macro 'alloc_hooks'
     270 |         alloc_hooks_tag(&_alloc_tag, _do_alloc);                        \
         |                                      ^
   include/linux/alloc_tag.h:256:9: note: expanded from macro 'alloc_hooks_tag'
     256 |         typeof(_do_alloc) _res;                                         \
         |                ^
   rust/helpers/workqueue.c:24:26: note: 'rust_helper_alloc_workqueue' declared here
      24 | struct workqueue_struct *rust_helper_alloc_workqueue(const char *fmt, unsigned int flags,
         |                          ^
   1 warning generated.


vim +27 rust/helpers/workqueue.c

    22	
    23	__rust_helper
    24	struct workqueue_struct *rust_helper_alloc_workqueue(const char *fmt, unsigned int flags,
    25							     int max_active, const void *data)
    26	{
  > 27		return alloc_workqueue(fmt, flags, max_active, data);

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-26  7:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20261119-rust-workqueue-v4-4-707c68994940@google.com>
2026-11-26  7:56 ` [PATCH v4 4/5] rust: workqueue: add creation of workqueues kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox