From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9ADFFC4332F for ; Mon, 30 Oct 2023 15:51:50 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id D96916B018D; Mon, 30 Oct 2023 11:51:49 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id D6C906B01F7; Mon, 30 Oct 2023 11:51:49 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C5C876B01F9; Mon, 30 Oct 2023 11:51:49 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id B99816B018D for ; Mon, 30 Oct 2023 11:51:49 -0400 (EDT) Received: from smtpin26.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 8A8E6B5B68 for ; Mon, 30 Oct 2023 15:51:49 +0000 (UTC) X-FDA: 81402568338.26.81DC224 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.136]) by imf05.hostedemail.com (Postfix) with ESMTP id 4622B10001F for ; Mon, 30 Oct 2023 15:51:46 +0000 (UTC) Authentication-Results: imf05.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=mGHz6QjS; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf05.hostedemail.com: domain of lkp@intel.com designates 192.55.52.136 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1698681107; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=H4gREmbtL0hzgvzdOOQyTqg82z6wQATeq5aOXCyYFFQ=; b=zyJ7e6mVF0VgI0gu3QHgrTF93/gTMBalM8yx5WA1DGNfg1200xybdP2jj8d1ERIOeX1n26 iT8mnNvWVHk/Xpff/BogyHHwZnrFXKe6u9w/Am1I+YF8KQvpM3GX30vPVpEXkP4WGET+Ib SzRdvRcKphv+AFl3c0RVeb2Z2X0NEgE= ARC-Authentication-Results: i=1; imf05.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=mGHz6QjS; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf05.hostedemail.com: domain of lkp@intel.com designates 192.55.52.136 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1698681107; a=rsa-sha256; cv=none; b=fmLeYKG2AfwGElHcdZ/b/v2Inj9f215CtqOsAkHrENDMeunyTEggJI6Lr9BiFmagCfns+H /i/PwBGFfRX9ZpNtRoDvaYY57ci44lBVivj3jhDRM6LTM6mpZQ6nlcOshXXpb49adXT0pf IKRogacNPcV0zUrPBvFiob9oSLVAtME= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1698681106; x=1730217106; h=date:from:to:cc:subject:message-id:mime-version; bh=3uObsi7aG7L29zGTmcnW3VvUNtMSrLajlyajDf2on0Y=; b=mGHz6QjSlAegLiIUz18k7bS3nMvDTMjdXC2i1cck6H3BN2pQtsudqvWn Xn81FiRegO7L7IqfhFG/m6tOGAHD2x7JI4YV0/yH5y9GRt82826EUP9Jq 3j8HMaszng6TGdvgZ9KMrWtMlPjE9ugbrdCqSe7PMIdFCedaij3q3lcEJ dtdgKKg3QLxn6AFvByXYNhTmPhQickgQ7MMRdy605GFL1heJ3xjWAZD2n iUr4+udJAvgTHz8y4q3c1u6OXl4gGeQ5tgvC2YtxyP/CCshcy5fUFwBy5 kK1Acg3NMIRpV1qSYP0UcbT5Qd7TVdeFdnrMu3E/AZIMDIdDrcY9Wwvj6 w==; X-IronPort-AV: E=McAfee;i="6600,9927,10879"; a="367442828" X-IronPort-AV: E=Sophos;i="6.03,263,1694761200"; d="scan'208";a="367442828" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Oct 2023 08:51:44 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10879"; a="760317695" X-IronPort-AV: E=Sophos;i="6.03,263,1694761200"; d="scan'208";a="760317695" Received: from lkp-server01.sh.intel.com (HELO 8917679a5d3e) ([10.239.97.150]) by orsmga002.jf.intel.com with ESMTP; 30 Oct 2023 08:51:41 -0700 Received: from kbuild by 8917679a5d3e with local (Exim 4.96) (envelope-from ) id 1qxUYE-000DND-2m; Mon, 30 Oct 2023 15:51:38 +0000 Date: Mon, 30 Oct 2023 23:51:13 +0800 From: kernel test robot To: Amir Goldstein Cc: oe-kbuild-all@lists.linux.dev, Linux Memory Management List , Christian Brauner , Jan Kara , Jeff Layton Subject: [linux-next:master 14380/16121] include/linux/stddef.h:8:16: error: expected identifier or '(' before 'void' Message-ID: <202310302338.MpPQAr10-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspamd-Server: rspam09 X-Rspamd-Queue-Id: 4622B10001F X-Stat-Signature: tapdtennhjtapkqk1oa1x9c8r44jae4h X-Rspam-User: X-HE-Tag: 1698681106-84385 X-HE-Meta: U2FsdGVkX18uHAA1HhtBb8ZrVrgm8jpU/Ot0N0kaTma2mQLmSmHn5T02lQ0V3AIYD6GGYkuIutbic4UC39jZiG59z872qUeds6s/uHIWhJgLwtdRzwdf49FItIhUF5YoB5ub8F/hYqsVDgfjHwwnil7Rr+0huD8nE5EtShod5+/1eUd8bIBXYlgg9TxGfc/oT1QIi2keW1x+j213HThdDNM/GaX8bzZLQJuqqPB1Vm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zQPY6+QvHJEYAbodnwDCY5FBRKJBbNWTIxVaflbXcsHMk4= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: 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 | 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 : >> 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 :::::: CC: Linus Torvalds -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki