]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/book3e: Fix build error
authorYueHaibing <yuehaibing@huawei.com>
Tue, 17 May 2022 09:48:30 +0000 (17:48 +0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 22 May 2022 05:58:29 +0000 (15:58 +1000)
commit3867dbd3e00449dc526ebc3bc75ad3c803284dee
tree769af8c31bef0fe8d0e2dca635ced4b45a5034cd
parentface7150f53c09ae7223f1d4f9ecc2d89106c3b2
powerpc/book3e: Fix build error

arch/powerpc/mm/nohash/fsl_book3e.c: In function ‘relocate_init’:
arch/powerpc/mm/nohash/fsl_book3e.c:348:2: error: implicit declaration of function ‘early_get_first_memblock_info’
  early_get_first_memblock_info(__va(dt_ptr), &size);
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Add missing include file linux/of_fdt.h to fix this.

Fixes: 5c414ed7f128 ("powerpc: Remove asm/prom.h from all files that don't need it")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Reviewed-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220517094830.27560-1-yuehaibing@huawei.com
arch/powerpc/mm/nohash/fsl_book3e.c