Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp407193imm; Sat, 22 Sep 2018 02:50:03 -0700 (PDT) X-Google-Smtp-Source: ACcGV63Up4KCozrIkAZcs0ji8nebidS8eXkYpajFpX9Cv2nYJNgLWwsadWmpAeLHDFJ+Iz7hAQr6 X-Received: by 2002:a63:1245:: with SMTP id 5-v6mr1633705pgs.299.1537609803329; Sat, 22 Sep 2018 02:50:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537609803; cv=none; d=google.com; s=arc-20160816; b=eAI0AvMqiQakCwdQBuf8yfz7JDG+Qn1cnmObBXNG8qwkeV7i4LRRI6Idl/SQieUaO4 +706lFIrXxKymyCsJkWHEW5yodLoomyoV8JTwO1JZAkwPoNxNSQjnrL5L0GZ5irwR+/i uSI2wk69Hc/3bk4YQBZcPEYnPsjvqqw+F8xbWZwgTL5Buxqzh6QZXi+twrt1/lYiSoQV A3E0k94EQrUYhzJmBd4EtY9ZtrSXZiXmk2hU1MhDcnj9rg6T6oQbu4h0b9OXB6Mv3PtX x9iYZEtZFll2P/NMt6m4dvKm+7OpXTAutcdbXXOBstwgso+s0PdTL0QknfQ8vjIwXIk7 gbOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=qjCl01NlO0gPIcgsqyC4Lr4RckmPrRiWV4/dutDEq60=; b=MEi3+l1bOUNf9CUPWHMQVFMrdEycBfwXhpFK84JDf8yVIx8tt9CDZTOzXty8bC7Vh+ jnb2Drik2g1/yTVNu/CHOiqIc6yGoSzGExQ3j1STtFV+Bd541xnDhKxQTzP1UQyBeDMq B4eWZfp3L6rxULn46W8B1p4WD9yLHRn7JGISq5iDiTqQ2LHS3IjBk2PT1BtUQz6GoZMn OYjzhwJu0nszbrk4Pqm4Mak9S5ayPyKxOkxZHnlUm59Elp2/RCdMsFjaMSbZyUZxrtLn 6oPuFrsRUZFP6jkKUDPJWF53ic89Vmv9Wl4G/MmMHtFE05TeBuMgASJSTyaIeXP+s6qq bagQ== 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 x68-v6si28879305pfc.239.2018.09.22.02.49.47; Sat, 22 Sep 2018 02:50:03 -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 S1728101AbeIVPmJ (ORCPT + 99 others); Sat, 22 Sep 2018 11:42:09 -0400 Received: from smtp1.it.da.ut.ee ([193.40.5.66]:46996 "EHLO smtp1.it.da.ut.ee" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726363AbeIVPmJ (ORCPT ); Sat, 22 Sep 2018 11:42:09 -0400 Received: from math.ut.ee (unknown [IPv6:2001:bb8:2002:2400:5054:ff:fe3b:8db9]) by smtp1.it.da.ut.ee (Postfix) with ESMTP id DB2A790018; Sat, 22 Sep 2018 12:49:08 +0300 (EEST) Received: by math.ut.ee (Postfix, from userid 1014) id AF779220B5E; Sat, 22 Sep 2018 12:49:06 +0300 (EEST) Received: from localhost (localhost [127.0.0.1]) by math.ut.ee (Postfix) with ESMTP id B7818220413; Sat, 22 Sep 2018 12:49:06 +0300 (EEST) Date: Sat, 22 Sep 2018 12:49:06 +0300 (EEST) From: Meelis Roos To: Joel Stanley cc: Krzysztof Kozlowski , Greg Kroah-Hartman , Herbert Xu , Michael Ellerman , Christophe LEROY , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] lib/xz: Put CRC32_POLY_LE in xz_private.h In-Reply-To: <20180921025431.28366-1-joel@jms.id.au> Message-ID: References: <20180921025431.28366-1-joel@jms.id.au> User-Agent: Alpine 2.21 (LRH 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > This fixes a regression introduced by faa16bc404d72a5 ("lib: Use > existing define with polynomial"). > > The cleanup added a dependency on include/linux, which broke the PowerPC > boot wrapper/decompresser when KERNEL_XZ is enabled: > > BOOTCC arch/powerpc/boot/decompress.o > In file included from arch/powerpc/boot/../../../lib/decompress_unxz.c:233, > 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 > ^~~~~~~~~~~~~~~~~~~ > > The powerpc decompresser is a hairy corner of the kernel. Even while building > a 64-bit kernel it needs to build a 32-bit binary and therefore avoid including > files from include/linux. > > This allows users of the xz library to avoid including headers from > 'include/linux/' while still achieving the cleanup of the magic number. > > Fixes: faa16bc404d72a5 ("lib: Use existing define with polynomial") > Reported-by: Meelis Roos > Reported-by: kbuild test robot > Suggested-by: Christophe LEROY > Signed-off-by: Joel Stanley Tested-by: Meelis Roos -- Meelis Roos (mroos@linux.ee)