Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp1649467ioo; Sun, 22 May 2022 23:00:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJznP2iVvXvF0n6blLrdAeFTIU1QyDMN7R4/h9qgARi7zGmX7ZHL12e2Sk5FtvwsFhkPBkLH X-Received: by 2002:a17:902:bcca:b0:161:f9e7:222c with SMTP id o10-20020a170902bcca00b00161f9e7222cmr13093465pls.2.1653285630521; Sun, 22 May 2022 23:00:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653285630; cv=none; d=google.com; s=arc-20160816; b=V82mSvoClDpdzuYRRd/r76/kZL+rGA2uqJopXjhQOqdF4FZGBuEboHD0gd6Hf+KVNM 4qJqBN64n+tWw+k6JmdxE3RAEcKwRwO5u83tSiuId6SLcCQrrvvGapTzlE7cfzmCci7u FAvARZPKq/aLenfzCgYgDsEEf/hXAygiipIZ8Np79xsI8mXkBZoj1NP3f6g+vBT+Hcw/ 1RbAxglZyjucx30KUDxnuBssp7++If+HPJ66oq6uyH0lh6oO55tU6jG769SXyRUqCdZ9 j7s7J0ln+HhuC17CVWG3iH+xOaaKopriXAj1TyivZVIhsG5DrXNl3sfi9vnDAd84JzMd VSPA== 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=Bjjo/kA5nFZQHL1TuWr9Shq7cMR/XUQZ0OjuyN0qVCBAl3zH1K9HPevqdlYzH4yzBW jgy/xOhNdvFKDAC9Y/J5OKRWSDEkTMPxv+bWiNq1Y/ZLpd1USZaM9rjUBYql9bJxVmj1 RDoRlKtJno41H4gYx50P9+dwNGDq+CDVSWUa9UnXUwhcZhKXbkQ3/5m8mRHxeXkk/7ua WoL6QETo4FWYsYCF1ApTEu7mSHyUbVDXxLveqeQR4dNxYaZ2J/rKAXs02YtfPBO69wee 1zaUaa1eYYLFPkG7Ku20NPmEm0gZcJw9kIC/+TEJHI3HGEKAI5xshPI38bK49U3BMtkW TZZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=EhoD7jpb; 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 x23-20020a63cc17000000b003f5eaf2ad31si9075306pgf.565.2022.05.22.23.00.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 May 2022 23:00:30 -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=EhoD7jpb; 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 9F866340F8; Sun, 22 May 2022 22:54:47 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242819AbiEUNOW (ORCPT + 99 others); Sat, 21 May 2022 09:14:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33870 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1354788AbiEUNOC (ORCPT ); Sat, 21 May 2022 09:14:02 -0400 Received: from mail-pf1-x42b.google.com (mail-pf1-x42b.google.com [IPv6:2607:f8b0:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6BB2D3981C for ; Sat, 21 May 2022 06:14:01 -0700 (PDT) Received: by mail-pf1-x42b.google.com with SMTP id x143so9854145pfc.11 for ; Sat, 21 May 2022 06:14:01 -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=EhoD7jpbnPzy8VdYE6Da9KaxEBcK5nlsjBo0jRUA7SnJIr9x2+QTmjnPEitkOsnQ82 FDg2A+qg3UXTXaiArxi5X5eEPUV5aJSNtwPRJeehjHA3VGR1mkM9C5CY4mJPLzuL4F36 lqOE23I4trR2zVBpBXiZ5DkATI9lNLbE/tpWLwCOkotOq/WoEN9czrR+EXYnsoQuNu2w yxdEtbAxWmMD7yCjDPmH3Ww2RpP2+fVInj4SdXpr3CinpsbcVyd28TsoBVrWFzp4PAJp piHHvviLyVYDKifOMHwjHo7umj0r/4EWj26lF67JrSC0X5NwZNYtWiE0GvlBsNS72TI1 KU9w== 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=SIS0BLEE8KvwsRwig91ZiflbaQ3vV6OUXWBJM8aArVKnMccUamryP5s2CXY2teA9hs PWuTddT9ujY3r7HqhrLgG8G5/1SKQDSKOIPgf+TkzvvHu8f7y04HTwYvbBHYbH5UjOut HM5WRTQAxa/9O5dsr9zzxHx6PWFET+QHD0R/pfZW1LfvHI/X42Gzb7j6/DWKmDqsl6Um amOu+7lriqdnxGiWyPRuD5xT/eNRCQ/FjdYnImdWFsFKYkgZK2qQz1Nxn/cMNT+CAgL2 C4CPv0CvGVlJ0UNWwVz41rchJ48Z62zxynnhmzCXYU99XfcBQ+g61uRwzSURtGyAZv0J J5yQ== X-Gm-Message-State: AOAM5311z/SDETgxdlnJyPAQNOtmLeb4ixkOyeVkY0ckShb55y4zudtj R4stjd7+bhw2fk4i03H8QwjzOAZfx9l97Q== X-Received: by 2002:a05:6a00:b94:b0:50f:2255:ae03 with SMTP id g20-20020a056a000b9400b0050f2255ae03mr14833395pfj.74.1653138840676; Sat, 21 May 2022 06:14:00 -0700 (PDT) Received: from localhost ([2409:10:24a0:4700:e8ad:216a:2a9d:6d0c]) by smtp.gmail.com with ESMTPSA id 190-20020a6204c7000000b0050dc76281basm3740557pfe.148.2022.05.21.06.13.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 21 May 2022 06:14:00 -0700 (PDT) From: Stafford Horne To: LKML Cc: Openrisc , Stafford Horne , Jonas Bonn , Stefan Kristiansson , "Eric W. Biederman" , Andrew Morton , Kefeng Wang , Michael Ellerman Subject: [PATCH v3 07/13] openrisc/traps: Declare file scope symbols as static Date: Sat, 21 May 2022 22:13:17 +0900 Message-Id: <20220521131323.631209-8-shorne@gmail.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20220521131323.631209-1-shorne@gmail.com> References: <20220521131323.631209-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