All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Bart Van Assche <bvanassche@acm.org>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [bvanassche:thread-safety 211/445] arch/mips/include/uapi/asm/signal.h:16:32: error: missing binary operator before token '('
Date: Thu, 05 Nov 2026 11:00:30 +0800	[thread overview]
Message-ID: <202611051018.yn2aowTe-lkp@intel.com> (raw)

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

                 reply	other threads:[~2026-11-05  3:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=202611051018.yn2aowTe-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=bvanassche@acm.org \
    --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.