From: kernel test robot <[email protected]>
To: Catalin Marinas <[email protected]>
Cc: [email protected],
GNU/Weeb Mailing List <[email protected]>,
[email protected]
Subject: [ammarfaizi2-block:arm64/linux/devel/kmalloc-minalign 11/11] arch/arm64/include/asm/cache.h:51:44: error: missing binary operator before token "("
Date: Tue, 29 Mar 2022 13:20:36 +0800 [thread overview]
Message-ID: <[email protected]> (raw)
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
reply other threads:[~2022-03-29 5:20 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 \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox