All of lore.kernel.org
 help / color / mirror / Atom feed
* [bcachefs:master 1091/1155] include/linux/dcache.h:59:24: error: initializer element is not constant
@ 2026-09-13  3:46 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-09-13  3:46 UTC (permalink / raw)
  To: Kent Overstreet; +Cc: oe-kbuild-all

tree:   https://evilpiepirate.org/git/bcachefs.git master
head:   ca944a61e079450f82be88c91e349638c75cf4b6
commit: 8ed85840adf72d951032bb4eb397c8ca4ebda2bb [1091/1155] bcachefs: split out create_lostfound()
config: xtensa-randconfig-r073-20260913 (https://download.01.org/0day-ci/archive/20260913/202609130509.zTDMLOZt-lkp@intel.com/config)
compiler: xtensa-linux-gcc (GCC) 10.5.0
smatch: v0.5.0-9187-g5189e3fb
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260913/202609130509.zTDMLOZt-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/202609130509.zTDMLOZt-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from include/linux/fs.h:9,
                    from include/linux/highmem.h:5,
                    from include/linux/bvec.h:10,
                    from include/linux/blk_types.h:10,
                    from include/linux/bio.h:10,
                    from fs/bcachefs/bcachefs.h:202,
                    from fs/bcachefs/fs/check.c:2:
>> include/linux/dcache.h:59:24: error: initializer element is not constant
      59 | #define QSTR_INIT(n,l) { { { .len = l } }, .name = n }
         |                        ^
   include/linux/dcache.h:60:36: note: in expansion of macro 'QSTR_INIT'
      60 | #define QSTR_LEN(n,l) (struct qstr)QSTR_INIT(n,l)
         |                                    ^~~~~~~~~
   include/linux/dcache.h:61:17: note: in expansion of macro 'QSTR_LEN'
      61 | #define QSTR(n) QSTR_LEN(n, strlen(n))
         |                 ^~~~~~~~
   fs/bcachefs/fs/check.c:113:36: note: in expansion of macro 'QSTR'
     113 | static struct qstr lostfound_str = QSTR("lost+found");
         |                                    ^~~~
   include/linux/dcache.h:59:24: note: (near initialization for 'lostfound_str')
      59 | #define QSTR_INIT(n,l) { { { .len = l } }, .name = n }
         |                        ^
   include/linux/dcache.h:60:36: note: in expansion of macro 'QSTR_INIT'
      60 | #define QSTR_LEN(n,l) (struct qstr)QSTR_INIT(n,l)
         |                                    ^~~~~~~~~
   include/linux/dcache.h:61:17: note: in expansion of macro 'QSTR_LEN'
      61 | #define QSTR(n) QSTR_LEN(n, strlen(n))
         |                 ^~~~~~~~
   fs/bcachefs/fs/check.c:113:36: note: in expansion of macro 'QSTR'
     113 | static struct qstr lostfound_str = QSTR("lost+found");
         |                                    ^~~~
   include/linux/dcache.h:60:23: error: initializer element is not constant
      60 | #define QSTR_LEN(n,l) (struct qstr)QSTR_INIT(n,l)
         |                       ^
   include/linux/dcache.h:61:17: note: in expansion of macro 'QSTR_LEN'
      61 | #define QSTR(n) QSTR_LEN(n, strlen(n))
         |                 ^~~~~~~~
   fs/bcachefs/fs/check.c:113:36: note: in expansion of macro 'QSTR'
     113 | static struct qstr lostfound_str = QSTR("lost+found");
         |                                    ^~~~


vim +59 include/linux/dcache.h

^1da177e4c3f41 Linus Torvalds 2005-04-16  58  
26fe5750287039 Linus Torvalds 2012-05-10 @59  #define QSTR_INIT(n,l) { { { .len = l } }, .name = n }
5741909697a31c NeilBrown      2025-03-19  60  #define QSTR_LEN(n,l) (struct qstr)QSTR_INIT(n,l)
5741909697a31c NeilBrown      2025-03-19  61  #define QSTR(n) QSTR_LEN(n, strlen(n))
26fe5750287039 Linus Torvalds 2012-05-10  62  

:::::: The code at line 59 was first introduced by commit
:::::: 26fe575028703948880fce4355a210c76bb0536e vfs: make it possible to access the dentry hash/len as one 64-bit entry

:::::: TO: Linus Torvalds <torvalds@linux-foundation.org>
:::::: CC: Linus Torvalds <torvalds@linux-foundation.org>

--
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-09-13  3:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-13  3:46 [bcachefs:master 1091/1155] include/linux/dcache.h:59:24: error: initializer element is not constant 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.