[<prev] [next>] [day] [month] [year] [list]
Message-ID: <201908130805.pJsIyswb%lkp@intel.com>
Date: Tue, 13 Aug 2019 08:08:46 +0800
From: kbuild test robot <lkp@...el.com>
To: "Paul E. McKenney" <paulmck@...ux.ibm.com>
Cc: kbuild-all@...org, linux-kernel@...r.kernel.org
Subject: [rcu:rcu/next 47/86] include/asm-generic/atomic-long.h:17:9: error:
unknown type name 'atomic_t'
tree: https://kernel.googlesource.com/pub/scm/linux/kernel/git/paulmck/linux-rcu.git rcu/next
head: eee850b8c265f38ab5feeb8fe6793b1b86eb77c7
commit: d3e83668c4df523f74ddf8c1eb8660f625713b87 [47/86] rcu/nocb: Use separate flag to indicate disabled ->cblist
config: sh-allmodconfig (attached as .config)
compiler: sh4-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 d3e83668c4df523f74ddf8c1eb8660f625713b87
# save the attached .config to linux build tree
GCC_VERSION=7.4.0 make.cross ARCH=sh
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@...el.com>
All errors (new ones prefixed by >>):
In file included from include/linux/rcu_segcblist.h:18:0,
from <command-line>:0:
>> include/asm-generic/atomic-long.h:17:9: error: unknown type name 'atomic_t'
typedef atomic_t atomic_long_t;
^~~~~~~~
include/asm-generic/atomic-long.h: In function 'atomic_long_read':
>> include/asm-generic/atomic-long.h:522:9: error: implicit declaration of function 'atomic_read'; did you mean '__atomic_load'? [-Werror=implicit-function-declaration]
return atomic_read(v);
^~~~~~~~~~~
__atomic_load
include/asm-generic/atomic-long.h: In function 'atomic_long_read_acquire':
>> include/asm-generic/atomic-long.h:528:9: error: implicit declaration of function 'atomic_read_acquire'; did you mean 'atomic_long_read_acquire'? [-Werror=implicit-function-declaration]
return atomic_read_acquire(v);
^~~~~~~~~~~~~~~~~~~
atomic_long_read_acquire
include/asm-generic/atomic-long.h: In function 'atomic_long_set':
>> include/asm-generic/atomic-long.h:534:2: error: implicit declaration of function 'atomic_set'; did you mean 'atomic_long_set'? [-Werror=implicit-function-declaration]
atomic_set(v, i);
^~~~~~~~~~
atomic_long_set
include/asm-generic/atomic-long.h: In function 'atomic_long_set_release':
>> include/asm-generic/atomic-long.h:540:2: error: implicit declaration of function 'atomic_set_release'; did you mean 'atomic_long_set_release'? [-Werror=implicit-function-declaration]
atomic_set_release(v, i);
^~~~~~~~~~~~~~~~~~
atomic_long_set_release
include/asm-generic/atomic-long.h: In function 'atomic_long_add':
>> include/asm-generic/atomic-long.h:546:2: error: implicit declaration of function 'atomic_add'; did you mean 'atomic_long_add'? [-Werror=implicit-function-declaration]
atomic_add(i, v);
^~~~~~~~~~
atomic_long_add
include/asm-generic/atomic-long.h: In function 'atomic_long_add_return':
>> include/asm-generic/atomic-long.h:552:9: error: implicit declaration of function 'atomic_add_return'; did you mean 'atomic_long_add_return'? [-Werror=implicit-function-declaration]
return atomic_add_return(i, v);
^~~~~~~~~~~~~~~~~
atomic_long_add_return
include/asm-generic/atomic-long.h: In function 'atomic_long_add_return_acquire':
>> include/asm-generic/atomic-long.h:558:9: error: implicit declaration of function 'atomic_add_return_acquire'; did you mean 'atomic_long_add_return_acquire'? [-Werror=implicit-function-declaration]
return atomic_add_return_acquire(i, v);
^~~~~~~~~~~~~~~~~~~~~~~~~
atomic_long_add_return_acquire
include/asm-generic/atomic-long.h: In function 'atomic_long_add_return_release':
>> include/asm-generic/atomic-long.h:564:9: error: implicit declaration of function 'atomic_add_return_release'; did you mean 'atomic_long_add_return_release'? [-Werror=implicit-function-declaration]
return atomic_add_return_release(i, v);
^~~~~~~~~~~~~~~~~~~~~~~~~
atomic_long_add_return_release
include/asm-generic/atomic-long.h: In function 'atomic_long_add_return_relaxed':
>> include/asm-generic/atomic-long.h:570:9: error: implicit declaration of function 'atomic_add_return_relaxed'; did you mean 'atomic_long_add_return_relaxed'? [-Werror=implicit-function-declaration]
return atomic_add_return_relaxed(i, v);
^~~~~~~~~~~~~~~~~~~~~~~~~
atomic_long_add_return_relaxed
include/asm-generic/atomic-long.h: In function 'atomic_long_fetch_add':
>> include/asm-generic/atomic-long.h:576:9: error: implicit declaration of function 'atomic_fetch_add'; did you mean '__atomic_fetch_add'? [-Werror=implicit-function-declaration]
return atomic_fetch_add(i, v);
^~~~~~~~~~~~~~~~
__atomic_fetch_add
include/asm-generic/atomic-long.h: In function 'atomic_long_fetch_add_acquire':
>> include/asm-generic/atomic-long.h:582:9: error: implicit declaration of function 'atomic_fetch_add_acquire'; did you mean 'atomic_long_fetch_add_acquire'? [-Werror=implicit-function-declaration]
return atomic_fetch_add_acquire(i, v);
^~~~~~~~~~~~~~~~~~~~~~~~
atomic_long_fetch_add_acquire
include/asm-generic/atomic-long.h: In function 'atomic_long_fetch_add_release':
>> include/asm-generic/atomic-long.h:588:9: error: implicit declaration of function 'atomic_fetch_add_release'; did you mean 'atomic_long_fetch_add_release'? [-Werror=implicit-function-declaration]
return atomic_fetch_add_release(i, v);
^~~~~~~~~~~~~~~~~~~~~~~~
atomic_long_fetch_add_release
include/asm-generic/atomic-long.h: In function 'atomic_long_fetch_add_relaxed':
>> include/asm-generic/atomic-long.h:594:9: error: implicit declaration of function 'atomic_fetch_add_relaxed'; did you mean 'atomic_long_fetch_add_relaxed'? [-Werror=implicit-function-declaration]
return atomic_fetch_add_relaxed(i, v);
^~~~~~~~~~~~~~~~~~~~~~~~
atomic_long_fetch_add_relaxed
include/asm-generic/atomic-long.h: In function 'atomic_long_sub':
>> include/asm-generic/atomic-long.h:600:2: error: implicit declaration of function 'atomic_sub'; did you mean 'atomic_long_sub'? [-Werror=implicit-function-declaration]
atomic_sub(i, v);
^~~~~~~~~~
atomic_long_sub
include/asm-generic/atomic-long.h: In function 'atomic_long_sub_return':
>> include/asm-generic/atomic-long.h:606:9: error: implicit declaration of function 'atomic_sub_return'; did you mean 'atomic_long_sub_return'? [-Werror=implicit-function-declaration]
return atomic_sub_return(i, v);
^~~~~~~~~~~~~~~~~
atomic_long_sub_return
include/asm-generic/atomic-long.h: In function 'atomic_long_sub_return_acquire':
>> include/asm-generic/atomic-long.h:612:9: error: implicit declaration of function 'atomic_sub_return_acquire'; did you mean 'atomic_long_sub_return_acquire'? [-Werror=implicit-function-declaration]
return atomic_sub_return_acquire(i, v);
^~~~~~~~~~~~~~~~~~~~~~~~~
atomic_long_sub_return_acquire
include/asm-generic/atomic-long.h: In function 'atomic_long_sub_return_release':
>> include/asm-generic/atomic-long.h:618:9: error: implicit declaration of function 'atomic_sub_return_release'; did you mean 'atomic_long_sub_return_release'? [-Werror=implicit-function-declaration]
return atomic_sub_return_release(i, v);
^~~~~~~~~~~~~~~~~~~~~~~~~
atomic_long_sub_return_release
include/asm-generic/atomic-long.h: In function 'atomic_long_sub_return_relaxed':
>> include/asm-generic/atomic-long.h:624:9: error: implicit declaration of function 'atomic_sub_return_relaxed'; did you mean 'atomic_long_sub_return_relaxed'? [-Werror=implicit-function-declaration]
return atomic_sub_return_relaxed(i, v);
^~~~~~~~~~~~~~~~~~~~~~~~~
atomic_long_sub_return_relaxed
include/asm-generic/atomic-long.h: In function 'atomic_long_fetch_sub':
>> include/asm-generic/atomic-long.h:630:9: error: implicit declaration of function 'atomic_fetch_sub'; did you mean '__atomic_fetch_sub'? [-Werror=implicit-function-declaration]
return atomic_fetch_sub(i, v);
^~~~~~~~~~~~~~~~
__atomic_fetch_sub
include/asm-generic/atomic-long.h: In function 'atomic_long_fetch_sub_acquire':
vim +/atomic_t +17 include/asm-generic/atomic-long.h
d3cb487149bd70 include/asm-generic/atomic.h Christoph Lameter 2006-01-06 10
b5d47ef9ea5c5f include/asm-generic/atomic-long.h Mark Rutland 2018-09-04 11 #ifdef CONFIG_64BIT
b5d47ef9ea5c5f include/asm-generic/atomic-long.h Mark Rutland 2018-09-04 12 typedef atomic64_t atomic_long_t;
b5d47ef9ea5c5f include/asm-generic/atomic-long.h Mark Rutland 2018-09-04 13 #define ATOMIC_LONG_INIT(i) ATOMIC64_INIT(i)
b5d47ef9ea5c5f include/asm-generic/atomic-long.h Mark Rutland 2018-09-04 14 #define atomic_long_cond_read_acquire atomic64_cond_read_acquire
b5d47ef9ea5c5f include/asm-generic/atomic-long.h Mark Rutland 2018-09-04 15 #define atomic_long_cond_read_relaxed atomic64_cond_read_relaxed
b5d47ef9ea5c5f include/asm-generic/atomic-long.h Mark Rutland 2018-09-04 16 #else
b5d47ef9ea5c5f include/asm-generic/atomic-long.h Mark Rutland 2018-09-04 @17 typedef atomic_t atomic_long_t;
b5d47ef9ea5c5f include/asm-generic/atomic-long.h Mark Rutland 2018-09-04 18 #define ATOMIC_LONG_INIT(i) ATOMIC_INIT(i)
b5d47ef9ea5c5f include/asm-generic/atomic-long.h Mark Rutland 2018-09-04 19 #define atomic_long_cond_read_acquire atomic_cond_read_acquire
b5d47ef9ea5c5f include/asm-generic/atomic-long.h Mark Rutland 2018-09-04 20 #define atomic_long_cond_read_relaxed atomic_cond_read_relaxed
b5d47ef9ea5c5f include/asm-generic/atomic-long.h Mark Rutland 2018-09-04 21 #endif
d3cb487149bd70 include/asm-generic/atomic.h Christoph Lameter 2006-01-06 22
:::::: The code at line 17 was first introduced by commit
:::::: b5d47ef9ea5c5fe31d7eabeb79f697629bd9e2cb locking/atomics: Switch to generated atomic-long
:::::: TO: Mark Rutland <mark.rutland@....com>
:::::: CC: Ingo Molnar <mingo@...nel.org>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
Download attachment ".config.gz" of type "application/gzip" (51796 bytes)
Powered by blists - more mailing lists