From: kernel test robot <lkp@intel.com>
To: aubrey.li@linux.intel.com
Cc: oe-kbuild-all@lists.linux.dev
Subject: [anolis-intel-cloud:devel-5.10 5/5] mm/slub.c:4106:7: warning: no previous prototype for 'oot___kmalloc_node_0'
Date: Fri, 16 May 2025 14:34:46 +0800 [thread overview]
Message-ID: <202505161410.uOpS9thM-lkp@intel.com> (raw)
Hi Yi,
FYI, the error/warning still remains.
tree: https://gitee.com/anolis/intel-cloud-kernel.git devel-5.10
head: bfc84bc1ba93833ad3fd1e370a33e511711611a6
commit: baa47e1aa754428b439764393f2d71fb6bce04bf [5/5] anolis: mm: introduce per module slab for oot memory isolation
config: x86_64-defconfig (https://download.01.org/0day-ci/archive/20250516/202505161410.uOpS9thM-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.3.0-12) 11.3.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250516/202505161410.uOpS9thM-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/202505161410.uOpS9thM-lkp@intel.com/
All warnings (new ones prefixed by >>):
mm/slub.c:4017:7: warning: no previous prototype for 'oot___kmalloc_0' [-Wmissing-prototypes]
4017 | void *oot___kmalloc_ ## index(size_t size, gfp_t flags) \
| ^~~~~~~~~~~~~~
mm/slub.c:4040:1: note: in expansion of macro 'DEFINE_OOT_FUNC___kmalloc'
4040 | DEFINE_OOT_FUNC___kmalloc(0);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
mm/slub.c:4017:7: warning: no previous prototype for 'oot___kmalloc_1' [-Wmissing-prototypes]
4017 | void *oot___kmalloc_ ## index(size_t size, gfp_t flags) \
| ^~~~~~~~~~~~~~
mm/slub.c:4041:1: note: in expansion of macro 'DEFINE_OOT_FUNC___kmalloc'
4041 | DEFINE_OOT_FUNC___kmalloc(1);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
mm/slub.c:4017:7: warning: no previous prototype for 'oot___kmalloc_2' [-Wmissing-prototypes]
4017 | void *oot___kmalloc_ ## index(size_t size, gfp_t flags) \
| ^~~~~~~~~~~~~~
mm/slub.c:4042:1: note: in expansion of macro 'DEFINE_OOT_FUNC___kmalloc'
4042 | DEFINE_OOT_FUNC___kmalloc(2);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
mm/slub.c:4017:7: warning: no previous prototype for 'oot___kmalloc_3' [-Wmissing-prototypes]
4017 | void *oot___kmalloc_ ## index(size_t size, gfp_t flags) \
| ^~~~~~~~~~~~~~
mm/slub.c:4043:1: note: in expansion of macro 'DEFINE_OOT_FUNC___kmalloc'
4043 | DEFINE_OOT_FUNC___kmalloc(3);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
mm/slub.c:4017:7: warning: no previous prototype for 'oot___kmalloc_4' [-Wmissing-prototypes]
4017 | void *oot___kmalloc_ ## index(size_t size, gfp_t flags) \
| ^~~~~~~~~~~~~~
mm/slub.c:4044:1: note: in expansion of macro 'DEFINE_OOT_FUNC___kmalloc'
4044 | DEFINE_OOT_FUNC___kmalloc(4);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
mm/slub.c:4017:7: warning: no previous prototype for 'oot___kmalloc_5' [-Wmissing-prototypes]
4017 | void *oot___kmalloc_ ## index(size_t size, gfp_t flags) \
| ^~~~~~~~~~~~~~
mm/slub.c:4045:1: note: in expansion of macro 'DEFINE_OOT_FUNC___kmalloc'
4045 | DEFINE_OOT_FUNC___kmalloc(5);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
mm/slub.c:4017:7: warning: no previous prototype for 'oot___kmalloc_6' [-Wmissing-prototypes]
4017 | void *oot___kmalloc_ ## index(size_t size, gfp_t flags) \
| ^~~~~~~~~~~~~~
mm/slub.c:4046:1: note: in expansion of macro 'DEFINE_OOT_FUNC___kmalloc'
4046 | DEFINE_OOT_FUNC___kmalloc(6);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
mm/slub.c:4017:7: warning: no previous prototype for 'oot___kmalloc_7' [-Wmissing-prototypes]
4017 | void *oot___kmalloc_ ## index(size_t size, gfp_t flags) \
| ^~~~~~~~~~~~~~
mm/slub.c:4047:1: note: in expansion of macro 'DEFINE_OOT_FUNC___kmalloc'
4047 | DEFINE_OOT_FUNC___kmalloc(7);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
mm/slub.c:4017:7: warning: no previous prototype for 'oot___kmalloc_8' [-Wmissing-prototypes]
4017 | void *oot___kmalloc_ ## index(size_t size, gfp_t flags) \
| ^~~~~~~~~~~~~~
mm/slub.c:4048:1: note: in expansion of macro 'DEFINE_OOT_FUNC___kmalloc'
4048 | DEFINE_OOT_FUNC___kmalloc(8);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
mm/slub.c:4017:7: warning: no previous prototype for 'oot___kmalloc_9' [-Wmissing-prototypes]
4017 | void *oot___kmalloc_ ## index(size_t size, gfp_t flags) \
| ^~~~~~~~~~~~~~
mm/slub.c:4049:1: note: in expansion of macro 'DEFINE_OOT_FUNC___kmalloc'
4049 | DEFINE_OOT_FUNC___kmalloc(9);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
mm/slub.c:4017:7: warning: no previous prototype for 'oot___kmalloc_10' [-Wmissing-prototypes]
4017 | void *oot___kmalloc_ ## index(size_t size, gfp_t flags) \
| ^~~~~~~~~~~~~~
mm/slub.c:4050:1: note: in expansion of macro 'DEFINE_OOT_FUNC___kmalloc'
4050 | DEFINE_OOT_FUNC___kmalloc(10);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
mm/slub.c:4017:7: warning: no previous prototype for 'oot___kmalloc_11' [-Wmissing-prototypes]
4017 | void *oot___kmalloc_ ## index(size_t size, gfp_t flags) \
| ^~~~~~~~~~~~~~
mm/slub.c:4051:1: note: in expansion of macro 'DEFINE_OOT_FUNC___kmalloc'
4051 | DEFINE_OOT_FUNC___kmalloc(11);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
mm/slub.c:4017:7: warning: no previous prototype for 'oot___kmalloc_12' [-Wmissing-prototypes]
4017 | void *oot___kmalloc_ ## index(size_t size, gfp_t flags) \
| ^~~~~~~~~~~~~~
mm/slub.c:4052:1: note: in expansion of macro 'DEFINE_OOT_FUNC___kmalloc'
4052 | DEFINE_OOT_FUNC___kmalloc(12);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
mm/slub.c:4017:7: warning: no previous prototype for 'oot___kmalloc_13' [-Wmissing-prototypes]
4017 | void *oot___kmalloc_ ## index(size_t size, gfp_t flags) \
| ^~~~~~~~~~~~~~
mm/slub.c:4053:1: note: in expansion of macro 'DEFINE_OOT_FUNC___kmalloc'
4053 | DEFINE_OOT_FUNC___kmalloc(13);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
mm/slub.c:4017:7: warning: no previous prototype for 'oot___kmalloc_14' [-Wmissing-prototypes]
4017 | void *oot___kmalloc_ ## index(size_t size, gfp_t flags) \
| ^~~~~~~~~~~~~~
mm/slub.c:4054:1: note: in expansion of macro 'DEFINE_OOT_FUNC___kmalloc'
4054 | DEFINE_OOT_FUNC___kmalloc(14);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
mm/slub.c:4017:7: warning: no previous prototype for 'oot___kmalloc_15' [-Wmissing-prototypes]
4017 | void *oot___kmalloc_ ## index(size_t size, gfp_t flags) \
| ^~~~~~~~~~~~~~
mm/slub.c:4055:1: note: in expansion of macro 'DEFINE_OOT_FUNC___kmalloc'
4055 | DEFINE_OOT_FUNC___kmalloc(15);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
>> mm/slub.c:4106:7: warning: no previous prototype for 'oot___kmalloc_node_0' [-Wmissing-prototypes]
4106 | void *oot___kmalloc_node_ ## index(size_t size, gfp_t flags, int node) \
| ^~~~~~~~~~~~~~~~~~~
mm/slub.c:4136:1: note: in expansion of macro 'DEFINE_OOT_FUNC___kmalloc_node'
4136 | DEFINE_OOT_FUNC___kmalloc_node(0);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> mm/slub.c:4106:7: warning: no previous prototype for 'oot___kmalloc_node_1' [-Wmissing-prototypes]
4106 | void *oot___kmalloc_node_ ## index(size_t size, gfp_t flags, int node) \
| ^~~~~~~~~~~~~~~~~~~
mm/slub.c:4137:1: note: in expansion of macro 'DEFINE_OOT_FUNC___kmalloc_node'
4137 | DEFINE_OOT_FUNC___kmalloc_node(1);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> mm/slub.c:4106:7: warning: no previous prototype for 'oot___kmalloc_node_2' [-Wmissing-prototypes]
4106 | void *oot___kmalloc_node_ ## index(size_t size, gfp_t flags, int node) \
| ^~~~~~~~~~~~~~~~~~~
mm/slub.c:4138:1: note: in expansion of macro 'DEFINE_OOT_FUNC___kmalloc_node'
4138 | DEFINE_OOT_FUNC___kmalloc_node(2);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> mm/slub.c:4106:7: warning: no previous prototype for 'oot___kmalloc_node_3' [-Wmissing-prototypes]
4106 | void *oot___kmalloc_node_ ## index(size_t size, gfp_t flags, int node) \
| ^~~~~~~~~~~~~~~~~~~
mm/slub.c:4139:1: note: in expansion of macro 'DEFINE_OOT_FUNC___kmalloc_node'
4139 | DEFINE_OOT_FUNC___kmalloc_node(3);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> mm/slub.c:4106:7: warning: no previous prototype for 'oot___kmalloc_node_4' [-Wmissing-prototypes]
4106 | void *oot___kmalloc_node_ ## index(size_t size, gfp_t flags, int node) \
| ^~~~~~~~~~~~~~~~~~~
mm/slub.c:4140:1: note: in expansion of macro 'DEFINE_OOT_FUNC___kmalloc_node'
4140 | DEFINE_OOT_FUNC___kmalloc_node(4);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> mm/slub.c:4106:7: warning: no previous prototype for 'oot___kmalloc_node_5' [-Wmissing-prototypes]
4106 | void *oot___kmalloc_node_ ## index(size_t size, gfp_t flags, int node) \
| ^~~~~~~~~~~~~~~~~~~
mm/slub.c:4141:1: note: in expansion of macro 'DEFINE_OOT_FUNC___kmalloc_node'
4141 | DEFINE_OOT_FUNC___kmalloc_node(5);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> mm/slub.c:4106:7: warning: no previous prototype for 'oot___kmalloc_node_6' [-Wmissing-prototypes]
4106 | void *oot___kmalloc_node_ ## index(size_t size, gfp_t flags, int node) \
| ^~~~~~~~~~~~~~~~~~~
mm/slub.c:4142:1: note: in expansion of macro 'DEFINE_OOT_FUNC___kmalloc_node'
4142 | DEFINE_OOT_FUNC___kmalloc_node(6);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> mm/slub.c:4106:7: warning: no previous prototype for 'oot___kmalloc_node_7' [-Wmissing-prototypes]
4106 | void *oot___kmalloc_node_ ## index(size_t size, gfp_t flags, int node) \
| ^~~~~~~~~~~~~~~~~~~
mm/slub.c:4143:1: note: in expansion of macro 'DEFINE_OOT_FUNC___kmalloc_node'
4143 | DEFINE_OOT_FUNC___kmalloc_node(7);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> mm/slub.c:4106:7: warning: no previous prototype for 'oot___kmalloc_node_8' [-Wmissing-prototypes]
4106 | void *oot___kmalloc_node_ ## index(size_t size, gfp_t flags, int node) \
| ^~~~~~~~~~~~~~~~~~~
mm/slub.c:4144:1: note: in expansion of macro 'DEFINE_OOT_FUNC___kmalloc_node'
4144 | DEFINE_OOT_FUNC___kmalloc_node(8);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> mm/slub.c:4106:7: warning: no previous prototype for 'oot___kmalloc_node_9' [-Wmissing-prototypes]
4106 | void *oot___kmalloc_node_ ## index(size_t size, gfp_t flags, int node) \
| ^~~~~~~~~~~~~~~~~~~
mm/slub.c:4145:1: note: in expansion of macro 'DEFINE_OOT_FUNC___kmalloc_node'
4145 | DEFINE_OOT_FUNC___kmalloc_node(9);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> mm/slub.c:4106:7: warning: no previous prototype for 'oot___kmalloc_node_10' [-Wmissing-prototypes]
4106 | void *oot___kmalloc_node_ ## index(size_t size, gfp_t flags, int node) \
| ^~~~~~~~~~~~~~~~~~~
mm/slub.c:4146:1: note: in expansion of macro 'DEFINE_OOT_FUNC___kmalloc_node'
4146 | DEFINE_OOT_FUNC___kmalloc_node(10);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> mm/slub.c:4106:7: warning: no previous prototype for 'oot___kmalloc_node_11' [-Wmissing-prototypes]
4106 | void *oot___kmalloc_node_ ## index(size_t size, gfp_t flags, int node) \
| ^~~~~~~~~~~~~~~~~~~
mm/slub.c:4147:1: note: in expansion of macro 'DEFINE_OOT_FUNC___kmalloc_node'
4147 | DEFINE_OOT_FUNC___kmalloc_node(11);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> mm/slub.c:4106:7: warning: no previous prototype for 'oot___kmalloc_node_12' [-Wmissing-prototypes]
4106 | void *oot___kmalloc_node_ ## index(size_t size, gfp_t flags, int node) \
| ^~~~~~~~~~~~~~~~~~~
mm/slub.c:4148:1: note: in expansion of macro 'DEFINE_OOT_FUNC___kmalloc_node'
4148 | DEFINE_OOT_FUNC___kmalloc_node(12);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> mm/slub.c:4106:7: warning: no previous prototype for 'oot___kmalloc_node_13' [-Wmissing-prototypes]
4106 | void *oot___kmalloc_node_ ## index(size_t size, gfp_t flags, int node) \
| ^~~~~~~~~~~~~~~~~~~
mm/slub.c:4149:1: note: in expansion of macro 'DEFINE_OOT_FUNC___kmalloc_node'
4149 | DEFINE_OOT_FUNC___kmalloc_node(13);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> mm/slub.c:4106:7: warning: no previous prototype for 'oot___kmalloc_node_14' [-Wmissing-prototypes]
4106 | void *oot___kmalloc_node_ ## index(size_t size, gfp_t flags, int node) \
| ^~~~~~~~~~~~~~~~~~~
mm/slub.c:4150:1: note: in expansion of macro 'DEFINE_OOT_FUNC___kmalloc_node'
4150 | DEFINE_OOT_FUNC___kmalloc_node(14);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> mm/slub.c:4106:7: warning: no previous prototype for 'oot___kmalloc_node_15' [-Wmissing-prototypes]
4106 | void *oot___kmalloc_node_ ## index(size_t size, gfp_t flags, int node) \
| ^~~~~~~~~~~~~~~~~~~
mm/slub.c:4151:1: note: in expansion of macro 'DEFINE_OOT_FUNC___kmalloc_node'
4151 | DEFINE_OOT_FUNC___kmalloc_node(15);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +/oot___kmalloc_node_0 +4106 mm/slub.c
4104
4105 #define DEFINE_OOT_FUNC___kmalloc_node(index) \
> 4106 void *oot___kmalloc_node_ ## index(size_t size, gfp_t flags, int node) \
4107 { \
4108 struct kmem_cache *s; \
4109 void *ret; \
4110 \
4111 if (unlikely(size > KMALLOC_MAX_CACHE_SIZE)) { \
4112 ret = kmalloc_large_node(size, flags, node); \
4113 \
4114 trace_kmalloc_node(_RET_IP_, ret, \
4115 size, PAGE_SIZE << get_order(size), \
4116 flags, node); \
4117 \
4118 return ret; \
4119 } \
4120 \
4121 s = oot_kmalloc_slab(index, size, flags); \
4122 \
4123 if (unlikely(ZERO_OR_NULL_PTR(s))) \
4124 return s; \
4125 \
4126 ret = slab_alloc_node(s, flags, node, _RET_IP_, size); \
4127 \
4128 trace_kmalloc_node(_RET_IP_, ret, size, s->size, flags, node); \
4129 \
4130 ret = kasan_kmalloc(s, ret, size, flags); \
4131 \
4132 return ret; \
4133 } \
4134 EXPORT_SYMBOL(oot___kmalloc_node_ ## index)
4135
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2025-05-16 6:35 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=202505161410.uOpS9thM-lkp@intel.com \
--to=lkp@intel.com \
--cc=aubrey.li@linux.intel.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.