* [rppt:gfp-to-kmalloc/scsi 5/5] include/linux/alloc_tag.h:265:1: warning: initialization of 'void *' from 'int' makes pointer from integer without a cast
@ 2026-06-17 0:49 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-06-17 0:49 UTC (permalink / raw)
To: Mike Rapoport (Microsoft); +Cc: oe-kbuild-all
tree: https://git.kernel.org/pub/scm/linux/kernel/git/rppt/linux.git gfp-to-kmalloc/scsi
head: 8434cdcf311874c86620e4dbacbe17f63b33eca4
commit: 8434cdcf311874c86620e4dbacbe17f63b33eca4 [5/5] scsi: sym53c8xx_2: replace __get_free_pages() with kmalloc()
config: alpha-randconfig-r132-20260617 (https://download.01.org/0day-ci/archive/20260617/202606170853.axxilhtB-lkp@intel.com/config)
compiler: alpha-linux-gcc (GCC) 12.5.0
sparse: v0.6.5-rc1
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260617/202606170853.axxilhtB-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/202606170853.axxilhtB-lkp@intel.com/
All warnings (new ones prefixed by >>):
In file included from include/linux/percpu.h:5,
from include/linux/context_tracking_state.h:5,
from include/linux/hardirq.h:5,
from include/linux/interrupt.h:11,
from drivers/scsi/sym53c8xx_2/sym_glue.h:32,
from drivers/scsi/sym53c8xx_2/sym_malloc.c:27:
drivers/scsi/sym53c8xx_2/sym_malloc.c: In function '___mp0_get_mem_cluster':
drivers/scsi/sym53c8xx_2/sym_hipd.h:1114:30: error: 'M_MEM_PAGE_ORDER' undeclared (first use in this function); did you mean 'SYM_MEM_PAGE_ORDER'?
1114 | kmalloc(PAGE_SIZE << M_MEM_PAGE_ORDER, GFP_ATOMIC)
| ^~~~~~~~~~~~~~~~
include/linux/alloc_tag.h:253:16: note: in definition of macro 'alloc_hooks_tag'
253 | typeof(_do_alloc) _res; \
| ^~~~~~~~~
include/linux/slab.h:956:49: note: in expansion of macro 'alloc_hooks'
956 | #define kmalloc(...) alloc_hooks(kmalloc_noprof(__VA_ARGS__))
| ^~~~~~~~~~~
drivers/scsi/sym53c8xx_2/sym_hipd.h:1114:9: note: in expansion of macro 'kmalloc'
1114 | kmalloc(PAGE_SIZE << M_MEM_PAGE_ORDER, GFP_ATOMIC)
| ^~~~~~~
drivers/scsi/sym53c8xx_2/sym_malloc.c:182:19: note: in expansion of macro 'sym_get_mem_cluster'
182 | void *m = sym_get_mem_cluster();
| ^~~~~~~~~~~~~~~~~~~
drivers/scsi/sym53c8xx_2/sym_hipd.h:1114:30: note: each undeclared identifier is reported only once for each function it appears in
1114 | kmalloc(PAGE_SIZE << M_MEM_PAGE_ORDER, GFP_ATOMIC)
| ^~~~~~~~~~~~~~~~
include/linux/alloc_tag.h:253:16: note: in definition of macro 'alloc_hooks_tag'
253 | typeof(_do_alloc) _res; \
| ^~~~~~~~~
include/linux/slab.h:956:49: note: in expansion of macro 'alloc_hooks'
956 | #define kmalloc(...) alloc_hooks(kmalloc_noprof(__VA_ARGS__))
| ^~~~~~~~~~~
drivers/scsi/sym53c8xx_2/sym_hipd.h:1114:9: note: in expansion of macro 'kmalloc'
1114 | kmalloc(PAGE_SIZE << M_MEM_PAGE_ORDER, GFP_ATOMIC)
| ^~~~~~~
drivers/scsi/sym53c8xx_2/sym_malloc.c:182:19: note: in expansion of macro 'sym_get_mem_cluster'
182 | void *m = sym_get_mem_cluster();
| ^~~~~~~~~~~~~~~~~~~
>> include/linux/alloc_tag.h:265:1: warning: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
265 | ({ \
| ^
include/linux/slab.h:956:49: note: in expansion of macro 'alloc_hooks'
956 | #define kmalloc(...) alloc_hooks(kmalloc_noprof(__VA_ARGS__))
| ^~~~~~~~~~~
drivers/scsi/sym53c8xx_2/sym_hipd.h:1114:9: note: in expansion of macro 'kmalloc'
1114 | kmalloc(PAGE_SIZE << M_MEM_PAGE_ORDER, GFP_ATOMIC)
| ^~~~~~~
drivers/scsi/sym53c8xx_2/sym_malloc.c:182:19: note: in expansion of macro 'sym_get_mem_cluster'
182 | void *m = sym_get_mem_cluster();
| ^~~~~~~~~~~~~~~~~~~
vim +265 include/linux/alloc_tag.h
b951aaff503502 Suren Baghdasaryan 2024-03-21 263
b951aaff503502 Suren Baghdasaryan 2024-03-21 264 #define alloc_hooks(_do_alloc) \
b951aaff503502 Suren Baghdasaryan 2024-03-21 @265 ({ \
b951aaff503502 Suren Baghdasaryan 2024-03-21 266 DEFINE_ALLOC_TAG(_alloc_tag); \
b951aaff503502 Suren Baghdasaryan 2024-03-21 267 alloc_hooks_tag(&_alloc_tag, _do_alloc); \
b951aaff503502 Suren Baghdasaryan 2024-03-21 268 })
b951aaff503502 Suren Baghdasaryan 2024-03-21 269
:::::: The code at line 265 was first introduced by commit
:::::: b951aaff503502a7fe066eeed2744ba8a6413c89 mm: enable page allocation tagging
:::::: TO: Suren Baghdasaryan <surenb@google.com>
:::::: CC: Andrew Morton <akpm@linux-foundation.org>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-17 0:51 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-17 0:49 [rppt:gfp-to-kmalloc/scsi 5/5] include/linux/alloc_tag.h:265:1: warning: initialization of 'void *' from 'int' makes pointer from integer without a cast kernel test robot
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.