All of lore.kernel.org
 help / color / mirror / Atom feed
* [peterz-queue:master 8/11] include/linux/compiler.h:238:2: error: implicit declaration of function 'kcsan_check_atomic_write'
@ 2020-04-02  0:52 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2020-04-02  0:52 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git master
head:   31ca88ecbfa2c7cae4c90c52e6e885b934526474
commit: ae669d2e16cb9198a61036ad19e1cce341c7057c [8/11] Merge branch 'locking/atomics'
config: mips-fuloong2e_defconfig (attached as .config)
compiler: mips64el-linux-gcc (GCC) 5.5.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 ae669d2e16cb9198a61036ad19e1cce341c7057c
        # save the attached .config to linux build tree
        GCC_VERSION=5.5.0 make.cross ARCH=mips 

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/kernel.h:11:0,
                    from include/linux/list.h:9,
                    from include/linux/preempt.h:11,
                    from include/linux/spinlock.h:51,
                    from include/linux/seqlock.h:36,
                    from include/linux/time.h:6,
                    from include/linux/compat.h:10,
                    from arch/mips/kernel/asm-offsets.c:12:
   include/linux/list.h: In function 'INIT_LIST_HEAD':
>> include/linux/compiler.h:238:2: error: implicit declaration of function 'kcsan_check_atomic_write' [-Werror=implicit-function-declaration]
     kcsan_check_atomic_write(&(x), sizeof(x)); \
     ^
   include/linux/list.h:35:2: note: in expansion of macro 'WRITE_ONCE'
     WRITE_ONCE(list->next, list);
     ^
   include/linux/list.h: In function 'list_empty':
>> include/linux/compiler.h:226:2: error: implicit declaration of function 'kcsan_check_atomic_read' [-Werror=implicit-function-declaration]
     kcsan_check_atomic_read(&(x), sizeof(x)); \
     ^
   include/linux/list.h:282:9: note: in expansion of macro 'READ_ONCE'
     return READ_ONCE(head->next) == head;
            ^
   cc1: some warnings being treated as errors
   make[2]: *** [scripts/Makefile.build:101: arch/mips/kernel/asm-offsets.s] Error 1
   make[2]: Target 'missing-syscalls' not remade because of errors.
   make[1]: *** [arch/mips/Makefile:414: archprepare] Error 2
   make[1]: Target 'prepare' not remade because of errors.
   make: *** [Makefile:180: sub-make] Error 2
   17 real  4 user  9 sys  78.57% cpu 	make prepare

vim +/kcsan_check_atomic_write +238 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	
   230	#define __WRITE_ONCE(x, val)				\
   231	do {							\
   232		*(volatile typeof(x) *)&(x) = (val);		\
   233	} while (0)
   234	
   235	#define WRITE_ONCE(x, val)				\
   236	do {							\
   237		compiletime_assert_rwonce_type(x);		\
 > 238		kcsan_check_atomic_write(&(x), sizeof(x));	\
   239		__WRITE_ONCE(x, val);				\
   240	} while (0)
   241	

---
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: 19235 bytes --]

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

only message in thread, other threads:[~2020-04-02  0:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-02  0:52 [peterz-queue:master 8/11] include/linux/compiler.h:238:2: error: implicit declaration of function 'kcsan_check_atomic_write' 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.