Skip to content

Commit db6882e

Browse files
krzkopsiff
authored andcommitted
powerpc/boot: Fix missing crc32poly.h when building with KERNEL_XZ
After commit faa16bc ("lib: Use existing define with polynomial") the lib/xz/xz_crc32.c includes a header from include/linux directory thus any other user of this code should define proper include path. This fixes the build error on powerpc with CONFIG_KERNEL_XZ: In file included from ../arch/powerpc/boot/../../../lib/decompress_unxz.c:233:0, from ../arch/powerpc/boot/decompress.c:42: ../arch/powerpc/boot/../../../lib/xz/xz_crc32.c:18:29: fatal error: linux/crc32poly.h: No such file or directory Reported-by: Michal Kubecek <mkubecek@suse.cz> Fixes: faa16bc ("lib: Use existing define with polynomial") Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org> Reported-by: kbuild test robot <lkp@intel.com> Reported-by: Meelis Roos <mroos@linux.ee> Tested-by: Michal Kubecek <mkubecek@suse.cz> Link: deepin-community#534 (cherry picked from commit 9ba3135758564489a9db0f7c70124c876283e401) Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
1 parent ab7ad88 commit db6882e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/powerpc/boot/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ BOOTCFLAGS += -fno-stack-protector
9898
endif
9999

100100
BOOTCFLAGS += -include $(srctree)/include/linux/compiler_attributes.h
101-
BOOTCFLAGS += -I$(objtree)/$(obj) -I$(srctree)/$(obj)
101+
BOOTCFLAGS += -I$(objtree)/$(obj) -I$(srctree)/$(obj) -I$(srctree)/include
102102

103103
DTC_FLAGS ?= -p 1024
104104

0 commit comments

Comments
 (0)