powerpc: Add missing declaration in asm/drmem.h
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Tue, 8 Mar 2022 19:20:23 +0000 (20:20 +0100)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 5 May 2022 14:00:21 +0000 (00:00 +1000)
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
arch/powerpc/include/asm/drmem.h

index 4265d5e95c2c0a620912316eed5341beaf5e7190..13bf6dee8e2d478b61bacbadb55e1b2b215f8e2a 100644 (file)
@@ -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,