Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp6147961iog; Thu, 23 Jun 2022 12:20:02 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tngJYrt/nMKRT7W3NOu8oFbxyGvKXyf2v0hZYdTQ30OrmZVpiP3jCXTVZKBB8SxhlA3Zl/ X-Received: by 2002:a17:907:6d86:b0:711:c6d9:999b with SMTP id sb6-20020a1709076d8600b00711c6d9999bmr9998818ejc.505.1656012002033; Thu, 23 Jun 2022 12:20:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656012002; cv=none; d=google.com; s=arc-20160816; b=JiqHx4CtIeqtRDU/J0pS/+lmrK2y2FTA44cn4/6GjtHqHUKq62wuXx4/oqZIOUtl70 ibVmvA77z4Cpx5dwkXjWHoyVxX8nTsWkDufBQdRzUlp8XqlGbaXijXx2GVu4l8lJHAd3 82QrWOb/nYOhNosBPbSt/jFvVeNSbFW4M2wBrHuF+GpUTAYGcVQZ4N2v5dSVYcRDbGhQ h6i7tLqEBi/imccUbJdJUtQRFpa21R4bnL2XPdsrGdOnqexIKbdmSv6gYgpjCmuTshXu Q8eO+ISFnh3X5aG2gT2AdqKCxJIWKFuPcBZrhBLbJEYfE7V/nYTdmLjTvaH5/+K18bPl UsQg== 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=By/bVCqbPGyyN5d9pRqpGn0wz8jLcqwnwnAcqzzCbTI=; b=UrBQYhEeIMzXnO2knTDfcY4lwdM7i5Txq4vvQkYpBsPiFosCn+kK/qd/CtS5Ows0XX zNgLec0uCK4HxRBHhqAPE3yM1kGFr7S4qViraXRkMZXiqgzjyRW2TalRpIgmueWY+nZC db94p+Nh6MB2AX4p0jlkcjPtWtqyjXFL3QQmBG+2MM4FZteQ3dy88cIZ3kK8h93t6T2b aoosiyDXl4XfUWjZ5Ta14xstJIqb0GRyrm08eWUn2muo5imQeihDlmY3cWjGZE8d5Qqq eMQC7RnHdft4Eh/FFUP/0leImKzZRykNJ5k9AZmTfRiD1NSiYhlWrs8iyZy3KLnEBaic k2Qg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=X52KbEDG; 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 y2-20020a50eb02000000b00435d76df983si349317edp.410.2022.06.23.12.19.35; Thu, 23 Jun 2022 12:20:02 -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=X52KbEDG; 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 S235574AbiFWR4Y (ORCPT + 99 others); Thu, 23 Jun 2022 13:56:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41852 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235715AbiFWRxG (ORCPT ); Thu, 23 Jun 2022 13:53:06 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F2123AA308; Thu, 23 Jun 2022 10:13:52 -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 27BC5B824B4; Thu, 23 Jun 2022 17:13:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6F2D7C36AEA; Thu, 23 Jun 2022 17:13:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1656004429; bh=TXlJw9jpEOS1fyd0OpgzA5Jz8hgGqgEotnlXApTzPMk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=X52KbEDGy+e6AoiaxYhUixSlreNTu6jeIXYfPrtSpN+nfW1ACzsXfeRUmJtx29rnA Ps4rLbBiS21gZGxPF+EaSY+AfPSd7JUsDSyzdG1mBcqfwPbqI3nX/SCPSp4rlIA72b 08hp9kBzzwPXN0QlqYKMdhpZYkIqq6MrsyrNRzDE= 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 004/234] drivers/char/random.c: make primary_crng static Date: Thu, 23 Jun 2022 18:41:11 +0200 Message-Id: <20220623164343.175186212@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 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 @@ -415,7 +415,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), };