Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp1113555pxx; Tue, 27 Oct 2020 08:32:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz/J4QY5PuzsuR8+rQr5Wh5B2SnIf4Liz1WABOcCP7PUhXtQKjAVYukIauaVM/TdfUBXDDs X-Received: by 2002:a17:906:ce21:: with SMTP id sd1mr3011400ejb.4.1603812769475; Tue, 27 Oct 2020 08:32:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603812769; cv=none; d=google.com; s=arc-20160816; b=sZgqtIr9eg0JJg4UjxU2qDCk9iatlQeC37DBAflW58IVtHxlq1g7FklTU6AT6HfU1t xAbgRbEFV0ALfNyKV+5sz0qieJBj7iVLVTBMLthcS6bK+fQYueYIbgISdHZivJvjWfB+ niHWlRJUFn+VyVfk6nORwOkWojJQt9nbxb1S1HgpsSKXKfBF3Sb2HSo9WAwd7KxZ92Rf a1Hrqkqfj6+KMZ+ZljbQLGFRZwtRJvVXwztVq1h/bUGMTQKO0Mam53o2+pgd3B6WTYLI IDd//H0TG++QIDkCQLK2XvgLHSxS1MqaJNSLNRZKc3dCDvVxRXRdbwQg2Ivrq+rroZP1 nRHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=1WoBytHyjvFwZHHRs851wyboptQMFrwvfgRuf267/K4=; b=zaCNYqnAbEhq00KbhW0pJGqb1/ADFvwnFl0sd2Edg2Dj9rPDUqUMaFYN2Jc0kVnrps 3IsEGEeZN/9XrStnMnRouqyTrW0XHzKtdZz+fGLp63Z2YhW1UEPJ0PXEqQT+WOxPsV9s +frOdyx0F0X1uS28bV7hqBGTN3aTo8GDf1/jnKI09FFuhc/VXoQuUTTmz0nfDYUeFGCh rMciIyVJg1q1bL0/0/+jI7OK1Eiy8jJJxRvY7zpkQkEve7XelR7CTzATpA7Gs08DQVPs KNl3CYTHehXikG25LeouiRxgVN05/ioTtbTr9ZWj77eED2tDI4wDDxMXEdqbU7dgtfLx ySqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Gx2rkqkV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d7si1249019ejk.598.2020.10.27.08.32.27; Tue, 27 Oct 2020 08:32:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Gx2rkqkV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2899534AbgJ0Ol4 (ORCPT + 99 others); Tue, 27 Oct 2020 10:41:56 -0400 Received: from mail.kernel.org ([198.145.29.99]:39298 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1761579AbgJ0OkD (ORCPT ); Tue, 27 Oct 2020 10:40:03 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 72ADA207BB; Tue, 27 Oct 2020 14:40:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603809603; bh=7FQEsk05nrktPxevnQuGLlkEVqLXai2JYnx/z19yd3w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Gx2rkqkVc2mq6XUPhSz0gPtZW69In8xWf/9asq6lJDaQwIxqiD5Kp8HSRgTWrNcRx 64uAimf9vAGbtfv0OzvPGF+turV0rTF/VXzVc0NYkKQHd3a1W/AVhzqazTA0gXihCO a6MZ45xD7d+eyZNcb7NeNXMd1vBdGFM5K17dR8ac= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Tobias Jordan , Andrew Morton , Krzysztof Kozlowski , Jonathan Corbet , Mauro Carvalho Chehab , Linus Torvalds , Sasha Levin Subject: [PATCH 5.4 255/408] lib/crc32.c: fix trivial typo in preprocessor condition Date: Tue, 27 Oct 2020 14:53:13 +0100 Message-Id: <20201027135506.872244534@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027135455.027547757@linuxfoundation.org> References: <20201027135455.027547757@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Tobias Jordan [ Upstream commit 904542dc56524f921a6bab0639ff6249c01e775f ] Whether crc32_be needs a lookup table is chosen based on CRC_LE_BITS. Obviously, the _be function should be governed by the _BE_ define. This probably never pops up as it's hard to come up with a configuration where CRC_BE_BITS isn't the same as CRC_LE_BITS and as nobody is using bitwise CRC anyway. Fixes: 46c5801eaf86 ("crc32: bolt on crc32c") Signed-off-by: Tobias Jordan Signed-off-by: Andrew Morton Cc: Krzysztof Kozlowski Cc: Jonathan Corbet Cc: Mauro Carvalho Chehab Link: https://lkml.kernel.org/r/20200923182122.GA3338@agrajag.zerfleddert.de Signed-off-by: Linus Torvalds Signed-off-by: Sasha Levin --- lib/crc32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/crc32.c b/lib/crc32.c index 4a20455d1f61e..bf60ef26a45c2 100644 --- a/lib/crc32.c +++ b/lib/crc32.c @@ -331,7 +331,7 @@ static inline u32 __pure crc32_be_generic(u32 crc, unsigned char const *p, return crc; } -#if CRC_LE_BITS == 1 +#if CRC_BE_BITS == 1 u32 __pure crc32_be(u32 crc, unsigned char const *p, size_t len) { return crc32_be_generic(crc, p, len, NULL, CRC32_POLY_BE); -- 2.25.1