lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202203291356.qd9QDdwo-lkp@intel.com>
Date:   Tue, 29 Mar 2022 13:20:36 +0800
From:   kernel test robot <lkp@...el.com>
To:     Catalin Marinas <catalin.marinas@....com>
Cc:     kbuild-all@...ts.01.org,
        GNU/Weeb Mailing List <gwml@...r.gnuweeb.org>,
        linux-kernel@...r.kernel.org
Subject: [ammarfaizi2-block:arm64/linux/devel/kmalloc-minalign 11/11]
 arch/arm64/include/asm/cache.h:51:44: error: missing binary operator before
 token "("

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/202203291356.qd9QDdwo-lkp@intel.com/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 <lkp@...el.com>

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ