Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp6143229iog; Thu, 23 Jun 2022 12:14:36 -0700 (PDT) X-Google-Smtp-Source: AGRyM1v5D6z7C5Qf+1EaGD17V3WuOGR8LcTkAuykVDlPM41WXkmOlBlPiLN53pqYnNj0E+EkZjCi X-Received: by 2002:a63:258:0:b0:40d:3156:6d61 with SMTP id 85-20020a630258000000b0040d31566d61mr7819842pgc.190.1656011676375; Thu, 23 Jun 2022 12:14:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656011676; cv=none; d=google.com; s=arc-20160816; b=EMWUORyVkBppArv0vEef7a8AbXfjbdn60lgy9dg6yI2qkVdQPcP1t+huS/EHasP7QZ CTnNS2bWWLyKs3w+e0J3DQFEz2GnBCYFW/06eAXfuyRkKHlSVMMR2ydQJhxdHajT/uxs +N+cnESojYiac5H1W4rYHgcUNt29EOs7DvRD7fTHkaPscaov8QbLQGEvNZmW4a49496E t/5IbR6Kv3Y2nMxqQUDNbm70SW/ceQlq4spPvgOEOu4u0OKHU/eBatwRPAqeHsv9ikcd qJ1VpIWCUUvqaP89rBjY8CwnDLc6c4R+5X6sF+ixLFt+ellJrQKtsGTmWeTt/waNlCkY VHng== 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=gi8yfeBZviyIuxO5JxEiBIGhfBqb86DkKBQLfPuWoo0=; b=unF6GnMNAOamqE7iy1EVBVhQtLyUgiqb1CaEtiG2h34loIHaJx2qKKpQ6GoIQw8GdC v0lROAdXWuZJ2jiCG4360KpAq7NsaVNmNus/IHD8yI/gGn0Efi6FR+zSfDQZ9mvbZZwa MvzRugaGDxfSGsFXUy6zpsOZePsI7nM720E/JK2B1h1aJs3RRO/o+WIufzVUpSoSg6en 0OlKp0pQQwpEIYEpXa4OvBCixVQZsFQKJ41tDnasFQagFeYmScuq740/Ka5HTYNp15av Zx+tc0brPyPGTZbGmWQwBlPHA5yKtOKasrxIGIiIs2bBHTqchbyHjkPwDH/tVOLogDFI 3zvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=QGlblKj0; 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 ob18-20020a17090b391200b001e851c352easi3988389pjb.135.2022.06.23.12.14.24; Thu, 23 Jun 2022 12:14:36 -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=QGlblKj0; 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 S232883AbiFWQ5J (ORCPT + 99 others); Thu, 23 Jun 2022 12:57:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48746 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233776AbiFWQvh (ORCPT ); Thu, 23 Jun 2022 12:51:37 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2FA9150B03; Thu, 23 Jun 2022 09:49:41 -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 D10DAB82490; Thu, 23 Jun 2022 16:49:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 25D83C3411B; Thu, 23 Jun 2022 16:49:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1656002978; bh=oybuJme2cmBln+oj51ula7SjNcFLHu41dB7ZU0zJptQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QGlblKj0CokZrI1/v5izy6KMe3x8Gw4rs3oCgOZZtKt/l/9JfuekPGOrNYDLhITHl hg6BBvEBrdGoatpIkyqXb5dCr5NBH5GgQHFgqZqCIp2Q/I2b8/5S++8MbqlKbUred1 EQsluSSM5KIKVLF5GQqpHZO1deEYuZnPnuOoiUOw= 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 038/264] drivers/char/random.c: make primary_crng static Date: Thu, 23 Jun 2022 18:40:31 +0200 Message-Id: <20220623164345.147190185@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 764ed189c82090c1d85f0e30636156736d8f09a8 upstream. Since the definition of struct crng_state is private to random.c, and primary_crng is neither declared or used elsewhere, there's no reason for that symbol to have external linkage. 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 @@ -416,7 +416,7 @@ struct crng_state { spinlock_t lock; }; -struct crng_state primary_crng = { +static struct crng_state primary_crng = { .lock = __SPIN_LOCK_UNLOCKED(primary_crng.lock), };