Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp2191030iob; Sun, 15 May 2022 10:39:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJztanq21wBfnNaljLhTKi3GeJWdRFGhhC3xXizxlE11sNgDlWiQraqD2DDP+LAkh9VVRBe+ X-Received: by 2002:a17:906:3c09:b0:6f3:9aff:e1a0 with SMTP id h9-20020a1709063c0900b006f39affe1a0mr12253722ejg.453.1652636364099; Sun, 15 May 2022 10:39:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652636364; cv=none; d=google.com; s=arc-20160816; b=UKbG3mzMBRXm4sLDphzwUCIDXjE5xJRE9Xq4L6LJF4GI6AKj8AEDkrTXYxBYbpzy2p 5iBom7YXmffVYP2eBWiUBA+klBy9m2B0q0uZIOIg7bhUoakxdOTMKKxLDTWZUTAe/6Pv 1u2hv8KJSZKrtOguinfyVjfmIy81kq54LbCCdYQMyFUf0LlwchtAmymh8ODT1V60lmXq MxRjG29+iXXBQR9MA6SYOXo711olavUB1k/zUTo2trkG0mtp+5uCFicgO63NxwEqaGu2 4tWMO89DkngAj/ZE21oKfbpygqafnX5zwO4io79HGVpMpkceHSMS5zvVIPUbeEQipp65 eqpA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ikZ+PR/EklJmOrxEmrNGimc9Z26aJRLTxGu7euJ5K94=; b=otbQjIO4HjYmsFk7bBB69mj8F0zv+HCF5Rv6dowWhslig8sOTIzhCSILEczTG2ycLl BK6c7mh2sdBnAK/APBsW8p0+WCyTC7k+2N1E97zvA8/SfAEEbPVejxmrkOEeDsUmB08C PUIoZS94scPOS9uYTG2+6YvBRDye4ZCKUQgTNV4XQmEbkY7GBfTliOZbKST86T6JOffE 6i48xzZIUo0SUp3ZMUEyWf5GDpHqhcsyuBGtwai41YHb/Jgw4Bz/X8HGEhytFAqrwkN4 4xZ5dHIx8nCMV+BJE+jIsJQ+79v620WHIutZMofElq19wfJ9XKio21R0ezfydqgOuoF9 ojNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ksSpxTNN; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cr19-20020a170906d55300b006f3b8a62ff1si8329489ejc.123.2022.05.15.10.38.58; Sun, 15 May 2022 10:39:24 -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=@gmail.com header.s=20210112 header.b=ksSpxTNN; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236711AbiEOMmu (ORCPT + 99 others); Sun, 15 May 2022 08:42:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58866 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236691AbiEOMme (ORCPT ); Sun, 15 May 2022 08:42:34 -0400 Received: from mail-pg1-x52b.google.com (mail-pg1-x52b.google.com [IPv6:2607:f8b0:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C247217E00 for ; Sun, 15 May 2022 05:42:32 -0700 (PDT) Received: by mail-pg1-x52b.google.com with SMTP id h186so9056459pgc.3 for ; Sun, 15 May 2022 05:42:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ikZ+PR/EklJmOrxEmrNGimc9Z26aJRLTxGu7euJ5K94=; b=ksSpxTNN13tMggvaejsEI+GQ4F41SIaUMtsGc/Fbqvm0NY7LV1vR2jqG1m7GoxPGku PhKShLPS2YaFrCkWF6qzNE5E8jWTrJU+moMax9b1xoFBY6SRdkK8bVp2Zc/G/nSySbjW liOdoPCmqor7GMxuSCOuApzqyuWuAqnY0sdvxKZMccFR3frD5U5yhzHbEI5vUEAwePLj 7NigwZjZe3z2aNqzabMoA3gJKXQB748Hy11fqo1cWv8xhly2r4khbd9fxdgzD7LDLZow RisaBQqRaleTGpSUZAdrxcMWrZ4s18sPFISuodoVqegDk4/ERIEhkV9Mf2goI4bvRbnb pyFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ikZ+PR/EklJmOrxEmrNGimc9Z26aJRLTxGu7euJ5K94=; b=thop4apizQEV9hNUxEE6rnmvxCYs4iLDKq3E5+2Xg8f7uhzEYK2xEqm0ixYXhsJ5FS eO3xYju3ZZUEhFawsuc54tbC0ixE2MTso/gCCmCB9ObfZgUVH4ySBVGlF4MsGFRxUD1K L5d/NeXPqA6plExsgewXYI3uS5RGRNF4bmtDUG3YTlpwI9Y+TmtOverxXZYFc2mxD3w5 FidalKtYhIwYWNQRl9MKNtdlUY5iUMSGF0Tx1xrfiqxJ0eZCOwWMJjbcQbnna03GURBL 7zseRo+EayVZ7rxnjnAliy5i5s0HVIZElY7lKddmv/jlDCbrir0hrcoO5xq7jiC5pRfv 0OUA== X-Gm-Message-State: AOAM530uyOmD464HldUuu6XeSZW8BqNCcfFCZUKC1661+j4Tcx38CXGA lI2ipTgqnipyoVCKA+ALH4gerXregzIqyQ== X-Received: by 2002:a63:d34d:0:b0:3db:a518:1ff8 with SMTP id u13-20020a63d34d000000b003dba5181ff8mr9206517pgi.593.1652618552046; Sun, 15 May 2022 05:42:32 -0700 (PDT) Received: from localhost ([2409:10:24a0:4700:e8ad:216a:2a9d:6d0c]) by smtp.gmail.com with ESMTPSA id t19-20020a170902b21300b0015ef63f2382sm5054670plr.231.2022.05.15.05.42.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 May 2022 05:42:31 -0700 (PDT) From: Stafford Horne To: LKML Cc: Openrisc , Stafford Horne , Jonas Bonn , Stefan Kristiansson , "Eric W. Biederman" , Andrew Morton , "Russell King (Oracle)" , Kefeng Wang Subject: [PATCH 07/13] openrisc/traps: Declare file scope symbols as static Date: Sun, 15 May 2022 21:41:52 +0900 Message-Id: <20220515124158.3167452-8-shorne@gmail.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20220515124158.3167452-1-shorne@gmail.com> References: <20220515124158.3167452-1-shorne@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 Sparse was reporting the following warnings: arch/openrisc/kernel/traps.c:37:5: warning: symbol 'kstack_depth_to_print' was not declared. Should it be static? arch/openrisc/kernel/traps.c:39:22: warning: symbol 'lwa_addr' was not declared. Should it be static? arch/openrisc/kernel/traps.c:41:6: warning: symbol 'print_trace' was not declared. Should it be static? The function print_trace and local variables kstack_depth_to_print and lwa_addr are not used outside of this file. This patch marks them as static. Signed-off-by: Stafford Horne --- arch/openrisc/kernel/traps.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/openrisc/kernel/traps.c b/arch/openrisc/kernel/traps.c index f2478bba77b9..9e0937eb31ca 100644 --- a/arch/openrisc/kernel/traps.c +++ b/arch/openrisc/kernel/traps.c @@ -34,11 +34,11 @@ #include #include -int kstack_depth_to_print = 0x180; +static int kstack_depth_to_print = 0x180; int lwa_flag; -unsigned long __user *lwa_addr; +static unsigned long __user *lwa_addr; -void print_trace(void *data, unsigned long addr, int reliable) +static void print_trace(void *data, unsigned long addr, int reliable) { const char *loglvl = data; -- 2.31.1