Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp133522iob; Tue, 17 May 2022 21:22:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzxLKa9SSVjx/1VGMKA+ikoCWBe+xYR+Ppfl6LZfZ0EBBcl7zi5EHO+Ifn7E5g4lv9EBK+a X-Received: by 2002:a17:903:230a:b0:15e:b7be:daf5 with SMTP id d10-20020a170903230a00b0015eb7bedaf5mr25611078plh.165.1652847731642; Tue, 17 May 2022 21:22:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652847731; cv=none; d=google.com; s=arc-20160816; b=TGyM1yV173Kg7leMFT6j/xDdyNzA4Uhv1suEs1wmN5iS50JYEX3tpphZh2vO2hHk8t wcgkCmvuVPchsFGpK1DJgwlhQhV/Zysm9Ewx4PtR0bBDLn6w5cOCm41aQUM+LfuKpEt3 1Gb53eZkzlA8IpKW9B+dCBqWbqFPPXIRZDPMWIVWkP8UbBIpRo4UNMXOzJ2sDS7ReoAp NcnkpvhKrUmdCq93SYirqzKiKYtliBa5LnxGxLxAH0DBdhBQJPvuk9+5pdo/p5umjw7p A7/orW5lnydEwDYMWWtb1i6Wtg5m9ww/1ESWhfG5noc/Hkl06HXfvSKZaeNPvwVL90kg yJOg== 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=S1IpeYyfIvNsanRQg9N9QtPHJ5huHHSzQd5nFXVR5YeG4rOWWQl8+AUTCKxSXlMoqQ jGQxU6TSyWXczuri5yny2zAY30FWQDrTVrO/Ze62gGSdnN8THX4JgrPiH98VsaSxoSL5 ICce6dtin9lxX78//ZnBSZtKt410l6bVTikty+hXc4C0gx7m7BEGulEDOBgEwm7EdfpD nY1CQRAGVYRgLo/KLm9yK6Ls1qA9lkfJ3QVDcqWyUNe2MAOPPDcMjVm7o2JMC6m6QEjN ol+GhrEXY9c+HLv5XMOh+h9gXev0gT1GJemwFjzFBvaDuMT5FgeIilS05TZiuEeTsM5z wZVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="lolJi/gr"; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id c7-20020a655a87000000b00382b764a7a9si1450111pgt.731.2022.05.17.21.22.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 May 2022 21:22:11 -0700 (PDT) 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; dkim=pass header.i=@gmail.com header.s=20210112 header.b="lolJi/gr"; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 34B492E6BE; Tue, 17 May 2022 20:47:20 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236028AbiEQA6A (ORCPT + 99 others); Mon, 16 May 2022 20:58:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58876 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237143AbiEQAzy (ORCPT ); Mon, 16 May 2022 20:55:54 -0400 Received: from mail-pj1-x1032.google.com (mail-pj1-x1032.google.com [IPv6:2607:f8b0:4864:20::1032]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5E1D91408B for ; Mon, 16 May 2022 17:55:50 -0700 (PDT) Received: by mail-pj1-x1032.google.com with SMTP id x23-20020a17090a789700b001df763d4ed0so1059549pjk.0 for ; Mon, 16 May 2022 17:55:50 -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=lolJi/grF0XlxD0r+TbFled81nc41kCjirhMSf0FXwqJhgcA8wkMXF7orqRsYZ4O8K HGYSFBCi8BY43TfxB2xjssMePXmxTLaSehRbu64Z9Osgx/XCY0VqetZzjwV5MiOlVfOY JgOqIIahzEqUFFqnxRATc+KX0bd4/2F0mGu1iu9jOpImzUOhHcTquEk2rrPwb/uDFN5C V3w+3hYVC4/yqYcG/G/AI0HThbrMZlky4kg0uIDDYfun/gSr1lY/xw3U/sjDm7M7O1JH 29ctNIXRq6FYVn3IxBOqGVS6RlE2PPiP6VuUVXvvcnOf1y0Nr07UYEGMKjQ0qVhFwaNc +2mg== 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=Ilcl90R8VGYY+glp5hNQOg51oypoCcjn18u918UHzRB3UJgUWuqTB2Rgxc498vBUsq gdnuEyWC+PKmu7Kb2BJ7F5Gg5q9p0qze0KU7aNFMkITKGw/nHpUBVvUu1CNsHPkI9Igw ahASjYQlqn4Jfvakzoh1b2xYMMjLzBdAVpO5h6qeADYcajIFO1A3X799ikjeSq0Gjtsz fvugEHBFXRJw9NP/8v7KghmZsoHA2v7M426UJLPMxxDwRgFkNhBF+/bRjpFD9Gho7jpE n+bKvxHIgAAWJJLQFwSXYXWc+J75mgZY1mQjGzOPr4xgqmAYUX07Xxc7/73Qo5yTZCC8 HA8Q== X-Gm-Message-State: AOAM530dGtQtE89XA24MAmYSAPyds97Xm6KIl5haRgHVlrUbpwCN/F1C HX/BsLnkkqZVRFh8kkp8crMOY8z7J/zdfg== X-Received: by 2002:a17:902:d191:b0:161:5c4f:ce9e with SMTP id m17-20020a170902d19100b001615c4fce9emr11941745plb.159.1652748948956; Mon, 16 May 2022 17:55:48 -0700 (PDT) Received: from localhost ([2409:10:24a0:4700:e8ad:216a:2a9d:6d0c]) by smtp.gmail.com with ESMTPSA id 13-20020a630e4d000000b003c14af50626sm7084057pgo.62.2022.05.16.17.55.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 May 2022 17:55:48 -0700 (PDT) From: Stafford Horne To: LKML Cc: Openrisc , Stafford Horne , Jonas Bonn , Stefan Kristiansson , "Eric W. Biederman" , Andrew Morton , "Russell King (Oracle)" , Michael Ellerman , Kefeng Wang Subject: [PATCH v2 07/13] openrisc/traps: Declare file scope symbols as static Date: Tue, 17 May 2022 09:55:04 +0900 Message-Id: <20220517005510.3500105-8-shorne@gmail.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20220517005510.3500105-1-shorne@gmail.com> References: <20220517005510.3500105-1-shorne@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE 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 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