* [ammarfaizi2-block:arm64/linux/devel/kmalloc-minalign 11/11] arch/arm64/include/asm/cache.h:51:44: error: missing binary operator before token "("
@ 2022-03-29 5:20 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-03-29 5:20 UTC (permalink / raw)
To: Catalin Marinas; +Cc: kbuild-all, GNU/Weeb Mailing List, linux-kernel
tree: https://github.com/ammarfaizi2/linux-block arm64/linux/devel/kmalloc-minalign
head: 96a378f120e08f205dad5abcc348f0628d2db801
commit: 96a378f120e08f205dad5abcc348f0628d2db801 [11/11] arm64: Allow arch_kmalloc_minalign() of 8 if CLIDR_EL1.LoC == 0
config: arm64-buildonly-randconfig-r006-20220328 (https://download.01.org/0day-ci/archive/20220329/[email protected]/config)
compiler: aarch64-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/ammarfaizi2/linux-block/commit/96a378f120e08f205dad5abcc348f0628d2db801
git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block
git fetch --no-tags ammarfaizi2-block arm64/linux/devel/kmalloc-minalign
git checkout 96a378f120e08f205dad5abcc348f0628d2db801
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arm64 SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <[email protected]>
All error/warnings (new ones prefixed by >>):
In file included from include/linux/cache.h:6,
from include/linux/printk.h:9,
from include/asm-generic/bug.h:22,
from arch/arm64/include/asm/bug.h:26,
from include/linux/bug.h:5,
from include/linux/mmdebug.h:5,
from include/linux/gfp.h:5,
from include/linux/slab.h:15,
from mm/slab.c:90:
>> arch/arm64/include/asm/cache.h:51:33: warning: "__alignof__" is not defined, evaluates to 0 [-Wundef]
51 | #define ARCH_KMALLOC_MINALIGN __alignof__(unsigned long long)
| ^~~~~~~~~~~
include/linux/slab.h:214:26: note: in expansion of macro 'ARCH_KMALLOC_MINALIGN'
214 | #define KMALLOC_MIN_SIZE ARCH_KMALLOC_MINALIGN
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/slab.h:305:33: note: in expansion of macro 'KMALLOC_MIN_SIZE'
305 | #define SLAB_OBJ_MIN_SIZE (KMALLOC_MIN_SIZE < 16 ? \
| ^~~~~~~~~~~~~~~~
mm/slab.c:163:36: note: in expansion of macro 'SLAB_OBJ_MIN_SIZE'
163 | <= SLAB_OBJ_MIN_SIZE) ? 1 : 0)
| ^~~~~~~~~~~~~~~~~
mm/slab.c:165:5: note: in expansion of macro 'FREELIST_BYTE_INDEX'
165 | #if FREELIST_BYTE_INDEX
| ^~~~~~~~~~~~~~~~~~~
>> arch/arm64/include/asm/cache.h:51:44: error: missing binary operator before token "("
51 | #define ARCH_KMALLOC_MINALIGN __alignof__(unsigned long long)
| ^
include/linux/slab.h:214:26: note: in expansion of macro 'ARCH_KMALLOC_MINALIGN'
214 | #define KMALLOC_MIN_SIZE ARCH_KMALLOC_MINALIGN
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/slab.h:305:33: note: in expansion of macro 'KMALLOC_MIN_SIZE'
305 | #define SLAB_OBJ_MIN_SIZE (KMALLOC_MIN_SIZE < 16 ? \
| ^~~~~~~~~~~~~~~~
mm/slab.c:163:36: note: in expansion of macro 'SLAB_OBJ_MIN_SIZE'
163 | <= SLAB_OBJ_MIN_SIZE) ? 1 : 0)
| ^~~~~~~~~~~~~~~~~
mm/slab.c:165:5: note: in expansion of macro 'FREELIST_BYTE_INDEX'
165 | #if FREELIST_BYTE_INDEX
| ^~~~~~~~~~~~~~~~~~~
vim +51 arch/arm64/include/asm/cache.h
42
43 /*
44 * Memory returned by kmalloc() may be used for DMA, so we must make
45 * sure that all such allocations are cache aligned. Otherwise,
46 * unrelated code may cause parts of the buffer to be read into the
47 * cache before the transfer is done, causing old data to be seen by
48 * the CPU.
49 */
50 #define ARCH_DMA_MINALIGN (128)
> 51 #define ARCH_KMALLOC_MINALIGN __alignof__(unsigned long long)
52
--
0-DAY CI Kernel Test Service
https://01.org/lkp
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-03-29 5:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-29 5:20 [ammarfaizi2-block:arm64/linux/devel/kmalloc-minalign 11/11] arch/arm64/include/asm/cache.h:51:44: error: missing binary operator before token "(" kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox