Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp6126656iog; Thu, 23 Jun 2022 11:55:18 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tGPRTHTiGdsjfw9lR+9VdE7JJ9jKCQOKX3pjXMyFXXiFmOpcUw0cEOvs7oE4/ztdLJtPwB X-Received: by 2002:a17:907:7e82:b0:71d:53dc:5c63 with SMTP id qb2-20020a1709077e8200b0071d53dc5c63mr10015332ejc.116.1656010518682; Thu, 23 Jun 2022 11:55:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656010518; cv=none; d=google.com; s=arc-20160816; b=W4Mn6sDT1bGFUBtHMtd82YkPceyKLFeuJZxMKexqwYLeXJcGqoLPxeYqfpgxPThiiQ IiultcTEAQ5cwpYPhJ8PWuWBEhn/Y3zA8fx3gD7f2Y2sXN8b0owA9Q2Og5zBgXCL0x/8 ICcYR7ZynGDY7fjH+CrPXfoiBA3kixVjByAryP9HCktv3bQUasS9WMBv/eaLMICHxHj3 0lYCHIHDzxujUFEKySKzSeOpNQSz112uWRhkWQrqexLzVsf0gzeXIDCxPCbuGhwTlw6l 1ryxNqRLNfT5vLvfxzJsE7z+Af0gM6QOj4+bpRM7SYALP8HEs1qQA/1UFVZk3/gOVFKp t8BQ== 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=JzQ8HJeW1OCy2a+NQFBLyajBLW0YQC7XuuFyHkWyho4=; b=HIlPKBSpf0V/laiMSPapdNYTg9Vl/7Sa5VYkEIrH+cgfwBWeAnL7BZyKnlsVJ2d7xF 5JqDJNQ8Isi6vZMlfaplciunBEWmuQBVAILbdFSzeqzU3e8axfx/3r/q+CGdBJ74S03f 19xD0jaAl+a/0QtNr3EHQ3sIYYQfAY313kMX8T+DvRxen3X8T0heNYmUKBDYZASlKUmW Y+t7UCbXQPf89IbRd7sbmB50esErHMv3Prf2JfHZbVhr7o4kiKAAvO70yMD7i1dUs7zs dujChfbku7aII6zzebFUpKeBo3erGShdNYtm1ceaMbpmt0B4xUVvRONMPpehPrJvipDP aOwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="odo/SLQ/"; 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 i12-20020a1709064fcc00b007175ffc8bcfsi1883530ejw.922.2022.06.23.11.54.52; Thu, 23 Jun 2022 11:55:18 -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="odo/SLQ/"; 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 S235298AbiFWRys (ORCPT + 99 others); Thu, 23 Jun 2022 13:54:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41322 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235393AbiFWRw3 (ORCPT ); Thu, 23 Jun 2022 13:52:29 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E8DB443EE0; Thu, 23 Jun 2022 10:13:02 -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 ams.source.kernel.org (Postfix) with ESMTPS id 91E4EB82480; Thu, 23 Jun 2022 17:13:01 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C84FEC3411B; Thu, 23 Jun 2022 17:12:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1656004380; bh=NQhNWJ1NHThvUxIKw4Ef2+2rvwT+8Bk+F6NZyTtL0Jk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=odo/SLQ/+D4PHP+PgIjBsX8jIq9e9ceBOerYNkNMCv+sDvF1i1dVZqeaNe4p/d5rw 6SPM6P4wdT5oKQlw+9B8SoWq7D+vGM6I3afQURjADapO33fKumT4l4R9BaPESVTBP1 lxEJzHOgdKxfu2AVjOKZztEFTWQRZGkGv5Rh4rGQ= 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 002/234] drivers/char/random.c: constify poolinfo_table Date: Thu, 23 Jun 2022 18:41:09 +0200 Message-Id: <20220623164343.118062372@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 26e0854ab3310bbeef1ed404a2c87132fc91f8e1 upstream. Never modified, might as well be put in .rodata. 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/char/random.c +++ b/drivers/char/random.c @@ -359,7 +359,7 @@ static int random_write_wakeup_bits = 28 * polynomial which improves the resulting TGFSR polynomial to be * irreducible, which we have made here. */ -static struct poolinfo { +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 tap1, tap2, tap3, tap4, tap5;