tree:
https://github.com/intel/linux-intel-lts.git 5.10/preempt-rt
head: ab2a4c18536ed3f3ec2fbd942657b31d6f63fe7c
commit: 85689867faad45d8385c0d0001395735c778d2e3 [19/26] Revert "xfrm: fix lock usage
issue"
config: arc-allyesconfig (attached as .config)
compiler: arceb-elf-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
#
https://github.com/intel/linux-intel-lts/commit/85689867faad45d8385c0d000...
git remote add intel-linux-intel-lts
https://github.com/intel/linux-intel-lts.git
git fetch --no-tags intel-linux-intel-lts 5.10/preempt-rt
git checkout 85689867faad45d8385c0d0001395735c778d2e3
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
Note: the intel-linux-intel-lts/5.10/preempt-rt HEAD
ab2a4c18536ed3f3ec2fbd942657b31d6f63fe7c builds fine.
It only hurts bisectibility.
All errors (new ones prefixed by >>):
In file included from include/linux/mmzone.h:16,
from include/linux/gfp.h:6,
from include/linux/mm.h:10,
from include/linux/bvec.h:14,
from include/linux/skbuff.h:17,
from include/net/xfrm.h:9,
from net/xfrm/xfrm_state.c:18:
net/xfrm/xfrm_state.c: In function 'xfrm_state_init':
> include/linux/seqlock.h:178:36: error: initialization of
'seqcount_spinlock_t *' {aka 'struct seqcount_spinlock *'} from
incompatible pointer type 'seqcount_t *' {aka 'struct seqcount *'}
[-Werror=incompatible-pointer-types]
178 | seqcount_##lockname##_t *____s =
(s); \
| ^
include/linux/seqlock.h:184:42: note: in expansion of macro
'seqcount_LOCKNAME_init'
184 | #define seqcount_spinlock_init(s, lock) seqcount_LOCKNAME_init(s, lock,
spinlock)
| ^~~~~~~~~~~~~~~~~~~~~~
net/xfrm/xfrm_state.c:2666:2: note: in expansion of macro
'seqcount_spinlock_init'
2666 | seqcount_spinlock_init(&net->xfrm.xfrm_state_hash_generation,
| ^~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +178 include/linux/seqlock.h
55f3560df975f55 Ahmed S. Darwish 2020-07-20 156
ed3e453798d4f81 Mauro Carvalho Chehab 2020-10-13 157 /*
6dd699b13d53f26 Ahmed S. Darwish 2020-09-04 158 * typedef seqcount_LOCKNAME_t -
sequence counter with LOCKNAME associated
a8772dccb2ec7b1 Peter Zijlstra 2020-07-23 159 * @seqcount: The real sequence
counter
6dd699b13d53f26 Ahmed S. Darwish 2020-09-04 160 * @lock: Pointer to the associated
lock
a8772dccb2ec7b1 Peter Zijlstra 2020-07-23 161 *
6dd699b13d53f26 Ahmed S. Darwish 2020-09-04 162 * A plain sequence counter with
external writer synchronization by
6dd699b13d53f26 Ahmed S. Darwish 2020-09-04 163 * LOCKNAME @lock. The lock is
associated to the sequence counter in the
a8772dccb2ec7b1 Peter Zijlstra 2020-07-23 164 * static initializer or init
function. This enables lockdep to validate
a8772dccb2ec7b1 Peter Zijlstra 2020-07-23 165 * that the write side critical
section is properly serialized.
6dd699b13d53f26 Ahmed S. Darwish 2020-09-04 166 *
6dd699b13d53f26 Ahmed S. Darwish 2020-09-04 167 * LOCKNAME: raw_spinlock,
spinlock, rwlock, mutex, or ww_mutex.
a8772dccb2ec7b1 Peter Zijlstra 2020-07-23 168 */
a8772dccb2ec7b1 Peter Zijlstra 2020-07-23 169
a28e884b966e713 Randy Dunlap 2020-08-16 170 /*
e4e9ab3f9f91ad3 Peter Zijlstra 2020-07-23 171 * seqcount_LOCKNAME_init() -
runtime initializer for seqcount_LOCKNAME_t
e4e9ab3f9f91ad3 Peter Zijlstra 2020-07-23 172 * @s: Pointer to the
seqcount_LOCKNAME_t instance
6dd699b13d53f26 Ahmed S. Darwish 2020-09-04 173 * @lock: Pointer to the associated
lock
e4e9ab3f9f91ad3 Peter Zijlstra 2020-07-23 174 */
e4e9ab3f9f91ad3 Peter Zijlstra 2020-07-23 175
267580db047ef42 peterz(a)infradead.org 2020-09-15 176 #define seqcount_LOCKNAME_init(s,
_lock, lockname) \
267580db047ef42 peterz(a)infradead.org 2020-09-15 177 do { \
267580db047ef42 peterz(a)infradead.org 2020-09-15 @178 seqcount_##lockname##_t *____s =
(s); \
267580db047ef42 peterz(a)infradead.org 2020-09-15 179
seqcount_init(&____s->seqcount); \
267580db047ef42 peterz(a)infradead.org 2020-09-15 180 __SEQ_LOCK(____s->lock =
(_lock)); \
267580db047ef42 peterz(a)infradead.org 2020-09-15 181 } while (0)
267580db047ef42 peterz(a)infradead.org 2020-09-15 182
:::::: The code at line 178 was first introduced by commit
:::::: 267580db047ef428a70bef8287ca62c5a450c139 seqlock: Unbreak lockdep
:::::: TO: peterz(a)infradead.org <peterz(a)infradead.org>
:::::: CC: Peter Zijlstra <peterz(a)infradead.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org