Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp2512544iob; Sun, 15 May 2022 22:42:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx3LFzQMz3p7BugHVKAckwJxD8Bw4yWMeh+8O7mkaIDOvsS6bhmh0c3KcTVmZ6w0g09xH7c X-Received: by 2002:adf:dd8a:0:b0:20d:ff7:ce01 with SMTP id x10-20020adfdd8a000000b0020d0ff7ce01mr149070wrl.242.1652679752080; Sun, 15 May 2022 22:42:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652679752; cv=none; d=google.com; s=arc-20160816; b=z+3ZwlNx8TGlioji5uJ7Ivv4Gg+iYAjAzROg/nuMNjri+bag9opf/zTy2Qtm+yevHf IiG2hZuN4cULyLE1hVaGl5XCBpyAZdmDckLIFNdCqIWBQynacDNTJNF5TW8YpqgkcGk9 3OWOAo2/R6fNhl87dNmbAm6Ruutwdu9y50kyYUQuog8Ayw9l8B5K0RfFh6vHV2AkX1f8 aKo1IyHSJeGb6W+Zokoyek4DYXRV5DQHlT21KP9y5Nv1R1ZjMwb5LNLr24rJw3vt4Aw+ 3Lam8vvMSn3HW9jsR6CSyqK0tmGrFt5XBu4FvhF8r4NVr+tH/F6PrInXz8IVTNwZqgNa 9QCQ== 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=E6nKYG584PAtoQ8/jvqpBx36KvgGo8qJoQWKQdOpBKU=; b=qAbGY6SoaY6+uwpxENzk+DjdiWTjUgKyPv+SIt+ZdCP+E8rcYXjN9F0VpsG9d9izGG Ypf57wl+LtTb6QGC5w2kSqTm+rlW0Z/Jov2xiSwN4MGV3UqM5CWp56YHWA8F6G8dIjQJ RnqPDVJ71RuNnqttfsGyOxp0fyoc0y8lDA1dET+LMjEANoUrwHnhH2WtYU/QtWSjjEGU 8YKPX2XYEEqNqZq+WHLkyx8cFq3Xvg6fIdbIc0ekrp3RZny6AjDVD3F9wq1anGr9OvT+ zc5zgATpgyvxEP4UcoHTArDhh02GHIZWMXviW4XNMMwTSGPxGXF/ztHqYYxTkGZvwel5 z8vQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="pS/jHvHW"; 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 j4-20020a05600c42c400b003944e1f8240si8440599wme.11.2022.05.15.22.41.48; Sun, 15 May 2022 22:42:32 -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="pS/jHvHW"; 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 S236905AbiEOMn5 (ORCPT + 99 others); Sun, 15 May 2022 08:43:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59862 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236937AbiEOMnl (ORCPT ); Sun, 15 May 2022 08:43:41 -0400 Received: from mail-pf1-x42a.google.com (mail-pf1-x42a.google.com [IPv6:2607:f8b0:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1CAED2EA17 for ; Sun, 15 May 2022 05:42:49 -0700 (PDT) Received: by mail-pf1-x42a.google.com with SMTP id p12so11744707pfn.0 for ; Sun, 15 May 2022 05:42:48 -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=E6nKYG584PAtoQ8/jvqpBx36KvgGo8qJoQWKQdOpBKU=; b=pS/jHvHWwnFrMXvw/NKO7jVf7rgAWmrSVIhik0j+dafXTZMkW49m+3oCGrFQqDzbos fEEJzmYybyqQFqXj6DKvTAXpZ59cC2trVDVaFT3N2OPV98AUho+qv5H2EI3gdseGYAc9 dC/I5NtukRdxetaDlvbcln8bqw9kuGMdgQfjUQ50erk4ehtML9NK0f+DvIKGzaceJh08 whIQDqUpRrBI1AoXyeTdk0QEn6KMdAiUODtkefc4xfMwDrHiwgFBrdxFfDK+hACaNZqM z7AC5DtDZr+ue5N5p0LbiL8fEqedqJHRk98LeinCbc0Wsv2OeWheFz/FdlTzn8F6fvrq 9jhw== 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=E6nKYG584PAtoQ8/jvqpBx36KvgGo8qJoQWKQdOpBKU=; b=afZYSkyqAC/ZU0BnK8IfLg9/Z3wlnHO45VgOsfzfsbQLh3z5lYFTGbeh27l34fvZK3 dNYXx/GPTeSVq0BdBqUcyQr4TImlW1sUb8tgV4odZ/j2RVZIjIMfCk3ie+wWQvIgHm9y 4aa4UwNDqU+BxFTjvKR+KJSPe4Voyt0F4E8N6lpaElL+zK9pwedCHHjSfYl3awLlL5K5 +9KaN/YwCuIopsn1ivqbib3eikKzQ+Hrhhl/UHX1niD0jl0aWbSeoMctMaKLUl9togDt TsSIO4WOJl8R+sq+E9kVq0ojcgpQmKgJ7e+WIuGAlLhgZiFaBKjdFCw4H38x8gAVoT4J L2ng== X-Gm-Message-State: AOAM530AqAxdhlV6x3t6rLvFjK+CmKNMR1myJphWCzpHhNgHyGfznJXs OVZe53CeDoWcVJQXdOB1LKm50Q/bBgzpkQ== X-Received: by 2002:a65:6a16:0:b0:39d:4f3:67e6 with SMTP id m22-20020a656a16000000b0039d04f367e6mr11720141pgu.84.1652618568182; Sun, 15 May 2022 05:42:48 -0700 (PDT) Received: from localhost ([2409:10:24a0:4700:e8ad:216a:2a9d:6d0c]) by smtp.gmail.com with ESMTPSA id c3-20020a170903234300b0015e8d4eb1f6sm5209876plh.64.2022.05.15.05.42.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 May 2022 05:42:47 -0700 (PDT) From: Stafford Horne To: LKML Cc: Openrisc , Stafford Horne , Jonas Bonn , Stefan Kristiansson , Andrew Morton , Randy Dunlap , "Eric W. Biederman" , Qi Zheng Subject: [PATCH 12/13] openrisc/fault: Fix symbol scope warnings Date: Sun, 15 May 2022 21:41:57 +0900 Message-Id: <20220515124158.3167452-13-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 reported the following warning: arch/openrisc/mm/fault.c:27:15: warning: symbol 'pte_misses' was not declared. Should it be static? arch/openrisc/mm/fault.c:28:15: warning: symbol 'pte_errors' was not declared. Should it be static? arch/openrisc/mm/fault.c:33:16: warning: symbol 'current_pgd' was not declared. Should it be static? This patch fixes these by: - Remove unused pte_misses and pte_errors counters which are no longer used. - Add asm/mmu_context.h include to provide the current_pgd declaration. Signed-off-by: Stafford Horne --- arch/openrisc/mm/fault.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/arch/openrisc/mm/fault.c b/arch/openrisc/mm/fault.c index 80bb66ad42f6..516cba14dec9 100644 --- a/arch/openrisc/mm/fault.c +++ b/arch/openrisc/mm/fault.c @@ -18,15 +18,13 @@ #include #include +#include #include #include #define NUM_TLB_ENTRIES 64 #define TLB_OFFSET(add) (((add) >> PAGE_SHIFT) & (NUM_TLB_ENTRIES-1)) -unsigned long pte_misses; /* updated by do_page_fault() */ -unsigned long pte_errors; /* updated by do_page_fault() */ - /* __PHX__ :: - check the vmalloc_fault in do_page_fault() * - also look into include/asm/mmu_context.h */ -- 2.31.1