cxl/ocxl: Prepare cleanup of powerpc's asm/prom.h
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Sat, 2 Apr 2022 09:52:33 +0000 (11:52 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 11 May 2022 13:06:39 +0000 (23:06 +1000)
powerpc's asm/prom.h brings some headers that it doesn't
need itself.

In order to clean it up, first add missing headers in
users of asm/prom.h

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Acked-by: Frederic Barrat <fbarrat@linux.ibm.com>
Acked-by: Andrew Donnellan <ajd@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/a2bae89b280e7a7cb87889635d9911d6a245e780.1648833388.git.christophe.leroy@csgroup.eu
drivers/misc/cxl/api.c
drivers/misc/cxl/cxl.h
drivers/misc/cxl/cxllib.c
drivers/misc/cxl/flash.c
drivers/misc/cxl/guest.c
drivers/misc/cxl/irq.c
drivers/misc/cxl/main.c
drivers/misc/cxl/native.c
drivers/misc/ocxl/afu_irq.c
drivers/misc/ocxl/link.c

index b493de962153ba627af0e3b7dd3f059d5620e91e..d85c5653086357f5e11762d53901e0fdecf8d963 100644 (file)
@@ -12,6 +12,7 @@
 #include <linux/pseudo_fs.h>
 #include <linux/sched/mm.h>
 #include <linux/mmu_context.h>
+#include <linux/irqdomain.h>
 
 #include "cxl.h"
 
index 5dc0f6093f9d92aa267c1f733cc39c848900c3f2..7a6dd91987fd869ce1bee6f8b570f7e06a9c7e34 100644 (file)
@@ -25,6 +25,8 @@
 
 extern uint cxl_verbose;
 
+struct property;
+
 #define CXL_TIMEOUT 5
 
 /*
index 53b9198564269c6ffb6e647a1cc1c54bda833cff..e5fe0a171472fe99d7450347cb47ba3168bd9527 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <linux/hugetlb.h>
 #include <linux/sched/mm.h>
+#include <asm/opal-api.h>
 #include <asm/pnv-pci.h>
 #include <misc/cxllib.h>
 
index 5b93ff51d82a545088d8a9c83bc133bb0fe177e3..eee9decc121ed4467d233f13eb92bb1012661cc7 100644 (file)
@@ -4,6 +4,7 @@
 #include <linux/semaphore.h>
 #include <linux/slab.h>
 #include <linux/uaccess.h>
+#include <linux/of.h>
 #include <asm/rtas.h>
 
 #include "cxl.h"
index 9d485c9e3fff0de8b373292f9c5fff8435e70afa..3321c014913c3a2093dbb3696f8277b1a78de6cc 100644 (file)
@@ -6,6 +6,8 @@
 #include <linux/spinlock.h>
 #include <linux/uaccess.h>
 #include <linux/delay.h>
+#include <linux/irqdomain.h>
+#include <linux/platform_device.h>
 
 #include "cxl.h"
 #include "hcalls.h"
index 4cb829d5d873cae0bade953f7b12b759662c664d..5f0e2dcebb3494b6298694ae2a486b77f1905075 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include <linux/interrupt.h>
+#include <linux/irqdomain.h>
 #include <linux/workqueue.h>
 #include <linux/sched.h>
 #include <linux/wait.h>
index 43b312d06e3efc1cecd1d4a67ff49c5c45004b6a..c1fbf6f588f7af8f2c1e8094b08ea1cc3fd3dfcb 100644 (file)
@@ -15,6 +15,7 @@
 #include <linux/slab.h>
 #include <linux/idr.h>
 #include <linux/pci.h>
+#include <linux/platform_device.h>
 #include <linux/sched/task.h>
 
 #include <asm/cputable.h>
index 1a7f228360416de9e72ee024dc6dd76f42ab35bd..50b0c44bb8d70eaecd68c1c6a3cdd2484245cd2e 100644 (file)
@@ -11,6 +11,7 @@
 #include <linux/mm.h>
 #include <linux/uaccess.h>
 #include <linux/delay.h>
+#include <linux/irqdomain.h>
 #include <asm/synch.h>
 #include <asm/switch_to.h>
 #include <misc/cxl-base.h>
index ecdcfae025b7b35995e42ba6335dc1a9f0076ef3..a06920b7e049a76a79b09d005f5889fd6e5d71a7 100644 (file)
@@ -1,6 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0+
 // Copyright 2017 IBM Corp.
 #include <linux/interrupt.h>
+#include <linux/irqdomain.h>
 #include <asm/pnv-ocxl.h>
 #include <asm/xive.h>
 #include "ocxl_internal.h"
index 9670d02c927f036b19ae69b9105f77ad4641881f..4cf4c55a5f0063a573b9e3d6cc2d1b853831755f 100644 (file)
@@ -6,6 +6,7 @@
 #include <linux/mm_types.h>
 #include <linux/mmu_context.h>
 #include <linux/mmu_notifier.h>
+#include <linux/irqdomain.h>
 #include <asm/copro.h>
 #include <asm/pnv-ocxl.h>
 #include <asm/xive.h>