From: kernel test robot <lkp@intel.com>
To: cros-kernel-buildreports@googlegroups.com
Cc: oe-kbuild-all@lists.linux.dev
Subject: [android-common:android16-6.12 3/3] include/linux/gfp.h:17:52: error: implicit declaration of function '__VA_OPT__'; did you mean '__VFP_FP__'?
Date: Sun, 30 Aug 2026 22:03:55 +0800 [thread overview]
Message-ID: <202608302253.SFpWbhN1-lkp@intel.com> (raw)
tree: https://android.googlesource.com/kernel/common android16-6.12
head: 36bee94a7cf9bbd4a0782169da5e69c5b3bd5212
commit: 89ffa47ebb4b594af723bd02370a212dbac525bf [3/3] UPSTREAM: fscrypt: Replace mk_users keyring with simple list
config: arm-randconfig-003-20260829 (https://download.01.org/0day-ci/archive/20260830/202608302253.SFpWbhN1-lkp@intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 7.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260830/202608302253.SFpWbhN1-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/202608302253.SFpWbhN1-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from include/linux/percpu.h:5:0,
from include/linux/percpu_counter.h:14,
from include/linux/mm_types.h:21,
from include/linux/mmzone.h:23,
from include/linux/gfp.h:7,
from include/linux/slab.h:17,
from include/linux/crypto.h:17,
from include/crypto/skcipher.h:13,
from fs/crypto/keyring.c:22:
fs/crypto/keyring.c: In function 'add_master_key_user':
>> include/linux/gfp.h:17:52: error: implicit declaration of function '__VA_OPT__'; did you mean '__VFP_FP__'? [-Werror=implicit-function-declaration]
#define default_gfp(...) __default_gfp(__VA_ARGS__ __VA_OPT__(,) GFP_KERNEL)
^
include/linux/alloc_tag.h:227:9: note: in definition of macro 'alloc_hooks_tag'
typeof(_do_alloc) _res; \
^~~~~~~~~
include/linux/slab.h:1119:25: note: in expansion of macro 'alloc_hooks'
#define kzalloc(...) alloc_hooks(kzalloc_noprof(__VA_ARGS__))
^~~~~~~~~~~
include/linux/slab.h:903:10: note: in expansion of macro 'kzalloc'
(TYPE *)KMALLOC(__obj_size, GFP); \
^~~~~~~
include/linux/slab.h:967:2: note: in expansion of macro '__alloc_objs'
__alloc_objs(kzalloc, default_gfp(__VA_ARGS__), typeof(P), 1)
^~~~~~~~~~~~
include/linux/gfp.h:17:26: note: in expansion of macro '__default_gfp'
#define default_gfp(...) __default_gfp(__VA_ARGS__ __VA_OPT__(,) GFP_KERNEL)
^~~~~~~~~~~~~
include/linux/slab.h:967:24: note: in expansion of macro 'default_gfp'
__alloc_objs(kzalloc, default_gfp(__VA_ARGS__), typeof(P), 1)
^~~~~~~~~~~
fs/crypto/keyring.c:359:12: note: in expansion of macro 'kzalloc_obj'
mk_user = kzalloc_obj(*mk_user);
^~~~~~~~~~~
>> include/linux/gfp.h:17:63: error: expected expression before ',' token
#define default_gfp(...) __default_gfp(__VA_ARGS__ __VA_OPT__(,) GFP_KERNEL)
^
include/linux/alloc_tag.h:227:9: note: in definition of macro 'alloc_hooks_tag'
typeof(_do_alloc) _res; \
^~~~~~~~~
include/linux/slab.h:1119:25: note: in expansion of macro 'alloc_hooks'
#define kzalloc(...) alloc_hooks(kzalloc_noprof(__VA_ARGS__))
^~~~~~~~~~~
include/linux/slab.h:903:10: note: in expansion of macro 'kzalloc'
(TYPE *)KMALLOC(__obj_size, GFP); \
^~~~~~~
include/linux/slab.h:967:2: note: in expansion of macro '__alloc_objs'
__alloc_objs(kzalloc, default_gfp(__VA_ARGS__), typeof(P), 1)
^~~~~~~~~~~~
include/linux/gfp.h:17:26: note: in expansion of macro '__default_gfp'
#define default_gfp(...) __default_gfp(__VA_ARGS__ __VA_OPT__(,) GFP_KERNEL)
^~~~~~~~~~~~~
include/linux/slab.h:967:24: note: in expansion of macro 'default_gfp'
__alloc_objs(kzalloc, default_gfp(__VA_ARGS__), typeof(P), 1)
^~~~~~~~~~~
fs/crypto/keyring.c:359:12: note: in expansion of macro 'kzalloc_obj'
mk_user = kzalloc_obj(*mk_user);
^~~~~~~~~~~
>> include/linux/gfp.h:17:63: error: expected expression before ',' token
#define default_gfp(...) __default_gfp(__VA_ARGS__ __VA_OPT__(,) GFP_KERNEL)
^
include/linux/alloc_tag.h:231:10: note: in definition of macro 'alloc_hooks_tag'
_res = _do_alloc; \
^~~~~~~~~
include/linux/slab.h:1119:25: note: in expansion of macro 'alloc_hooks'
#define kzalloc(...) alloc_hooks(kzalloc_noprof(__VA_ARGS__))
^~~~~~~~~~~
include/linux/slab.h:903:10: note: in expansion of macro 'kzalloc'
(TYPE *)KMALLOC(__obj_size, GFP); \
^~~~~~~
include/linux/slab.h:967:2: note: in expansion of macro '__alloc_objs'
__alloc_objs(kzalloc, default_gfp(__VA_ARGS__), typeof(P), 1)
^~~~~~~~~~~~
include/linux/gfp.h:17:26: note: in expansion of macro '__default_gfp'
#define default_gfp(...) __default_gfp(__VA_ARGS__ __VA_OPT__(,) GFP_KERNEL)
^~~~~~~~~~~~~
include/linux/slab.h:967:24: note: in expansion of macro 'default_gfp'
__alloc_objs(kzalloc, default_gfp(__VA_ARGS__), typeof(P), 1)
^~~~~~~~~~~
fs/crypto/keyring.c:359:12: note: in expansion of macro 'kzalloc_obj'
mk_user = kzalloc_obj(*mk_user);
^~~~~~~~~~~
>> include/linux/gfp.h:17:63: error: expected expression before ',' token
#define default_gfp(...) __default_gfp(__VA_ARGS__ __VA_OPT__(,) GFP_KERNEL)
^
include/linux/alloc_tag.h:234:10: note: in definition of macro 'alloc_hooks_tag'
_res = _do_alloc; \
^~~~~~~~~
include/linux/slab.h:1119:25: note: in expansion of macro 'alloc_hooks'
#define kzalloc(...) alloc_hooks(kzalloc_noprof(__VA_ARGS__))
^~~~~~~~~~~
include/linux/slab.h:903:10: note: in expansion of macro 'kzalloc'
(TYPE *)KMALLOC(__obj_size, GFP); \
^~~~~~~
include/linux/slab.h:967:2: note: in expansion of macro '__alloc_objs'
__alloc_objs(kzalloc, default_gfp(__VA_ARGS__), typeof(P), 1)
^~~~~~~~~~~~
include/linux/gfp.h:17:26: note: in expansion of macro '__default_gfp'
#define default_gfp(...) __default_gfp(__VA_ARGS__ __VA_OPT__(,) GFP_KERNEL)
^~~~~~~~~~~~~
include/linux/slab.h:967:24: note: in expansion of macro 'default_gfp'
__alloc_objs(kzalloc, default_gfp(__VA_ARGS__), typeof(P), 1)
^~~~~~~~~~~
fs/crypto/keyring.c:359:12: note: in expansion of macro 'kzalloc_obj'
mk_user = kzalloc_obj(*mk_user);
^~~~~~~~~~~
cc1: some warnings being treated as errors
vim +17 include/linux/gfp.h
^1da177e4c3f41 Linus Torvalds 2005-04-16 14
98e5d4dd4c5c8c Linus Torvalds 2026-07-16 15 /* Helper macro to avoid gfp flags if they are the default one */
98e5d4dd4c5c8c Linus Torvalds 2026-07-16 16 #define __default_gfp(a,...) a
98e5d4dd4c5c8c Linus Torvalds 2026-07-16 @17 #define default_gfp(...) __default_gfp(__VA_ARGS__ __VA_OPT__(,) GFP_KERNEL)
98e5d4dd4c5c8c Linus Torvalds 2026-07-16 18
:::::: The code at line 17 was first introduced by commit
:::::: 98e5d4dd4c5c8cf8cda5d121d4a0df9729b3d579 UPSTREAM: add default_gfp() helper macro and use it in the new *alloc_obj() helpers
:::::: TO: Linus Torvalds <torvalds@linux-foundation.org>
:::::: CC: Carlos Llamas <cmllamas@google.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2026-08-30 14:04 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=202608302253.SFpWbhN1-lkp@intel.com \
--to=lkp@intel.com \
--cc=cros-kernel-buildreports@googlegroups.com \
--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.