Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp6031140iog; Thu, 23 Jun 2022 09:56:05 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vmDfGglHAv80upB+wCfZ5FgQGCeMhCSktaV1t1W/17B5r16n3NaaGyWuvA8ElPNFvhsyoL X-Received: by 2002:a17:907:1b20:b0:6da:649b:d99e with SMTP id mp32-20020a1709071b2000b006da649bd99emr9057219ejc.712.1656003365208; Thu, 23 Jun 2022 09:56:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656003365; cv=none; d=google.com; s=arc-20160816; b=Kj+dVPEh0qqiJnRGsOA0kZFCnzhAozmud5TsX3oVHYluYVAMgy8D1Od8Ln+0JVu0Qm r57jiCBeKjJbSRMCLWmvtG3v+CifHc82jNXfE8RUnhi4EZ8qkttvGgb2zOItyK3BQzMF AF4H953WbNaNwJTfI0dYQ094YgLZ86FWmktM0DDrkrOa/pw/vWXaLiqC6qJWaOx8i5cO gUnuB06/jLNjprjcAiLMoKDGXyPUathCZefnSeC+/e1IUBxspI7PrfNGu3fdOBo/UGKy DYj8tPotva/vjkJo1kgCrLZ2Hjbzpxoro1VWWGEDn7NQquNEcaZ6D8bPYAUk5Ma8/oTK Zxgw== 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=yzNi5miktysBYFGOHKT6/mjQcqMks9G7PLdv93CfFzI=; b=emldtFutFipRCXgSWVciclcqCmY8CP1Uqo5JHz3gXFwn1oe9MgOiHBEoG038lVWM/9 U0Ats329uZJaBCUs/DmP8pmPjE3BwWbin39BDbPvIqPBcGlTSpKAjAVs83QN6T3E5+Uv 6em3/r8H0C1ziDiBJ7I+FKgt7mla5JfThcMp4fioZIfEBU4tBmxfjPCJ32bt1/5N0AgI r/lydUqsxQetIuVh6aE+yqomWuk3PpfeqpNr0vjuNPMYKufn5RI2rlamkaNRxYGSxuLl GEM444/5U2km79iSkgI8tjRrAfN4s/sdq0ue1hWFq8vnKE/IPjYS1OmSXR6KSzKDmjHd eKqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=a5hEjP9I; 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 o3-20020a056402438300b004359a5259e5si42760edc.561.2022.06.23.09.55.39; Thu, 23 Jun 2022 09:56:05 -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=a5hEjP9I; 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 S232718AbiFWQsL (ORCPT + 99 others); Thu, 23 Jun 2022 12:48:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48158 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232704AbiFWQrG (ORCPT ); Thu, 23 Jun 2022 12:47:06 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 150E845ACF; Thu, 23 Jun 2022 09:47:06 -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 A043A61F90; Thu, 23 Jun 2022 16:47:05 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7A4C2C341C7; Thu, 23 Jun 2022 16:47:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1656002824; bh=kearN7w/MwoeBu6uvpGtIJ06rClrK2mOUgNbB0LLO1E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=a5hEjP9IREkjnOupAKWqeo1SxG9eX5a85kfGHe04JGLELmp//sXYTcejXP5BC/Vu2 GA+SqVbK22aNAXnuJHEbL9dYCEz/SztIQ6fXDwDXNAO1UQc4V7mY/f7wvGkiS18gfk /M33kRc9p7VlXB7Zd6eM13fEsHzLG+dwgJvTY660= 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.9 037/264] drivers/char/random.c: remove unused stuct poolinfo::poolbits Date: Thu, 23 Jun 2022 18:40:30 +0200 Message-Id: <20220623164345.118733784@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220623164344.053938039@linuxfoundation.org> References: <20220623164344.053938039@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 @@ -296,7 +296,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 @@ -361,8 +361,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 */