Skip to content

Commit 9e86035

Browse files
committed
m68knommu: Remove mm.h include from uaccess_no.h
In file included from include/linux/huge_mm.h:8, from include/linux/mm.h:567, from arch/m68k/include/asm/uaccess_no.h:8, from arch/m68k/include/asm/uaccess.h:3, 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:7, 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]; Removing the include of linux/mm.h from the uaccess header solves the problem and various build tests of nommu configurations still work. Fixes: 80fbaf1 ("rcuwait: Add @State argument to rcuwait_wait_event()") Reported-by: kbuild test robot <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Acked-by: Geert Uytterhoeven <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
1 parent 8bf6c67 commit 9e86035

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

arch/m68k/include/asm/uaccess_no.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
/*
66
* User space memory access functions
77
*/
8-
#include <linux/mm.h>
98
#include <linux/string.h>
109

1110
#include <asm/segment.h>

0 commit comments

Comments
 (0)