From: kernel test robot <lkp@intel.com>
To: Amir Goldstein <amir73il@gmail.com>
Cc: llvm@lists.linux.dev, 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 14416/15220] fs/exportfs/expfs.c:357:5: error: expected identifier or '('
Date: Thu, 26 Oct 2023 21:49:25 +0800 [thread overview]
Message-ID: <202310262151.renqMvme-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 2ef7141596eed0b4b45ef18b3626f428a6b0a822
commit: dfaf653dc41557548b2e75e6cd837071f7c63289 [14416/15220] exportfs: make ->encode_fh() a mandatory method for NFS export
config: hexagon-randconfig-r015-20211224 (https://download.01.org/0day-ci/archive/20231026/202310262151.renqMvme-lkp@intel.com/config)
compiler: clang version 16.0.4 (https://github.com/llvm/llvm-project.git ae42196bc493ffe877a7e3dff8be32035dea4d07)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231026/202310262151.renqMvme-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/202310262151.renqMvme-lkp@intel.com/
All errors (new ones prefixed by >>):
>> fs/exportfs/expfs.c:357:5: error: expected identifier or '('
int generic_encode_ino32_fh(struct inode *inode, __u32 *fh, int *max_len,
^
include/linux/exportfs.h:286:33: note: expanded from macro 'generic_encode_ino32_fh'
#define generic_encode_ino32_fh NULL
^
include/linux/stddef.h:8:16: note: expanded from macro 'NULL'
#define NULL ((void *)0)
^
>> fs/exportfs/expfs.c:357:5: error: expected ')'
include/linux/exportfs.h:286:33: note: expanded from macro 'generic_encode_ino32_fh'
#define generic_encode_ino32_fh NULL
^
include/linux/stddef.h:8:16: note: expanded from macro 'NULL'
#define NULL ((void *)0)
^
fs/exportfs/expfs.c:357:5: note: to match this '('
include/linux/exportfs.h:286:33: note: expanded from macro 'generic_encode_ino32_fh'
#define generic_encode_ino32_fh NULL
^
include/linux/stddef.h:8:15: note: expanded from macro 'NULL'
#define NULL ((void *)0)
^
>> fs/exportfs/expfs.c:357:5: error: expected ')'
int generic_encode_ino32_fh(struct inode *inode, __u32 *fh, int *max_len,
^
include/linux/exportfs.h:286:33: note: expanded from macro 'generic_encode_ino32_fh'
#define generic_encode_ino32_fh NULL
^
include/linux/stddef.h:8:23: note: expanded from macro 'NULL'
#define NULL ((void *)0)
^
fs/exportfs/expfs.c:357:5: note: to match this '('
include/linux/exportfs.h:286:33: note: expanded from macro 'generic_encode_ino32_fh'
#define generic_encode_ino32_fh NULL
^
include/linux/stddef.h:8:14: note: expanded from macro 'NULL'
#define NULL ((void *)0)
^
fs/exportfs/expfs.c:384:19: error: expected identifier or '('
EXPORT_SYMBOL_GPL(generic_encode_ino32_fh);
^
include/linux/exportfs.h:286:33: note: expanded from macro 'generic_encode_ino32_fh'
#define generic_encode_ino32_fh NULL
^
include/linux/stddef.h:8:16: note: expanded from macro 'NULL'
#define NULL ((void *)0)
^
fs/exportfs/expfs.c:384:19: error: expected ')'
include/linux/exportfs.h:286:33: note: expanded from macro 'generic_encode_ino32_fh'
#define generic_encode_ino32_fh NULL
^
include/linux/stddef.h:8:16: note: expanded from macro 'NULL'
#define NULL ((void *)0)
^
fs/exportfs/expfs.c:384:19: note: to match this '('
include/linux/exportfs.h:286:33: note: expanded from macro 'generic_encode_ino32_fh'
#define generic_encode_ino32_fh NULL
^
include/linux/stddef.h:8:15: note: expanded from macro 'NULL'
#define NULL ((void *)0)
^
fs/exportfs/expfs.c:384:19: error: expected ')'
EXPORT_SYMBOL_GPL(generic_encode_ino32_fh);
^
include/linux/exportfs.h:286:33: note: expanded from macro 'generic_encode_ino32_fh'
#define generic_encode_ino32_fh NULL
^
include/linux/stddef.h:8:23: note: expanded from macro 'NULL'
#define NULL ((void *)0)
^
fs/exportfs/expfs.c:384:19: note: to match this '('
include/linux/exportfs.h:286:33: note: expanded from macro 'generic_encode_ino32_fh'
#define generic_encode_ino32_fh NULL
^
include/linux/stddef.h:8:14: note: expanded from macro 'NULL'
#define NULL ((void *)0)
^
>> fs/exportfs/expfs.c:384:1: error: pasting formed '__addressable_(', an invalid preprocessing token
EXPORT_SYMBOL_GPL(generic_encode_ino32_fh);
^
include/linux/export.h:87:33: note: expanded from macro 'EXPORT_SYMBOL_GPL'
#define EXPORT_SYMBOL_GPL(sym) _EXPORT_SYMBOL(sym, "GPL")
^
include/linux/export.h:83:38: note: expanded from macro '_EXPORT_SYMBOL'
#define _EXPORT_SYMBOL(sym, license) __EXPORT_SYMBOL(sym, license, "")
^
include/linux/export.h:75:2: note: expanded from macro '__EXPORT_SYMBOL'
__ADDRESSABLE(sym) \
^
note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
include/linux/compiler.h:215:15: note: expanded from macro '___ADDRESSABLE'
__UNIQUE_ID(__PASTE(__addressable_,sym)) = (void *)&sym;
^
include/linux/compiler_types.h:75:22: note: expanded from macro '__PASTE'
#define __PASTE(a,b) ___PASTE(a,b)
^
include/linux/compiler_types.h:74:24: note: expanded from macro '___PASTE'
#define ___PASTE(a,b) a##b
^
>> fs/exportfs/expfs.c:384:19: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
EXPORT_SYMBOL_GPL(generic_encode_ino32_fh);
^
include/linux/exportfs.h:286:33: note: expanded from macro 'generic_encode_ino32_fh'
#define generic_encode_ino32_fh NULL
^
include/linux/stddef.h:8:16: note: expanded from macro 'NULL'
#define NULL ((void *)0)
^
fs/exportfs/expfs.c:384:19: error: expected ')'
include/linux/exportfs.h:286:33: note: expanded from macro 'generic_encode_ino32_fh'
#define generic_encode_ino32_fh NULL
^
include/linux/stddef.h:8:23: note: expanded from macro 'NULL'
#define NULL ((void *)0)
^
fs/exportfs/expfs.c:384:19: note: to match this '('
include/linux/exportfs.h:286:33: note: expanded from macro 'generic_encode_ino32_fh'
#define generic_encode_ino32_fh NULL
^
include/linux/stddef.h:8:14: note: expanded from macro 'NULL'
#define NULL ((void *)0)
^
>> fs/exportfs/expfs.c:384:1: error: pasting formed ')216', an invalid preprocessing token
EXPORT_SYMBOL_GPL(generic_encode_ino32_fh);
^
include/linux/export.h:87:33: note: expanded from macro 'EXPORT_SYMBOL_GPL'
#define EXPORT_SYMBOL_GPL(sym) _EXPORT_SYMBOL(sym, "GPL")
^
include/linux/export.h:83:38: note: expanded from macro '_EXPORT_SYMBOL'
#define _EXPORT_SYMBOL(sym, license) __EXPORT_SYMBOL(sym, license, "")
^
include/linux/export.h:75:2: note: expanded from macro '__EXPORT_SYMBOL'
__ADDRESSABLE(sym) \
^
note: (skipping 2 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
include/linux/compiler-clang.h:20:29: note: expanded from macro '__UNIQUE_ID'
#define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__)
^
include/linux/compiler_types.h:75:22: note: expanded from macro '__PASTE'
#define __PASTE(a,b) ___PASTE(a,b)
^
include/linux/compiler_types.h:74:24: note: expanded from macro '___PASTE'
#define ___PASTE(a,b) a##b
^
>> fs/exportfs/expfs.c:384:1: error: expected function body after function declarator
include/linux/export.h:87:33: note: expanded from macro 'EXPORT_SYMBOL_GPL'
#define EXPORT_SYMBOL_GPL(sym) _EXPORT_SYMBOL(sym, "GPL")
^
include/linux/export.h:83:38: note: expanded from macro '_EXPORT_SYMBOL'
#define _EXPORT_SYMBOL(sym, license) __EXPORT_SYMBOL(sym, license, "")
^
include/linux/export.h:75:2: note: expanded from macro '__EXPORT_SYMBOL'
__ADDRESSABLE(sym) \
^
note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
include/linux/compiler.h:215:3: note: expanded from macro '___ADDRESSABLE'
__UNIQUE_ID(__PASTE(__addressable_,sym)) = (void *)&sym;
^
include/linux/compiler-clang.h:20:68: note: expanded from macro '__UNIQUE_ID'
#define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__)
^
<scratch space>:114:1: note: expanded from here
216
^
>> fs/exportfs/expfs.c:384:1: error: pasting formed '__export_symbol_(', an invalid preprocessing token
include/linux/export.h:87:33: note: expanded from macro 'EXPORT_SYMBOL_GPL'
#define EXPORT_SYMBOL_GPL(sym) _EXPORT_SYMBOL(sym, "GPL")
^
include/linux/export.h:83:38: note: expanded from macro '_EXPORT_SYMBOL'
#define _EXPORT_SYMBOL(sym, license) __EXPORT_SYMBOL(sym, license, "")
^
include/linux/export.h:76:18: note: expanded from macro '__EXPORT_SYMBOL'
asm(__stringify(___EXPORT_SYMBOL(sym, license, ns)))
^
include/linux/export.h:47:18: note: expanded from macro '___EXPORT_SYMBOL'
__export_symbol_##sym: ASM_NL \
^
12 errors generated.
vim +357 fs/exportfs/expfs.c
344
345 /**
346 * generic_encode_ino32_fh - generic export_operations->encode_fh function
347 * @inode: the object to encode
348 * @fh: where to store the file handle fragment
349 * @max_len: maximum length to store there (in 4 byte units)
350 * @parent: parent directory inode, if wanted
351 *
352 * This generic encode_fh function assumes that the 32 inode number
353 * is suitable for locating an inode, and that the generation number
354 * can be used to check that it is still valid. It places them in the
355 * filehandle fragment where export_decode_fh expects to find them.
356 */
> 357 int generic_encode_ino32_fh(struct inode *inode, __u32 *fh, int *max_len,
358 struct inode *parent)
359 {
360 struct fid *fid = (void *)fh;
361 int len = *max_len;
362 int type = FILEID_INO32_GEN;
363
364 if (parent && (len < 4)) {
365 *max_len = 4;
366 return FILEID_INVALID;
367 } else if (len < 2) {
368 *max_len = 2;
369 return FILEID_INVALID;
370 }
371
372 len = 2;
373 fid->i32.ino = inode->i_ino;
374 fid->i32.gen = inode->i_generation;
375 if (parent) {
376 fid->i32.parent_ino = parent->i_ino;
377 fid->i32.parent_gen = parent->i_generation;
378 len = 4;
379 type = FILEID_INO32_GEN_PARENT;
380 }
381 *max_len = len;
382 return type;
383 }
> 384 EXPORT_SYMBOL_GPL(generic_encode_ino32_fh);
385
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next reply other threads:[~2023-10-26 13:50 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-26 13:49 kernel test robot [this message]
2023-10-26 14:37 ` [linux-next:master 14416/15220] fs/exportfs/expfs.c:357:5: error: expected identifier or '(' Arnd Bergmann
2023-10-26 15:15 ` Amir Goldstein
2023-10-26 20:25 ` Amir Goldstein
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=202310262151.renqMvme-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=llvm@lists.linux.dev \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).