Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

s390/cio: remove unused include linux/spinlock.h from cio.h

* The linux/spinlock.h header was included indirectly by the decompressor
and brought unnecessary build dependencies.
* Use proper includes in files which either directly or indirectly included
cio.h and were hidden until now by the included linux/spinlock.h, e.g.
linux/string.h for memcpy() or asm/page.h for PAGE_SIZE.

Signed-off-by: Alexander Egorenkov <egorenar@linux.ibm.com>
Acked-by: Heiko Carstens <hca@linux.ibm.com>
Acked-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>

authored by

Alexander Egorenkov and committed by
Heiko Carstens
6040b3f4 256d78d0

+5 -1
+2
arch/s390/boot/mem_detect.c
··· 1 1 // SPDX-License-Identifier: GPL-2.0 2 2 #include <linux/errno.h> 3 3 #include <linux/init.h> 4 + #include <asm/setup.h> 5 + #include <asm/processor.h> 4 6 #include <asm/sclp.h> 5 7 #include <asm/sections.h> 6 8 #include <asm/mem_detect.h>
-1
arch/s390/include/asm/cio.h
··· 5 5 #ifndef _ASM_S390_CIO_H_ 6 6 #define _ASM_S390_CIO_H_ 7 7 8 - #include <linux/spinlock.h> 9 8 #include <linux/bitops.h> 10 9 #include <linux/genalloc.h> 11 10 #include <asm/types.h>
+1
arch/s390/include/asm/ipl.h
··· 12 12 #include <asm/types.h> 13 13 #include <asm/cio.h> 14 14 #include <asm/setup.h> 15 + #include <asm/page.h> 15 16 #include <uapi/asm/ipl.h> 16 17 17 18 struct ipl_parameter_block {
+2
arch/s390/kernel/ipl_vmparm.c
··· 1 1 // SPDX-License-Identifier: GPL-2.0 2 + #include <linux/minmax.h> 3 + #include <linux/string.h> 2 4 #include <asm/ebcdic.h> 3 5 #include <asm/ipl.h> 4 6