Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp432466imm; Wed, 29 Aug 2018 03:46:51 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbD1u7FdWQGGWlF1Ux8tuCXCR1WeMBGMgjWqfYP8CnrvZYYPB9QeNSK7I+swQhLfvgj/XvU X-Received: by 2002:a63:5660:: with SMTP id g32-v6mr5076333pgm.227.1535539611846; Wed, 29 Aug 2018 03:46:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535539611; cv=none; d=google.com; s=arc-20160816; b=Y5bNB1M5fPmAC/r/zLX1yUdDpt0yS9c0aMcdVkzqXLm0wRWS8td65Su388mIDa5h/Q FYB2p/ucjVHyzp4i9l9pI4pm7e3MsjjFiWreTKgrxSRdsqtbGJ/CULC8yl0/ppn7NpeC jNejR50Wh7aUfOIrDNAerZia1bm5wz5+md1RB361JoUaInhWg2Ae9iL4EfIEA0GfbWsF oN80NpgriAO3x6O2TSRNq/G3EIAmyXa2YAAaUZRJvaFjmQD7jmifSIWHwK3vfcP04gCZ H1KwJ6zCRm8yZ4TtaRAG5k1jEpykOPJrKh+M6rvyd/+UMlmX4s7NGLAFZKtiWaJmqrxa enMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=3SMgkSo0OPga4L1Rw1GT8sUtzLLi7whyxNRq2LCGmwk=; b=MLTt1G3R4sIOgL/Hd0Aqr6R3P8KGlsr/du9KoevBAjEyTG+GMj6LXoejdG36Pej+Vw VMkdWhMbNklL+QPOlNHxIm4wb9nl5gOQJwhm2kalJvk3YmOOQWM/+rZjvhcOtpjYF5wD HC5U0rBVOLwI5QD1IE7ga1qwzi2ULpabtAlo69yW9tziwiHNU0S0kXIyPEKv9yvDxeTi jyMKvzo/7SoheDFjlkPbOhpyjQrcs2q/U6LTMwgYGZBdcoVbj4m+qHFa1zRTG3vebJU3 mOd0FL3Xo9AJ85wm99y9KF+aFWKGRAVOJsxSjz2MzbVQ4OHxTCdWghNg8dmgYw14owBd hcrg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h16-v6si81259plr.343.2018.08.29.03.46.36; Wed, 29 Aug 2018 03:46:51 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727335AbeH2Olt (ORCPT + 99 others); Wed, 29 Aug 2018 10:41:49 -0400 Received: from mx2.suse.de ([195.135.220.15]:36914 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726858AbeH2Olt (ORCPT ); Wed, 29 Aug 2018 10:41:49 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id ACDAAAEEA; Wed, 29 Aug 2018 10:45:30 +0000 (UTC) Received: by unicorn.suse.cz (Postfix, from userid 1000) id D98D6A0F35; Wed, 29 Aug 2018 12:45:28 +0200 (CEST) Date: Wed, 29 Aug 2018 12:45:28 +0200 From: Michal Kubecek To: Krzysztof Kozlowski Cc: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [RFT] powerpc/boot: Fix missing crc32poly.h when building with KERNEL_XZ Message-ID: <20180829104528.GA4444@unicorn.suse.cz> References: <1535527943-32566-1-git-send-email-krzk@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1535527943-32566-1-git-send-email-krzk@kernel.org> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 29, 2018 at 09:32:23AM +0200, Krzysztof Kozlowski wrote: > After commit faa16bc404d7 ("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 > Fixes: faa16bc404d7 ("lib: Use existing define with polynomial") > Signed-off-by: Krzysztof Kozlowski > > --- > > Only compile tested. > --- > arch/powerpc/boot/Makefile | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/powerpc/boot/Makefile b/arch/powerpc/boot/Makefile > index 0fb96c26136f..ba4182fb185d 100644 > --- a/arch/powerpc/boot/Makefile > +++ b/arch/powerpc/boot/Makefile > @@ -63,7 +63,7 @@ ifeq ($(call cc-option-yn, -fstack-protector),y) > BOOTCFLAGS += -fno-stack-protector > endif > > -BOOTCFLAGS += -I$(objtree)/$(obj) -I$(srctree)/$(obj) > +BOOTCFLAGS += -I$(objtree)/$(obj) -I$(srctree)/$(obj) -I$(srctree)/include > > DTC_FLAGS ?= -p 1024 > > -- > 2.7.4 > With this patch 4.19-rc1 builds and boots on ppc64le. Thank you. Tested-by: Michal Kubecek