All of lore.kernel.org
 help / color / mirror / Atom feed
* [bvanassche:thread-safety 211/445] arch/mips/include/uapi/asm/signal.h:16:32: error: missing binary operator before token '('
@ 2026-11-05  3:00 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-11-05  3:00 UTC (permalink / raw)
  To: Bart Van Assche; +Cc: oe-kbuild-all

tree:   https://github.com/bvanassche/linux thread-safety
head:   d7fccb0c43af0d515fd23b885eb43ee9c38a6247
commit: 4edb32e9edb0de9a9e2b9c5fbe1aafd898744fa4 [211/445] signal: Use preprocessor conditionals in sigisemptyset() and sigequalsets()
config: mips-allmodconfig (https://download.01.org/0day-ci/archive/20261105/202611051018.yn2aowTe-lkp@intel.com/config)
compiler: mips-linux-gcc (GCC) 16.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261105/202611051018.yn2aowTe-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/202611051018.yn2aowTe-lkp@intel.com/

All error/warnings (new ones prefixed by >>):

   In file included from arch/mips/include/asm/signal.h:12,
                    from include/uapi/linux/signal.h:5,
                    from include/linux/signal_types.h:10,
                    from include/linux/sched.h:37,
                    from include/linux/rcupdate.h:27,
                    from include/linux/rbtree.h:24,
                    from include/linux/mm_types.h:11,
                    from include/linux/uio.h:9,
                    from include/linux/socket.h:8,
                    from include/linux/compat.h:15,
                    from arch/mips/kernel/asm-offsets.c:14:
   include/linux/signal.h: In function 'sigisemptyset':
>> arch/mips/include/uapi/asm/signal.h:16:26: warning: 'sizeof' is not defined, evaluates to '0' [-Wundef]
      16 | #define _NSIG_BPW       (sizeof(unsigned long) * 8)
         |                          ^~~~~~
   arch/mips/include/uapi/asm/signal.h:17:34: note: in expansion of macro '_NSIG_BPW'
      17 | #define _NSIG_WORDS     (_NSIG / _NSIG_BPW)
         |                                  ^~~~~~~~~
   include/linux/signal.h:96:5: note: in expansion of macro '_NSIG_WORDS'
      96 | #if _NSIG_WORDS == 4
         |     ^~~~~~~~~~~
>> arch/mips/include/uapi/asm/signal.h:16:32: error: missing binary operator before token '('
      16 | #define _NSIG_BPW       (sizeof(unsigned long) * 8)
         |                                ^
   arch/mips/include/uapi/asm/signal.h:17:34: note: in expansion of macro '_NSIG_BPW'
      17 | #define _NSIG_WORDS     (_NSIG / _NSIG_BPW)
         |                                  ^~~~~~~~~
   include/linux/signal.h:96:5: note: in expansion of macro '_NSIG_WORDS'
      96 | #if _NSIG_WORDS == 4
         |     ^~~~~~~~~~~
>> arch/mips/include/uapi/asm/signal.h:16:26: warning: 'sizeof' is not defined, evaluates to '0' [-Wundef]
      16 | #define _NSIG_BPW       (sizeof(unsigned long) * 8)
         |                          ^~~~~~
   arch/mips/include/uapi/asm/signal.h:17:34: note: in expansion of macro '_NSIG_BPW'
      17 | #define _NSIG_WORDS     (_NSIG / _NSIG_BPW)
         |                                  ^~~~~~~~~
   include/linux/signal.h:98:7: note: in expansion of macro '_NSIG_WORDS'
      98 | #elif _NSIG_WORDS == 2
         |       ^~~~~~~~~~~
>> arch/mips/include/uapi/asm/signal.h:16:32: error: missing binary operator before token '('
      16 | #define _NSIG_BPW       (sizeof(unsigned long) * 8)
         |                                ^
   arch/mips/include/uapi/asm/signal.h:17:34: note: in expansion of macro '_NSIG_BPW'
      17 | #define _NSIG_WORDS     (_NSIG / _NSIG_BPW)
         |                                  ^~~~~~~~~
   include/linux/signal.h:98:7: note: in expansion of macro '_NSIG_WORDS'
      98 | #elif _NSIG_WORDS == 2
         |       ^~~~~~~~~~~
>> arch/mips/include/uapi/asm/signal.h:16:26: warning: 'sizeof' is not defined, evaluates to '0' [-Wundef]
      16 | #define _NSIG_BPW       (sizeof(unsigned long) * 8)
         |                          ^~~~~~
   arch/mips/include/uapi/asm/signal.h:17:34: note: in expansion of macro '_NSIG_BPW'
      17 | #define _NSIG_WORDS     (_NSIG / _NSIG_BPW)
         |                                  ^~~~~~~~~
   include/linux/signal.h:100:7: note: in expansion of macro '_NSIG_WORDS'
     100 | #elif _NSIG_WORDS == 1
         |       ^~~~~~~~~~~
>> arch/mips/include/uapi/asm/signal.h:16:32: error: missing binary operator before token '('
      16 | #define _NSIG_BPW       (sizeof(unsigned long) * 8)
         |                                ^
   arch/mips/include/uapi/asm/signal.h:17:34: note: in expansion of macro '_NSIG_BPW'
      17 | #define _NSIG_WORDS     (_NSIG / _NSIG_BPW)
         |                                  ^~~~~~~~~
   include/linux/signal.h:100:7: note: in expansion of macro '_NSIG_WORDS'
     100 | #elif _NSIG_WORDS == 1
         |       ^~~~~~~~~~~
   include/linux/signal.h: In function 'sigequalsets':
>> arch/mips/include/uapi/asm/signal.h:16:26: warning: 'sizeof' is not defined, evaluates to '0' [-Wundef]
      16 | #define _NSIG_BPW       (sizeof(unsigned long) * 8)
         |                          ^~~~~~
   arch/mips/include/uapi/asm/signal.h:17:34: note: in expansion of macro '_NSIG_BPW'
      17 | #define _NSIG_WORDS     (_NSIG / _NSIG_BPW)
         |                                  ^~~~~~~~~
   include/linux/signal.h:110:5: note: in expansion of macro '_NSIG_WORDS'
     110 | #if _NSIG_WORDS == 4
         |     ^~~~~~~~~~~
>> arch/mips/include/uapi/asm/signal.h:16:32: error: missing binary operator before token '('
      16 | #define _NSIG_BPW       (sizeof(unsigned long) * 8)
         |                                ^
   arch/mips/include/uapi/asm/signal.h:17:34: note: in expansion of macro '_NSIG_BPW'
      17 | #define _NSIG_WORDS     (_NSIG / _NSIG_BPW)
         |                                  ^~~~~~~~~
   include/linux/signal.h:110:5: note: in expansion of macro '_NSIG_WORDS'
     110 | #if _NSIG_WORDS == 4
         |     ^~~~~~~~~~~
>> arch/mips/include/uapi/asm/signal.h:16:26: warning: 'sizeof' is not defined, evaluates to '0' [-Wundef]
      16 | #define _NSIG_BPW       (sizeof(unsigned long) * 8)
         |                          ^~~~~~
   arch/mips/include/uapi/asm/signal.h:17:34: note: in expansion of macro '_NSIG_BPW'
      17 | #define _NSIG_WORDS     (_NSIG / _NSIG_BPW)
         |                                  ^~~~~~~~~
   include/linux/signal.h:115:7: note: in expansion of macro '_NSIG_WORDS'
     115 | #elif _NSIG_WORDS == 2
         |       ^~~~~~~~~~~
>> arch/mips/include/uapi/asm/signal.h:16:32: error: missing binary operator before token '('
      16 | #define _NSIG_BPW       (sizeof(unsigned long) * 8)
         |                                ^
   arch/mips/include/uapi/asm/signal.h:17:34: note: in expansion of macro '_NSIG_BPW'
      17 | #define _NSIG_WORDS     (_NSIG / _NSIG_BPW)
         |                                  ^~~~~~~~~
   include/linux/signal.h:115:7: note: in expansion of macro '_NSIG_WORDS'
     115 | #elif _NSIG_WORDS == 2
         |       ^~~~~~~~~~~
>> arch/mips/include/uapi/asm/signal.h:16:26: warning: 'sizeof' is not defined, evaluates to '0' [-Wundef]
      16 | #define _NSIG_BPW       (sizeof(unsigned long) * 8)
         |                          ^~~~~~
   arch/mips/include/uapi/asm/signal.h:17:34: note: in expansion of macro '_NSIG_BPW'
      17 | #define _NSIG_WORDS     (_NSIG / _NSIG_BPW)
         |                                  ^~~~~~~~~
   include/linux/signal.h:118:7: note: in expansion of macro '_NSIG_WORDS'
     118 | #elif _NSIG_WORDS == 1
         |       ^~~~~~~~~~~
>> arch/mips/include/uapi/asm/signal.h:16:32: error: missing binary operator before token '('
      16 | #define _NSIG_BPW       (sizeof(unsigned long) * 8)
         |                                ^
   arch/mips/include/uapi/asm/signal.h:17:34: note: in expansion of macro '_NSIG_BPW'
      17 | #define _NSIG_WORDS     (_NSIG / _NSIG_BPW)
         |                                  ^~~~~~~~~
   include/linux/signal.h:118:7: note: in expansion of macro '_NSIG_WORDS'
     118 | #elif _NSIG_WORDS == 1
         |       ^~~~~~~~~~~
   make[3]: *** [scripts/Makefile.build:185: arch/mips/kernel/asm-offsets.s] Error 1
   make[3]: Target 'prepare' not remade because of errors.
   make[2]: *** [Makefile:1417: prepare0] Error 2
   make[2]: Target 'prepare' not remade because of errors.
   make[1]: *** [Makefile:248: __sub-make] Error 2
   make[1]: Target 'prepare' not remade because of errors.
   make: *** [Makefile:248: __sub-make] Error 2
   make: Target 'prepare' not remade because of errors.


vim +16 arch/mips/include/uapi/asm/signal.h

61730c538f8281e David Howells 2012-10-09  14  
61730c538f8281e David Howells 2012-10-09  15  #define _NSIG		128
61730c538f8281e David Howells 2012-10-09 @16  #define _NSIG_BPW	(sizeof(unsigned long) * 8)
61730c538f8281e David Howells 2012-10-09  17  #define _NSIG_WORDS	(_NSIG / _NSIG_BPW)
61730c538f8281e David Howells 2012-10-09  18  

:::::: The code at line 16 was first introduced by commit
:::::: 61730c538f8281efa7ac12596da9f3f9a31b9272 UAPI: (Scripted) Disintegrate arch/mips/include/asm

:::::: TO: David Howells <dhowells@redhat.com>
:::::: CC: David Howells <dhowells@redhat.com>

--
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-05  3:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-05  3:00 [bvanassche:thread-safety 211/445] arch/mips/include/uapi/asm/signal.h:16:32: error: missing binary operator before token '(' 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.