aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm/drmem.h
diff options
context:
space:
mode:
authorChristophe Leroy <christophe.leroy@csgroup.eu>2022-03-08 20:20:23 +0100
committerMichael Ellerman <mpe@ellerman.id.au>2022-05-06 00:00:21 +1000
commit669df99c957561dddf580ec269fb4255c41dabc1 (patch)
treecbd28aee6b1700f6e5fa48f33452769fa38b5a31 /arch/powerpc/include/asm/drmem.h
parentpowerpc: Include asm/reg.h in asm/svm.h (diff)
downloadlinux-dev-669df99c957561dddf580ec269fb4255c41dabc1.tar.xz
linux-dev-669df99c957561dddf580ec269fb4255c41dabc1.zip
powerpc: Add missing declaration in asm/drmem.h
Don't rely on random inclusion of linux/of.h by users of asm/drmem.h Add a forward declaration of struct property and struct device_node. Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/5643ec410e51b749db0636471cb7979524f9ed0e.1646767214.git.christophe.leroy@csgroup.eu
Diffstat (limited to '')
-rw-r--r--arch/powerpc/include/asm/drmem.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/drmem.h b/arch/powerpc/include/asm/drmem.h
index 4265d5e95c2c..13bf6dee8e2d 100644
--- a/arch/powerpc/include/asm/drmem.h
+++ b/arch/powerpc/include/asm/drmem.h
@@ -23,6 +23,9 @@ struct drmem_lmb_info {
u64 lmb_size;
};
+struct device_node;
+struct property;
+
extern struct drmem_lmb_info *drmem_info;
static inline struct drmem_lmb *drmem_lmb_next(struct drmem_lmb *lmb,