[mmotm:master 53/352] include/linux/kasan-checks.h:11:1: error: unknown type name 'bool'; did you mean '_Bool'?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   git://git.cmpxchg.org/linux-mmotm.git master
head:   4cfa05acb2325535f9b0731b3e95658a2f2b32d4
commit: 4af3f20d54e3abea7b6ec0f6ce08396a57890372 [53/352] mm/kasan: change kasan_check_{read,write} to return boolean
config: arm64-allmodconfig (attached as .config)
compiler: aarch64-linux-gcc (GCC) 7.4.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 4af3f20d54e3abea7b6ec0f6ce08396a57890372
        # save the attached .config to linux build tree
        GCC_VERSION=7.4.0 make.cross ARCH=arm64 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

   In file included from arch/arm64/include/asm/barrier.h:12:0,
                    from include/linux/compiler.h:251,
                    from include/linux/ioport.h:13,
                    from include/linux/acpi.h:12,
                    from include/acpi/apei.h:9,
                    from include/acpi/ghes.h:5,
                    from include/linux/arm_sdei.h:14,
                    from arch/arm64/kernel/asm-offsets.c:10:
>> include/linux/kasan-checks.h:11:1: error: unknown type name 'bool'; did you mean '_Bool'?
    bool __kasan_check_read(const volatile void *p, unsigned int size);
    ^~~~
    _Bool
   include/linux/kasan-checks.h:12:1: error: unknown type name 'bool'; did you mean '_Bool'?
    bool __kasan_check_write(const volatile void *p, unsigned int size);
    ^~~~
    _Bool
   include/linux/kasan-checks.h:29:15: error: unknown type name 'bool'
    static inline bool kasan_check_read(const volatile void *p, unsigned int size)
                  ^~~~
   include/linux/kasan-checks.h:33:15: error: unknown type name 'bool'
    static inline bool kasan_check_write(const volatile void *p, unsigned int size)
                  ^~~~
   make[2]: *** [arch/arm64/kernel/asm-offsets.s] Error 1
   make[2]: Target '__build' not remade because of errors.
   make[1]: *** [prepare0] Error 2
   make[1]: Target 'prepare' not remade because of errors.
   make: *** [sub-make] Error 2

vim +11 include/linux/kasan-checks.h

     4	
     5	/*
     6	 * __kasan_check_*: Always available when KASAN is enabled. This may be used
     7	 * even in compilation units that selectively disable KASAN, but must use KASAN
     8	 * to validate access to an address.   Never use these in header files!
     9	 */
    10	#ifdef CONFIG_KASAN
  > 11	bool __kasan_check_read(const volatile void *p, unsigned int size);
    12	bool __kasan_check_write(const volatile void *p, unsigned int size);
    13	#else
    14	static inline bool __kasan_check_read(const volatile void *p, unsigned int size)
    15	{
    16		return true;
    17	}
    18	static inline bool __kasan_check_write(const volatile void *p, unsigned int size)
    19	{
    20		return true;
    21	}
    22	#endif
    23	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux