Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp283162pxx; Wed, 28 Oct 2020 04:59:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwHsQ7EnannjlK97gMfjNUYnqwbRbWJKlCS0xVaC0ri0SSUpBxpnNFFp64/zAa955Za3Pn1 X-Received: by 2002:aa7:d5d8:: with SMTP id d24mr7677084eds.8.1603886395812; Wed, 28 Oct 2020 04:59:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603886395; cv=none; d=google.com; s=arc-20160816; b=jIMqukG4SH/RqGN0AFyECavo6db4SELfrym2HW5dnGJNBxxxsES2FXh3SpcxGazOQN ztRr5acY7n2snjeQFbjp1IZ0Z5pKP0wQIc0MYLuf4cEPbfGy5v3XmiJDLg6q3r7gX2vs Bsu1rg0+PD5VCOBC3UqOcvvIBe4MMiO717xb/0qc+h/SCMlOGENIIu5D76RVsCFsbEYP JRMXxkxW8ZUBsKZSNyiLqR/zJkuh8sE1IpbTK7BQVFcoxzw5+agbujPdM/KQ6gjM6Zn5 ecP5yBd03qlB7iqyEHJ/n276OAvGlw2cvIh2tD8ggYFaKhbqujGYeGmhKYoyQJMBiKz3 1c4Q== 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=0GdYxDKoblDYKpLIn3dElK1u2xxX592m9NXidq2Sv4yxkZyWMkVOfRIu4n87pN/FkC UzyseP7ZCgiyGNxqyCkRlH04z/w9EdRCd9aMFR2/+mT3sux0IUxW/eol1HKZSFYgk5bv X11KxaEZ1/6GsOaR4M6EAkJRwH+lbcgIZbIflQ+F+AmufYfDRXKkGNGEyz7ESVr5EnWt M2lCu0qCmeD6Fq6SAqAUl0lB1sq6ddEH4zgPkOx3zzfRkTnbWYetDNaLhcWHCZEUuvEa ToXOU3C2TTb6OlC5wh3hhNxwhir21kR/qjj5EXQncqdlwzpUV6H5Aizn8FJ7IxLS/f59 N/Gg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=zCcEuC+T; 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 d4si2698178edr.173.2020.10.28.04.59.33; Wed, 28 Oct 2020 04:59:55 -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=zCcEuC+T; 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 S1794934AbgJ0PO0 (ORCPT + 99 others); Tue, 27 Oct 2020 11:14:26 -0400 Received: from mail.kernel.org ([198.145.29.99]:43968 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1793856AbgJ0PIk (ORCPT ); Tue, 27 Oct 2020 11:08:40 -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 8F89B206E5; Tue, 27 Oct 2020 15:08:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603811320; bh=7FQEsk05nrktPxevnQuGLlkEVqLXai2JYnx/z19yd3w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=zCcEuC+TvKKlnoh7JZL5z9gr3vuOjDP3/M6fikiz9SSFZshC6AlZZg9hLaSZ85W8M ooeQbXczqaJVf6Im53DV9hNf2hK+zZQaK3mqmOc/7Y3j1/YTRyv8f+6YA45GOvYLEp 1fgYf7UJZkIqoFvKqoYq0P9PYJ+IC51VlJSDy5ng= 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.8 420/633] lib/crc32.c: fix trivial typo in preprocessor condition Date: Tue, 27 Oct 2020 14:52:43 +0100 Message-Id: <20201027135542.425026229@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027135522.655719020@linuxfoundation.org> References: <20201027135522.655719020@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