Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp6147514iog; Thu, 23 Jun 2022 12:19:31 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tsYa/RIMKX7B9LNvqq/myWLQC94GAUK5d0GXABhYhTAW2BIGSUfLaWX+r4RkkyQI5OTKxd X-Received: by 2002:a05:6402:11:b0:431:680c:cca1 with SMTP id d17-20020a056402001100b00431680ccca1mr12833883edu.420.1656011971020; Thu, 23 Jun 2022 12:19:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656011971; cv=none; d=google.com; s=arc-20160816; b=DohSHe+sbApMKRQkClUN+R0nXoyfc63LepqIeDC115SNLpz5J7KIvt1fwW5JhqctaC BsXQpCmpfVOg8y4dEjNDBf9hmdil2Lu0QpHQCdY3gExCycibCQUBoxmAgFI7l8R4EjIv zeuBQlwHfrs19NbrcwDpnS8w0XBB1YRMVB0+OuVQ0Bm2e4mb7oV2m6vL3bJRM5+GIHcj g9Aj9nrx75h9bx2yfVihjJ4JHsFlIl2nQVtFk63m55f/dIzirgibW8MQDAFgCt/ymWjc gAUD426i9HUD51khFVk2uaiSQLQ0z78R41ZdxL3prrze/egAf7BDSaLFOkVG7nBsuEmb djFg== 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=BA/y+CTUrLV9ZIsoUvDAC9pLL6mglMzHenSPOXgqlfY=; b=A/1OZmnHEXd6DNOthlXvNXa2c5ESy3MPqt7JA50tlTRXcR9OXgRRhsDqc2RK0hEHcM lZ6k9k3sJw5ODlinuKTRXgWLoyeyinmRjpC91lRnVDUret3mhEBubqmSD2bfsXLROAnh C65DVY19mW3MzFI5l0Sv1fPO+gwaYMYg9zD8dxM1z4W1By/1qFUPyEFQ4eDb5LDPT6ki aE+6jeCXDkvQDyuNwUp3xbWxoEOhV/VVWT7B290JgQ1EbouxJ2ybnqFJRwfLCeWcslN4 VUDJxxMaP4H+ayQkgbljiFnupRBpGFA5ZLIK4zA2d11QTBb6yRbCOwgYvuMUXGFVZ2kY V1uQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="d6kdr27/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m20-20020a056402431400b00435d8d8821bsi574098edc.2.2022.06.23.12.19.05; Thu, 23 Jun 2022 12:19:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="d6kdr27/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235472AbiFWRzw (ORCPT + 99 others); Thu, 23 Jun 2022 13:55:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41324 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235503AbiFWRws (ORCPT ); Thu, 23 Jun 2022 13:52:48 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EAA4E5674F; Thu, 23 Jun 2022 10:13:35 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 6E5F961DD7; Thu, 23 Jun 2022 17:13:35 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3630BC3411B; Thu, 23 Jun 2022 17:13:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1656004414; bh=/Unki+FpIaDGECWe1V9jGlUeejcMaSxiAptWRvMMIjw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=d6kdr27/541QbSE4W808XD8rooiMMlYQTiAq7GHui552HysBo5f3jChwoFnoRuuQS tpkQ1U0hulhg5BUiXK12vwhw7oX5a4TCH0Hudq6eV6DP9vSeqpXh/ApIjm1tr6BXZP NT4la8HSVKrLj7z4/7kPDFjhUwy4nx76OW8rwtdE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Rasmus Villemoes , Theodore Tso , "Jason A. Donenfeld" Subject: [PATCH 4.19 003/234] drivers/char/random.c: remove unused stuct poolinfo::poolbits Date: Thu, 23 Jun 2022 18:41:10 +0200 Message-Id: <20220623164343.146297397@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220623164343.042598055@linuxfoundation.org> References: <20220623164343.042598055@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Rasmus Villemoes commit 3bd0b5bf7dc3ea02070fcbcd682ecf628269e8ef upstream. This field is never used, might as well remove it. Signed-off-by: Rasmus Villemoes Signed-off-by: Theodore Ts'o Signed-off-by: Jason A. Donenfeld Signed-off-by: Greg Kroah-Hartman --- drivers/char/random.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --- a/drivers/char/random.c +++ b/drivers/char/random.c @@ -295,7 +295,7 @@ * To allow fractional bits to be tracked, the entropy_count field is * denominated in units of 1/8th bits. * - * 2*(ENTROPY_SHIFT + log2(poolbits)) must <= 31, or the multiply in + * 2*(ENTROPY_SHIFT + poolbitshift) must <= 31, or the multiply in * credit_entropy_bits() needs to be 64 bits wide. */ #define ENTROPY_SHIFT 3 @@ -360,8 +360,8 @@ static int random_write_wakeup_bits = 28 * irreducible, which we have made here. */ static const struct poolinfo { - int poolbitshift, poolwords, poolbytes, poolbits, poolfracbits; -#define S(x) ilog2(x)+5, (x), (x)*4, (x)*32, (x) << (ENTROPY_SHIFT+5) + int poolbitshift, poolwords, poolbytes, poolfracbits; +#define S(x) ilog2(x)+5, (x), (x)*4, (x) << (ENTROPY_SHIFT+5) int tap1, tap2, tap3, tap4, tap5; } poolinfo_table[] = { /* was: x^128 + x^103 + x^76 + x^51 +x^25 + x + 1 */