powerpc: Include asm/firmware.h in all users of firmware_has_feature()
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Fri, 6 May 2022 09:14:24 +0000 (11:14 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 29 Jun 2022 06:45:05 +0000 (16:45 +1000)
Trying to remove asm/ppc_asm.h from all places that don't need it
leads to several failures linked to firmware_has_feature().

To fix it, include asm/firmware.h in all files using
firmware_has_feature()

All users found with:

git grep -L "firmware\.h" ` git grep -l "firmware_has_feature("`

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/11956ec181a034b51a881ac9c059eea72c679a73.1651828453.git.christophe.leroy@csgroup.eu
14 files changed:
arch/powerpc/include/asm/book3s/64/hugetlb.h
arch/powerpc/include/asm/cputime.h
arch/powerpc/include/asm/interrupt.h
arch/powerpc/include/asm/mman.h
arch/powerpc/include/asm/prom.h
arch/powerpc/kernel/dawr.c
arch/powerpc/kexec/core.c
arch/powerpc/kvm/book3s_64_mmu_radix.c
arch/powerpc/kvm/book3s_hv_nested.c
arch/powerpc/mm/book3s64/hash_pgtable.c
arch/powerpc/mm/book3s64/pkeys.c
arch/powerpc/mm/hugetlbpage.c
arch/powerpc/platforms/pseries/papr_platform_attributes.c
arch/powerpc/platforms/pseries/vas.c

index b37a28f62cf6c2a7dc7de68c337d1ef166783829..aa1c67c8bfc8b60cd676852303804129f600e3de 100644 (file)
@@ -1,6 +1,9 @@
 /* SPDX-License-Identifier: GPL-2.0 */
 #ifndef _ASM_POWERPC_BOOK3S_64_HUGETLB_H
 #define _ASM_POWERPC_BOOK3S_64_HUGETLB_H
+
+#include <asm/firmware.h>
+
 /*
  * For radix we want generic code to handle hugetlb. But then if we want
  * both hash and radix to be enabled together we need to workaround the
index 504f7fe6711a32783b148e9e59734a78bf4f3b97..6d2b279974929237dab43ac03eef633c8a1a8926 100644 (file)
@@ -19,6 +19,7 @@
 #include <asm/div64.h>
 #include <asm/time.h>
 #include <asm/param.h>
+#include <asm/firmware.h>
 
 typedef u64 __nocast cputime_t;
 typedef u64 __nocast cputime64_t;
index b14f54d789d2cff9544d33733c4d1ee1de022ba9..8069dbc4b8d185ea81c89eda2449b4dda0b55f6e 100644 (file)
@@ -69,6 +69,7 @@
 #include <linux/context_tracking.h>
 #include <linux/hardirq.h>
 #include <asm/cputime.h>
+#include <asm/firmware.h>
 #include <asm/ftrace.h>
 #include <asm/kprobes.h>
 #include <asm/runlatch.h>
index 1b024e64c8eca80038aea9817941ea33ceed6db1..17a77d47ed6d6479d8201b332800236b438a3b0d 100644 (file)
@@ -12,6 +12,7 @@
 #include <linux/mm.h>
 #include <linux/pkeys.h>
 #include <asm/cpu_has_feature.h>
+#include <asm/firmware.h>
 
 static inline unsigned long arch_calc_vm_prot_bits(unsigned long prot,
                unsigned long pkey)
index 5c80152e8f188eace12c42df8ca7852fb6101c74..6f109b5cb84e84251d5411636e0463359b952ade 100644 (file)
@@ -14,6 +14,7 @@
 #include <linux/types.h>
 #include <asm/irq.h>
 #include <linux/atomic.h>
+#include <asm/firmware.h>
 
 /* These includes should be removed once implicit includes are cleaned up. */
 #include <linux/of.h>
index 30d4eca88d174d25743fed5198194b17c0e09ae2..909a05cd2809dbd18dbeeac65af44ec216cc1851 100644 (file)
@@ -11,6 +11,7 @@
 #include <linux/debugfs.h>
 #include <asm/machdep.h>
 #include <asm/hvcall.h>
+#include <asm/firmware.h>
 
 bool dawr_force_enable;
 EXPORT_SYMBOL_GPL(dawr_force_enable);
index 9773dd0640f35cbde55a0d2e10fe63b044ff934b..cf84bfe9e27e57a631540278d8c5bce0f30e400a 100644 (file)
@@ -20,6 +20,7 @@
 #include <asm/pgalloc.h>
 #include <asm/sections.h>
 #include <asm/setup.h>
+#include <asm/firmware.h>
 
 void machine_kexec_mask_interrupts(void) {
        unsigned int i;
index 42851c32ff3bee0eb576b3d90c768fa7313f247c..9d4b3feda3b6ce2a946eb62c3b51f48d592cbee7 100644 (file)
@@ -22,6 +22,7 @@
 #include <asm/ultravisor.h>
 #include <asm/kvm_book3s_uvmem.h>
 #include <asm/plpar_wrappers.h>
+#include <asm/firmware.h>
 
 /*
  * Supported radix tree geometry.
index 0644732d1a2569dded4a81c7f9e48a0584ba5e80..be8249cc61078179d7647cff94a7d63c219db091 100644 (file)
@@ -20,6 +20,7 @@
 #include <asm/pte-walk.h>
 #include <asm/reg.h>
 #include <asm/plpar_wrappers.h>
+#include <asm/firmware.h>
 
 static struct patb_entry *pseries_partition_tb;
 
index 2e0cad5817bafe7480e556e421819f69bbf90465..ae008b9df0e670ffd7ef3a61dcf27725129c5051 100644 (file)
@@ -13,6 +13,7 @@
 #include <asm/sections.h>
 #include <asm/mmu.h>
 #include <asm/tlb.h>
+#include <asm/firmware.h>
 
 #include <mm/mmu_decl.h>
 
index 753e62ba67af61c08adcb684083f480119f19b40..1d2675ab6711dd91ab9a5e21dc009b6d65ff22c6 100644 (file)
@@ -10,6 +10,7 @@
 #include <asm/mmu.h>
 #include <asm/setup.h>
 #include <asm/smp.h>
+#include <asm/firmware.h>
 
 #include <linux/pkeys.h>
 #include <linux/of_fdt.h>
index b282af39fcf671ec7c8aa736c248037dea2ccd67..bc84a594ca62cb90cd6fe6056972fa5b2583c3c6 100644 (file)
@@ -24,6 +24,7 @@
 #include <asm/setup.h>
 #include <asm/hugetlb.h>
 #include <asm/pte-walk.h>
+#include <asm/firmware.h>
 
 bool hugetlb_disabled = false;
 
index 515150417bb3634b02b94154029cf233b3855da1..526c621b098bece600fdfe72de1c4f53697d33f5 100644 (file)
@@ -22,6 +22,7 @@
 
 #include <asm/hvcall.h>
 #include <asm/machdep.h>
+#include <asm/firmware.h>
 
 #include "pseries.h"
 
index 500a1fc4a1d7d524191bbf0126673d497f4f8635..91e7eda0606cc90f19072ecdbda3ea4ef2c8816d 100644 (file)
@@ -16,6 +16,7 @@
 #include <asm/machdep.h>
 #include <asm/hvcall.h>
 #include <asm/plpar_wrappers.h>
+#include <asm/firmware.h>
 #include <asm/vas.h>
 #include "vas.h"