Re: arch/powerpc/boot/../../../lib/xz/xz_crc32.c:18:10: fatal error: linux/crc32poly.h: No such file or directory

From: Krzysztof Kozlowski
Date: Wed Sep 19 2018 - 02:42:57 EST


On Wed, 19 Sep 2018 at 05:57, kbuild test robot <lkp@xxxxxxxxx> wrote:
>
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head: 5211da9ca526a5adddee1ccd078e6e33a583ab36
> commit: faa16bc404d72a5afb857c924c83a5f691f83386 lib: Use existing define with polynomial
> date: 8 weeks ago
> config: powerpc-skiroot_defconfig (attached as .config)
> compiler: powerpc64-linux-gnu-gcc (Debian 7.2.0-11) 7.2.0
> reproduce:
> wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
> chmod +x ~/bin/make.cross
> git checkout faa16bc404d72a5afb857c924c83a5f691f83386
> # save the attached .config to linux build tree
> GCC_VERSION=7.2.0 make.cross ARCH=powerpc
>
> All errors (new ones prefixed by >>):
>
> 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:10: fatal error: linux/crc32poly.h: No such file or directory
> #include <linux/crc32poly.h>
> ^~~~~~~~~~~~~~~~~~~
> compilation terminated.
>
> vim +18 arch/powerpc/boot/../../../lib/xz/xz_crc32.c
>
> > 18 #include <linux/crc32poly.h>
> 19 #include "xz_private.h"
> 20

Just for the record, fixed some time ago here:
https://patchwork.ozlabs.org/patch/963258/

Best regards,
Krzysztof