All of lore.kernel.org
 help / color / mirror / Atom feed
* [peterz-queue:master 7/10] include/linux/compiler.h:226:2: error: implicit declaration of function 'kcsan_check_atomic_read'; did you mean 'arch_atomic_read'?
@ 2020-03-21 17:32 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2020-03-21 17:32 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git master
head:   6239267ace244a0e930f334f3f9b0d95c022cb1d
commit: 2025d4ca5734a19198b56056a2da7e5d63b07b15 [7/10] Merge branch 'locking/atomics'
config: um-x86_64_defconfig (attached as .config)
compiler: gcc-7 (Debian 7.5.0-5) 7.5.0
reproduce:
        git checkout 2025d4ca5734a19198b56056a2da7e5d63b07b15
        # save the attached .config to linux build tree
        make ARCH=um SUBARCH=x86_64

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 include/linux/string.h:6:0,
                    from include/linux/uuid.h:12,
                    from include/linux/mod_devicetable.h:13,
                    from scripts/mod/devicetable-offsets.c:3:
   arch/x86/include/asm/atomic.h: In function 'arch_atomic_read':
>> include/linux/compiler.h:226:2: error: implicit declaration of function 'kcsan_check_atomic_read'; did you mean 'arch_atomic_read'? [-Werror=implicit-function-declaration]
     kcsan_check_atomic_read(&(x), sizeof(x)); \
     ^
   arch/x86/include/asm/atomic.h:31:9: note: in expansion of macro 'READ_ONCE'
     return READ_ONCE((v)->counter);
            ^~~~~~~~~
   arch/x86/include/asm/atomic.h: In function 'arch_atomic_set':
   include/linux/compiler.h:238:2: error: implicit declaration of function 'kcsan_check_atomic_write'; did you mean 'kasan_check_write'? [-Werror=implicit-function-declaration]
     kcsan_check_atomic_write(&(x), sizeof(x)); \
     ^
   arch/x86/include/asm/atomic.h:43:2: note: in expansion of macro 'WRITE_ONCE'
     WRITE_ONCE(v->counter, i);
     ^~~~~~~~~~
   In file included from include/linux/bitops.h:29:0,
                    from include/linux/kernel.h:12,
                    from include/asm-generic/bug.h:19,
                    from ./arch/um/include/generated/asm/bug.h:1,
                    from include/linux/bug.h:5,
                    from include/linux/jump_label.h:250,
                    from arch/x86/include/asm/string_64.h:6,
                    from arch/x86/include/asm/string.h:5,
                    from include/linux/string.h:20,
                    from include/linux/uuid.h:12,
                    from include/linux/mod_devicetable.h:13,
                    from scripts/mod/devicetable-offsets.c:3:
   arch/x86/include/asm/bitops.h: At top level:
   arch/x86/include/asm/bitops.h:204:8: error: unknown type name '__no_kcsan_or_inline'
    static __no_kcsan_or_inline bool constant_test_bit(long nr, const volatile unsigned long *addr)
           ^~~~~~~~~~~~~~~~~~~~
   arch/x86/include/asm/bitops.h:204:34: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'constant_test_bit'
    static __no_kcsan_or_inline bool constant_test_bit(long nr, const volatile unsigned long *addr)
                                     ^~~~~~~~~~~~~~~~~
   include/asm-generic/bitops/instrumented-non-atomic.h: In function 'test_bit':
   arch/x86/include/asm/bitops.h:228:5: error: implicit declaration of function 'constant_test_bit'; did you mean 'test_and_set_bit'? [-Werror=implicit-function-declaration]
      ? constant_test_bit((nr), (addr)) \
        ^
   include/asm-generic/bitops/instrumented-non-atomic.h:111:9: note: in expansion of macro 'arch_test_bit'
     return arch_test_bit(nr, addr);
            ^~~~~~~~~~~~~
   cc1: some warnings being treated as errors
   make[2]: *** [scripts/Makefile.build:101: scripts/mod/devicetable-offsets.s] Error 1
   make[2]: Target '__build' not remade because of errors.
   make[1]: *** [Makefile:1113: prepare0] Error 2
   make[1]: Target 'prepare' not remade because of errors.
   make: *** [Makefile:180: sub-make] Error 2
   22 real  8 user  10 sys  84.92% cpu 	make prepare

vim +226 include/linux/compiler.h

   224	
   225	#define READ_ONCE(x) ({					\
 > 226		kcsan_check_atomic_read(&(x), sizeof(x));	\
   227		READ_ONCE_NOCHECK(x);				\
   228	})
   229	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 8499 bytes --]

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

only message in thread, other threads:[~2020-03-21 17:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-21 17:32 [peterz-queue:master 7/10] include/linux/compiler.h:226:2: error: implicit declaration of function 'kcsan_check_atomic_read'; did you mean 'arch_atomic_read'? 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.