All of lore.kernel.org
 help / color / mirror / Atom feed
* [mmotm:master 53/352] include/linux/kasan-checks.h:11:1: error: unknown type name 'bool'; did you mean '_Bool'?
@ 2019-07-05  2:04 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2019-07-05  2:04 UTC (permalink / raw)
  To: Marco Elver
  Cc: kbuild-all, Johannes Weiner, Andrew Morton, Linux Memory Management List

[-- Attachment #1: Type: text/plain, Size: 3108 bytes --]

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@intel.com>

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 #2: .config.gz --]
[-- Type: application/gzip, Size: 65625 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-07-05  2:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-05  2:04 [mmotm:master 53/352] include/linux/kasan-checks.h:11:1: error: unknown type name 'bool'; did you mean '_Bool'? kbuild 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.