]> git.dujemihanovic.xyz Git - linux.git/commitdiff
s390/cio: remove unused include linux/spinlock.h from cio.h
authorAlexander Egorenkov <egorenar@linux.ibm.com>
Tue, 15 Jun 2021 07:20:26 +0000 (09:20 +0200)
committerHeiko Carstens <hca@linux.ibm.com>
Tue, 27 Jul 2021 07:39:13 +0000 (09:39 +0200)
* 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>
arch/s390/boot/mem_detect.c
arch/s390/include/asm/cio.h
arch/s390/include/asm/ipl.h
arch/s390/kernel/ipl_vmparm.c

index 4e17adbde4954d3ea177e293aa49f1ee963b63ac..ef15ea5284e0fc39152ad0ea0337761d317ff611 100644 (file)
@@ -1,6 +1,8 @@
 // SPDX-License-Identifier: GPL-2.0
 #include <linux/errno.h>
 #include <linux/init.h>
+#include <asm/setup.h>
+#include <asm/processor.h>
 #include <asm/sclp.h>
 #include <asm/sections.h>
 #include <asm/mem_detect.h>
index f58c92f28701ff2a445f781800fb0b75685cd67d..1effac6a01520de46093dd4a0483eb8f0a97bc44 100644 (file)
@@ -5,7 +5,6 @@
 #ifndef _ASM_S390_CIO_H_
 #define _ASM_S390_CIO_H_
 
-#include <linux/spinlock.h>
 #include <linux/bitops.h>
 #include <linux/genalloc.h>
 #include <asm/types.h>
index a9e2c7295b3518e91db012b6d0a06077c0b6fed5..3f8ee257f9aa3629e33efa472722ee895c9e6daa 100644 (file)
@@ -12,6 +12,7 @@
 #include <asm/types.h>
 #include <asm/cio.h>
 #include <asm/setup.h>
+#include <asm/page.h>
 #include <uapi/asm/ipl.h>
 
 struct ipl_parameter_block {
index af43535a976df3647f487475415efbf1d6638c6d..b5245fadcfb03991ac832e8ef46f5104462f1416 100644 (file)
@@ -1,4 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0
+#include <linux/minmax.h>
+#include <linux/string.h>
 #include <asm/ebcdic.h>
 #include <asm/ipl.h>