* [bigeasy-staging:lockdep-nesting 6/15] include/linux/fs.h:1422:29: error: array type has incomplete element type 'struct percpu_rw_semaphore'
@ 2020-03-18 21:35 kbuild test robot
2020-03-18 22:52 ` Sebastian Andrzej Siewior
0 siblings, 1 reply; 2+ messages in thread
From: kbuild test robot @ 2020-03-18 21:35 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 2448 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/bigeasy/staging.git lockdep-nesting
head: a8af4e4e741812a0cdf0b5c48c7113a3841af44e
commit: 24ae582376f730ae8781ac1a44d8e20dc51e97aa [6/15] rcuwait: Add @state argument to rcuwait_wait_event()
config: nds32-defconfig (attached as .config)
compiler: nds32le-linux-gcc (GCC) 9.2.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 24ae582376f730ae8781ac1a44d8e20dc51e97aa
# save the attached .config to linux build tree
GCC_VERSION=9.2.0 make.cross ARCH=nds32
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/huge_mm.h:8,
from include/linux/mm.h:567,
from arch/nds32/include/asm/uaccess.h:14,
from include/linux/uaccess.h:11,
from include/linux/sched/task.h:11,
from include/linux/sched/signal.h:9,
from include/linux/rcuwait.h:6,
from include/linux/percpu-rwsem.h:8,
from kernel/locking/percpu-rwsem.c:6:
>> include/linux/fs.h:1422:29: error: array type has incomplete element type 'struct percpu_rw_semaphore'
1422 | struct percpu_rw_semaphore rw_sem[SB_FREEZE_LEVELS];
| ^~~~~~
vim +1422 include/linux/fs.h
5accdf82ba25ca Jan Kara 2012-06-12 1418
5accdf82ba25ca Jan Kara 2012-06-12 1419 struct sb_writers {
5accdf82ba25ca Jan Kara 2012-06-12 1420 int frozen; /* Is sb frozen? */
8129ed29644bf5 Oleg Nesterov 2015-08-11 1421 wait_queue_head_t wait_unfrozen; /* for get_super_thawed() */
8129ed29644bf5 Oleg Nesterov 2015-08-11 @1422 struct percpu_rw_semaphore rw_sem[SB_FREEZE_LEVELS];
5accdf82ba25ca Jan Kara 2012-06-12 1423 };
5accdf82ba25ca Jan Kara 2012-06-12 1424
:::::: The code at line 1422 was first introduced by commit
:::::: 8129ed29644bf56ed17ec1bbbeed5c568b43d6a0 change sb_writers to use percpu_rw_semaphore
:::::: TO: Oleg Nesterov <oleg@redhat.com>
:::::: CC: Oleg Nesterov <oleg@redhat.com>
---
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: 10815 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [bigeasy-staging:lockdep-nesting 6/15] include/linux/fs.h:1422:29: error: array type has incomplete element type 'struct percpu_rw_semaphore'
2020-03-18 21:35 [bigeasy-staging:lockdep-nesting 6/15] include/linux/fs.h:1422:29: error: array type has incomplete element type 'struct percpu_rw_semaphore' kbuild test robot
@ 2020-03-18 22:52 ` Sebastian Andrzej Siewior
0 siblings, 0 replies; 2+ messages in thread
From: Sebastian Andrzej Siewior @ 2020-03-18 22:52 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 1688 bytes --]
On 2020-03-19 05:35:35 [+0800], kbuild test robot wrote:
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/bigeasy/staging.git lockdep-nesting
> head: a8af4e4e741812a0cdf0b5c48c7113a3841af44e
> commit: 24ae582376f730ae8781ac1a44d8e20dc51e97aa [6/15] rcuwait: Add @state argument to rcuwait_wait_event()
> config: nds32-defconfig (attached as .config)
> compiler: nds32le-linux-gcc (GCC) 9.2.0
>
> All errors (new ones prefixed by >>):
>
> In file included from include/linux/huge_mm.h:8,
> from include/linux/mm.h:567,
> from arch/nds32/include/asm/uaccess.h:14,
> from include/linux/uaccess.h:11,
> from include/linux/sched/task.h:11,
> from include/linux/sched/signal.h:9,
> from include/linux/rcuwait.h:6,
> from include/linux/percpu-rwsem.h:8,
> from kernel/locking/percpu-rwsem.c:6:
> >> include/linux/fs.h:1422:29: error: array type has incomplete element type 'struct percpu_rw_semaphore'
> 1422 | struct percpu_rw_semaphore rw_sem[SB_FREEZE_LEVELS];
> | ^~~~~~
>
With
diff --git a/arch/nds32/include/asm/uaccess.h b/arch/nds32/include/asm/uaccess.h
index 8916ad9f9f139..3a9219f53ee0d 100644
--- a/arch/nds32/include/asm/uaccess.h
+++ b/arch/nds32/include/asm/uaccess.h
@@ -11,7 +11,6 @@
#include <asm/errno.h>
#include <asm/memory.h>
#include <asm/types.h>
-#include <linux/mm.h>
#define __asmeq(x, y) ".ifnc " x "," y " ; .err ; .endif\n\t"
The defconfig compiles. Also two of randconfigs just did.
Sebastian
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-03-18 22:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-18 21:35 [bigeasy-staging:lockdep-nesting 6/15] include/linux/fs.h:1422:29: error: array type has incomplete element type 'struct percpu_rw_semaphore' kbuild test robot
2020-03-18 22:52 ` Sebastian Andrzej Siewior
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.