Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp594334pxb; Tue, 15 Feb 2022 23:11:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJzts4zE2eBF4j0gVyHtpKhlt7eJOkBTIPk+wK5meJ7q9KvzAtcc7mCQzEIwWfoMXqETG0xa X-Received: by 2002:a17:902:dace:b0:14e:e471:a9c3 with SMTP id q14-20020a170902dace00b0014ee471a9c3mr1537438plx.49.1644995485749; Tue, 15 Feb 2022 23:11:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644995485; cv=none; d=google.com; s=arc-20160816; b=uJaGzSY2GCSshmvO03SGfzUEK4r2ak77lGT27ehm/7GhAu2PpG73qK2+hdDqxBJcqv pvAkmdm7IDbwNUuU17R0gx8yaeiMJg3B1i4WBFd50HFBvWBXBH6JEKDsGCJOEQpNGLgC kouTUierP76dFjxXH6Z40Ou2D5RKkwWUaiG0woWF0eaz0T+nrJk3FZKiCfbqghszmtSf 8mWuwqV1uxG2xg1M9og8ZOHrhFRB2CzEKARFnliBzaenwYUt25lua/SmovkdHE+6gf0o 3pcGSJYfTtM/lI0qewgngzlacsNf7pHAoJzFKbSuRv2wEyDkQ5WSn6BBgLUKf/KjU2Gi L6JQ== 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 :message-id:date:subject:cc:to:from; bh=SEGTPqWJUoRmjhGLhoCc+h7zltj7bFAqNfNKdhIS7vA=; b=RTO95ocGnVB1sRCMtjaWy0uiaxvwoCBF4z2WbLnHKZPM19F4LBESZc11Y8yQPtCnyd XJxQ0TQAIgDZv3d/Xb3Au9hMOIV6jjaf/KiUtO2ImPpHN2oNR+F+JJ/puTEBI28bikG0 WJmp1CY5oG/CiHlzp4mujmeHTeyL8IAo8lgq3i7EqFrGMCnb2RmqVVSjuEXoMoEEwqkX WOSS3ESyy1tN518doy5kyKenZ+RMDc9+sG01ZUthqPxVEVRfbP8c9qd50DChXSkEkoR7 Yq//yUgjo5bMrpRdcmT1/xsnY3M27kQV5EHgaYgwQo/agh5d/CtV0L22GmblItEptsVo 7xpg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id p1si10205209pff.223.2022.02.15.23.11.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Feb 2022 23:11:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 44A0E13E09; Tue, 15 Feb 2022 22:46:33 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344201AbiBPDUT (ORCPT + 99 others); Tue, 15 Feb 2022 22:20:19 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:46688 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233625AbiBPDUS (ORCPT ); Tue, 15 Feb 2022 22:20:18 -0500 Received: from out30-43.freemail.mail.aliyun.com (out30-43.freemail.mail.aliyun.com [115.124.30.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F323EF65CD; Tue, 15 Feb 2022 19:20:06 -0800 (PST) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R181e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04357;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=15;SR=0;TI=SMTPD_---0V4bIn47_1644981598; Received: from localhost(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0V4bIn47_1644981598) by smtp.aliyun-inc.com(127.0.0.1); Wed, 16 Feb 2022 11:20:02 +0800 From: Jiapeng Chong To: pmladek@suse.com Cc: senozhatsky@chromium.org, rostedt@goodmis.org, john.ogness@linutronix.de, keescook@chromium.org, anton@enomsg.org, ccross@android.com, tony.luck@intel.com, ojeda@kernel.org, alex.gaynor@gmail.com, wedsonaf@google.com, linux-kernel@vger.kernel.org, rust-for-linux@vger.kernel.org, Jiapeng Chong , Abaci Robot Subject: [PATCH] printk: make suppress_panic_printk static Date: Wed, 16 Feb 2022 11:19:57 +0800 Message-Id: <20220216031957.9761-1-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=no 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 This symbol is not used outside of printk.c, so marks it static. Fix the following sparse warning: kernel/printk/printk.c:100:19: warning: symbol 'suppress_panic_printk' was not declared. Should it be static? Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- kernel/printk/printk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c index 7a9eace19191..703397cadd01 100644 --- a/kernel/printk/printk.c +++ b/kernel/printk/printk.c @@ -97,7 +97,7 @@ int __read_mostly suppress_printk; * During panic, heavy printk by other CPUs can delay the * panic and risk deadlock on console resources. */ -int __read_mostly suppress_panic_printk; +static int __read_mostly suppress_panic_printk; #ifdef CONFIG_LOCKDEP static struct lockdep_map console_lock_dep_map = { -- 2.20.1.7.g153144c