All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Amir Goldstein <amir73il@gmail.com>
Cc: oe-kbuild-all@lists.linux.dev,
	Linux Memory Management List <linux-mm@kvack.org>,
	Christian Brauner <brauner@kernel.org>, Jan Kara <jack@suse.cz>,
	Jeff Layton <jlayton@kernel.org>
Subject: [linux-next:master 14380/16121] include/linux/stddef.h:8:16: error: expected identifier or '(' before 'void'
Date: Mon, 30 Oct 2023 23:51:13 +0800	[thread overview]
Message-ID: <202310302338.MpPQAr10-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   c503e3eec382ac708ee7adf874add37b77c5d312
commit: dfaf653dc41557548b2e75e6cd837071f7c63289 [14380/16121] exportfs: make ->encode_fh() a mandatory method for NFS export
config: xtensa-randconfig-r015-20221109 (https://download.01.org/0day-ci/archive/20231030/202310302338.MpPQAr10-lkp@intel.com/config)
compiler: xtensa-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231030/202310302338.MpPQAr10-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/202310302338.MpPQAr10-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from include/uapi/linux/posix_types.h:5,
                    from include/uapi/linux/types.h:14,
                    from include/linux/types.h:6,
                    from include/linux/exportfs.h:5,
                    from fs/exportfs/expfs.c:12:
>> include/linux/stddef.h:8:16: error: expected identifier or '(' before 'void'
       8 | #define NULL ((void *)0)
         |                ^~~~
   include/linux/exportfs.h:286:33: note: in expansion of macro 'NULL'
     286 | #define generic_encode_ino32_fh NULL
         |                                 ^~~~
   fs/exportfs/expfs.c:357:5: note: in expansion of macro 'generic_encode_ino32_fh'
     357 | int generic_encode_ino32_fh(struct inode *inode, __u32 *fh, int *max_len,
         |     ^~~~~~~~~~~~~~~~~~~~~~~
>> include/linux/stddef.h:8:23: error: expected ')' before numeric constant
       8 | #define NULL ((void *)0)
         |                       ^
   include/linux/exportfs.h:286:33: note: in expansion of macro 'NULL'
     286 | #define generic_encode_ino32_fh NULL
         |                                 ^~~~
   fs/exportfs/expfs.c:357:5: note: in expansion of macro 'generic_encode_ino32_fh'
     357 | int generic_encode_ino32_fh(struct inode *inode, __u32 *fh, int *max_len,
         |     ^~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/linux/linkage.h:7,
                    from include/linux/fs.h:5,
                    from fs/exportfs/expfs.c:13:
>> include/linux/stddef.h:8:16: error: expected identifier or '(' before 'void'
       8 | #define NULL ((void *)0)
         |                ^~~~
   include/linux/export.h:74:28: note: in definition of macro '__EXPORT_SYMBOL'
      74 |         extern typeof(sym) sym;                                 \
         |                            ^~~
   include/linux/export.h:87:41: note: in expansion of macro '_EXPORT_SYMBOL'
      87 | #define EXPORT_SYMBOL_GPL(sym)          _EXPORT_SYMBOL(sym, "GPL")
         |                                         ^~~~~~~~~~~~~~
   fs/exportfs/expfs.c:384:1: note: in expansion of macro 'EXPORT_SYMBOL_GPL'
     384 | EXPORT_SYMBOL_GPL(generic_encode_ino32_fh);
         | ^~~~~~~~~~~~~~~~~
   include/linux/exportfs.h:286:33: note: in expansion of macro 'NULL'
     286 | #define generic_encode_ino32_fh NULL
         |                                 ^~~~
   fs/exportfs/expfs.c:384:19: note: in expansion of macro 'generic_encode_ino32_fh'
     384 | EXPORT_SYMBOL_GPL(generic_encode_ino32_fh);
         |                   ^~~~~~~~~~~~~~~~~~~~~~~
>> include/linux/stddef.h:8:23: error: expected ')' before numeric constant
       8 | #define NULL ((void *)0)
         |                       ^
   include/linux/export.h:74:28: note: in definition of macro '__EXPORT_SYMBOL'
      74 |         extern typeof(sym) sym;                                 \
         |                            ^~~
   include/linux/export.h:87:41: note: in expansion of macro '_EXPORT_SYMBOL'
      87 | #define EXPORT_SYMBOL_GPL(sym)          _EXPORT_SYMBOL(sym, "GPL")
         |                                         ^~~~~~~~~~~~~~
   fs/exportfs/expfs.c:384:1: note: in expansion of macro 'EXPORT_SYMBOL_GPL'
     384 | EXPORT_SYMBOL_GPL(generic_encode_ino32_fh);
         | ^~~~~~~~~~~~~~~~~
   include/linux/exportfs.h:286:33: note: in expansion of macro 'NULL'
     286 | #define generic_encode_ino32_fh NULL
         |                                 ^~~~
   fs/exportfs/expfs.c:384:19: note: in expansion of macro 'generic_encode_ino32_fh'
     384 | EXPORT_SYMBOL_GPL(generic_encode_ino32_fh);
         |                   ^~~~~~~~~~~~~~~~~~~~~~~
   In file included from <command-line>:
>> include/linux/compiler.h:215:37: error: pasting "__addressable_" and "(" does not give a valid preprocessing token
     215 |                 __UNIQUE_ID(__PASTE(__addressable_,sym)) = (void *)&sym;
         |                                     ^~~~~~~~~~~~~~
   include/linux/compiler_types.h:74:23: note: in definition of macro '___PASTE'
      74 | #define ___PASTE(a,b) a##b
         |                       ^
   include/linux/compiler.h:215:29: note: in expansion of macro '__PASTE'
     215 |                 __UNIQUE_ID(__PASTE(__addressable_,sym)) = (void *)&sym;
         |                             ^~~~~~~
   include/linux/compiler.h:217:9: note: in expansion of macro '___ADDRESSABLE'
     217 |         ___ADDRESSABLE(sym, __section(".discard.addressable"))
         |         ^~~~~~~~~~~~~~
   include/linux/export.h:75:9: note: in expansion of macro '__ADDRESSABLE'
      75 |         __ADDRESSABLE(sym)                                      \
         |         ^~~~~~~~~~~~~
   include/linux/export.h:83:41: note: in expansion of macro '__EXPORT_SYMBOL'
      83 | #define _EXPORT_SYMBOL(sym, license)    __EXPORT_SYMBOL(sym, license, "")
         |                                         ^~~~~~~~~~~~~~~
   include/linux/export.h:87:41: note: in expansion of macro '_EXPORT_SYMBOL'
      87 | #define EXPORT_SYMBOL_GPL(sym)          _EXPORT_SYMBOL(sym, "GPL")
         |                                         ^~~~~~~~~~~~~~
   fs/exportfs/expfs.c:384:1: note: in expansion of macro 'EXPORT_SYMBOL_GPL'
     384 | EXPORT_SYMBOL_GPL(generic_encode_ino32_fh);
         | ^~~~~~~~~~~~~~~~~
>> include/linux/stddef.h:8:15: error: expected declaration specifiers or '...' before '(' token
       8 | #define NULL ((void *)0)
         |               ^
   include/linux/compiler_types.h:74:23: note: in definition of macro '___PASTE'
      74 | #define ___PASTE(a,b) a##b
         |                       ^
   include/linux/compiler-gcc.h:42:29: note: in expansion of macro '__PASTE'
      42 | #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__)
         |                             ^~~~~~~
   include/linux/compiler_types.h:75:22: note: in expansion of macro '___PASTE'
      75 | #define __PASTE(a,b) ___PASTE(a,b)
         |                      ^~~~~~~~
   include/linux/compiler-gcc.h:42:37: note: in expansion of macro '__PASTE'
      42 | #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__)
         |                                     ^~~~~~~
   include/linux/compiler.h:215:17: note: in expansion of macro '__UNIQUE_ID'
     215 |                 __UNIQUE_ID(__PASTE(__addressable_,sym)) = (void *)&sym;
         |                 ^~~~~~~~~~~
   include/linux/compiler_types.h:75:22: note: in expansion of macro '___PASTE'
      75 | #define __PASTE(a,b) ___PASTE(a,b)
         |                      ^~~~~~~~
   include/linux/compiler.h:215:29: note: in expansion of macro '__PASTE'
     215 |                 __UNIQUE_ID(__PASTE(__addressable_,sym)) = (void *)&sym;
         |                             ^~~~~~~
   include/linux/compiler.h:217:9: note: in expansion of macro '___ADDRESSABLE'
     217 |         ___ADDRESSABLE(sym, __section(".discard.addressable"))
         |         ^~~~~~~~~~~~~~
   include/linux/export.h:75:9: note: in expansion of macro '__ADDRESSABLE'
      75 |         __ADDRESSABLE(sym)                                      \
         |         ^~~~~~~~~~~~~
   include/linux/export.h:83:41: note: in expansion of macro '__EXPORT_SYMBOL'
      83 | #define _EXPORT_SYMBOL(sym, license)    __EXPORT_SYMBOL(sym, license, "")
         |                                         ^~~~~~~~~~~~~~~
   include/linux/export.h:87:41: note: in expansion of macro '_EXPORT_SYMBOL'
      87 | #define EXPORT_SYMBOL_GPL(sym)          _EXPORT_SYMBOL(sym, "GPL")
         |                                         ^~~~~~~~~~~~~~
   fs/exportfs/expfs.c:384:1: note: in expansion of macro 'EXPORT_SYMBOL_GPL'
     384 | EXPORT_SYMBOL_GPL(generic_encode_ino32_fh);
         | ^~~~~~~~~~~~~~~~~
   include/linux/exportfs.h:286:33: note: in expansion of macro 'NULL'
     286 | #define generic_encode_ino32_fh NULL
         |                                 ^~~~
   fs/exportfs/expfs.c:384:19: note: in expansion of macro 'generic_encode_ino32_fh'
     384 | EXPORT_SYMBOL_GPL(generic_encode_ino32_fh);
         |                   ^~~~~~~~~~~~~~~~~~~~~~~
>> include/linux/stddef.h:8:24: error: pasting ")" and "217" does not give a valid preprocessing token
       8 | #define NULL ((void *)0)
         |                        ^
   include/linux/compiler_types.h:74:23: note: in definition of macro '___PASTE'
      74 | #define ___PASTE(a,b) a##b
         |                       ^
   include/linux/compiler-gcc.h:42:29: note: in expansion of macro '__PASTE'
      42 | #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__)
         |                             ^~~~~~~
   include/linux/compiler_types.h:75:22: note: in expansion of macro '___PASTE'
      75 | #define __PASTE(a,b) ___PASTE(a,b)
         |                      ^~~~~~~~
   include/linux/compiler-gcc.h:42:37: note: in expansion of macro '__PASTE'
      42 | #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__)
         |                                     ^~~~~~~
   include/linux/compiler.h:215:17: note: in expansion of macro '__UNIQUE_ID'
     215 |                 __UNIQUE_ID(__PASTE(__addressable_,sym)) = (void *)&sym;
         |                 ^~~~~~~~~~~
   include/linux/compiler_types.h:75:22: note: in expansion of macro '___PASTE'
      75 | #define __PASTE(a,b) ___PASTE(a,b)
         |                      ^~~~~~~~
   include/linux/compiler.h:215:29: note: in expansion of macro '__PASTE'
     215 |                 __UNIQUE_ID(__PASTE(__addressable_,sym)) = (void *)&sym;
         |                             ^~~~~~~
   include/linux/compiler.h:217:9: note: in expansion of macro '___ADDRESSABLE'
     217 |         ___ADDRESSABLE(sym, __section(".discard.addressable"))
         |         ^~~~~~~~~~~~~~
   include/linux/export.h:75:9: note: in expansion of macro '__ADDRESSABLE'
      75 |         __ADDRESSABLE(sym)                                      \
         |         ^~~~~~~~~~~~~
   include/linux/export.h:83:41: note: in expansion of macro '__EXPORT_SYMBOL'
      83 | #define _EXPORT_SYMBOL(sym, license)    __EXPORT_SYMBOL(sym, license, "")
         |                                         ^~~~~~~~~~~~~~~
   include/linux/export.h:87:41: note: in expansion of macro '_EXPORT_SYMBOL'
      87 | #define EXPORT_SYMBOL_GPL(sym)          _EXPORT_SYMBOL(sym, "GPL")
         |                                         ^~~~~~~~~~~~~~
   fs/exportfs/expfs.c:384:1: note: in expansion of macro 'EXPORT_SYMBOL_GPL'
     384 | EXPORT_SYMBOL_GPL(generic_encode_ino32_fh);
         | ^~~~~~~~~~~~~~~~~
   include/linux/exportfs.h:286:33: note: in expansion of macro 'NULL'
     286 | #define generic_encode_ino32_fh NULL
         |                                 ^~~~
   fs/exportfs/expfs.c:384:19: note: in expansion of macro 'generic_encode_ino32_fh'
     384 | EXPORT_SYMBOL_GPL(generic_encode_ino32_fh);
         |                   ^~~~~~~~~~~~~~~~~~~~~~~
>> include/linux/export.h:47:9: error: pasting "__export_symbol_" and "(" does not give a valid preprocessing token
      47 |         __export_symbol_##sym:                  ASM_NL  \
         |         ^~~~~~~~~~~~~~~~
   include/linux/export.h:76:25: note: in expansion of macro '___EXPORT_SYMBOL'
      76 |         asm(__stringify(___EXPORT_SYMBOL(sym, license, ns)))
         |                         ^~~~~~~~~~~~~~~~
   include/linux/export.h:83:41: note: in expansion of macro '__EXPORT_SYMBOL'
      83 | #define _EXPORT_SYMBOL(sym, license)    __EXPORT_SYMBOL(sym, license, "")
         |                                         ^~~~~~~~~~~~~~~
   include/linux/export.h:87:41: note: in expansion of macro '_EXPORT_SYMBOL'
      87 | #define EXPORT_SYMBOL_GPL(sym)          _EXPORT_SYMBOL(sym, "GPL")
         |                                         ^~~~~~~~~~~~~~
   fs/exportfs/expfs.c:384:1: note: in expansion of macro 'EXPORT_SYMBOL_GPL'
     384 | EXPORT_SYMBOL_GPL(generic_encode_ino32_fh);
         | ^~~~~~~~~~~~~~~~~


vim +8 include/linux/stddef.h

^1da177e4c3f41 Linus Torvalds   2005-04-16  6  
^1da177e4c3f41 Linus Torvalds   2005-04-16  7  #undef NULL
^1da177e4c3f41 Linus Torvalds   2005-04-16 @8  #define NULL ((void *)0)
6e218287432472 Richard Knutsson 2006-09-30  9  

:::::: The code at line 8 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2

:::::: TO: Linus Torvalds <torvalds@ppc970.osdl.org>
:::::: CC: Linus Torvalds <torvalds@ppc970.osdl.org>

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

                 reply	other threads:[~2023-10-30 15:51 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=202310302338.MpPQAr10-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=amir73il@gmail.com \
    --cc=brauner@kernel.org \
    --cc=jack@suse.cz \
    --cc=jlayton@kernel.org \
    --cc=linux-mm@kvack.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.