Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp164937pxx; Wed, 28 Oct 2020 01:17:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJygSvS3taJWWwzEMPjGkTKmtdkCbbW1oEC91Tg7CmqJpBR8G1HwnL63+j0DodLVD7eRhVN0 X-Received: by 2002:a17:906:1418:: with SMTP id p24mr6367739ejc.46.1603873053162; Wed, 28 Oct 2020 01:17:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603873053; cv=none; d=google.com; s=arc-20160816; b=0xcmEG1NlaFeDx6t4sk5wJ1hJUqvKq7t6Zha1u3OxRrK/tj6SJjsY60X+ka6g1MEHc IpFugD3Me3D50Vq4lEtQYl3JWfUlaI2PWBHAMzRHe8Y24ixQ8OA6iR6fiLiM2o5Sbj+I Pw4JzIatp3njnMp6WyCXUDFKwHJWhR/ZSPs0AhKiJbxnVn+NT4CmU491WYH8qUP6K4AO mr9sZa88xhMpfjM0cWdGpPA2DOQsJG3MT6rlsymAv3fNb0ihz99ZBTuW5v6GRUr8cVOx qLeUZCuup/2dxouSWTCbRxVuM7GZIm8u27/1jaR9Dg71ljxSKGcWEkrUMUXlqxnMILHS bW9A== 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=XBLdQrLYcrlIbsxgo9nEevkp1T7s5lkJ7NrvZyCnyb8=; b=iPtTJ4s/Dm3TJ+ZQW/H1ijpw10QQYL+dFq/DXX9vFaU24CVt5GL+WzvM6Ack8NLL2P EwnmI7/9C1Urc2+UHgACx8W6hsR1n2daUDXtRMGIjemDxjVkrHi2VRlkcNeNlRBNUIM8 c8zec2iQXcN9aryR088Uu2Ijy4Ko+71jJU4pmVTPP/+b2Hul1OLqjKBauOSo/aYQlqu5 MzrenvJLHdPcrfSRkj1yJ+BBvUeXuCicK3x6Y5cyVk8CgTbfpOCf97AqzM7I/LNKk3aG SXxKHy45h5fGfmBwG04fCNxHs9g0OJCQLV4y85Tk04yyZfOjVLdBXIApvA1MR31f95VH vhXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=tFyUhQ8g; 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 s18si2795558ejd.147.2020.10.28.01.17.11; Wed, 28 Oct 2020 01:17:33 -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=tFyUhQ8g; 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 S1753705AbgJ0OBd (ORCPT + 99 others); Tue, 27 Oct 2020 10:01:33 -0400 Received: from mail.kernel.org ([198.145.29.99]:48312 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753121AbgJ0OAr (ORCPT ); Tue, 27 Oct 2020 10:00:47 -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 D173421D7B; Tue, 27 Oct 2020 14:00:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603807247; bh=ZkiRQcaVo3qKjumz3JxIJds4zcN7mofal40zt0hjD4g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tFyUhQ8gQ0aKlPNTcyqJDcp/YxhczdppPEn21MSgI0jyM2Q5pC4qlLpF0j4Lv1M3U qKbO6ZeUavFrZRub1AcXQyJKc0wnPrl/Or4nvLVepu3TBUN3CTevHFCGVnuQLOzpPl ynVUy96L3Ssmvl2h/xBf5viNr4VqWzfqsgvWfFAc= 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 4.4 066/112] lib/crc32.c: fix trivial typo in preprocessor condition Date: Tue, 27 Oct 2020 14:49:36 +0100 Message-Id: <20201027134903.688205971@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027134900.532249571@linuxfoundation.org> References: <20201027134900.532249571@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 9a907d489d951..eed675bcd6751 100644 --- a/lib/crc32.c +++ b/lib/crc32.c @@ -327,7 +327,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, CRCPOLY_BE); -- 2.25.1