Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp935471pxf; Wed, 7 Apr 2021 15:29:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJye2hxrQFPEp4OojLMiW2IMiGdp91XUVc0FhAMuvuZjLlfYZYkMkNHymkG0hUHNbq2M5fRl X-Received: by 2002:aa7:d886:: with SMTP id u6mr7199483edq.72.1617834547122; Wed, 07 Apr 2021 15:29:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617834547; cv=none; d=google.com; s=arc-20160816; b=s+zwoHzhhhgxYvRWVgmrjVxuxXRcZQoIcvBTXooauNCKLUStAzFnaQF5EyzMkmu80K WE8/J7a8x80oBnnntBq1wQAfuKUUWMFiZ/boQRd1pt6DZkSHWQGXzThrEEiBRv03rxf7 bpIOnuC4yaDdhtR50cVAarCQE47oqQbZUvoyRSvDJvxDlJIY/E7AO5Jg3eAUr8/a9Oh6 Ixk6SK4NRW0aROgCDbiongen5esIbIHUsHbzXLzWldlNBmmvoRgtAkM2KjvXce/dUwNP iIvt0OpGErnyLgFK1d2KyB8MAC4QRHHSGO0XV1tXrT0KI/SZkm5hreQvaTassFJrIKKq 8InA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=nzFwwFFGazFI/V2JfHhnq+FsJa43ZZG05l+HVH4JH2E=; b=gcQ3bD6BfDK+vVQcJ+9MIsHug3WKjDY4v4Wt9lt7S+RnqmE/a497nSFHwFVigZkoko k0ED7W/S1PdxNYj5LSRrq70iuGsnaUzPbbiKGIr13eS3ea8Z5TY3JTKpAB8xkU74Mek8 YTXU303kZYKNegLEWO5gey+woX2R7LzYhfwlTlUjRGucLNiSfCuBq2LaEc0yIU6KP3C+ CZLc4CmYypu1R0Vyqi5A+P0Y3z0oWC762fg2kUImwhdcvk/FSACNrQjDAB5dKGe3lu1O ygPijN5xh/ZdETvM1P99cxHZm5xhjcWIj8avbKAlonyt+go1gmp34IvX9rH9pU5vcovi HYAA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jt22si3095901ejb.242.2021.04.07.15.28.44; Wed, 07 Apr 2021 15:29:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233938AbhDGGxu (ORCPT + 99 others); Wed, 7 Apr 2021 02:53:50 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:16368 "EHLO szxga07-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229778AbhDGGxt (ORCPT ); Wed, 7 Apr 2021 02:53:49 -0400 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga07-in.huawei.com (SkyGuard) with ESMTP id 4FFZmv1Z5Qz93dQ; Wed, 7 Apr 2021 14:51:27 +0800 (CST) Received: from linux-lmwb.huawei.com (10.175.103.112) by DGGEMS407-HUB.china.huawei.com (10.3.19.207) with Microsoft SMTP Server id 14.3.498.0; Wed, 7 Apr 2021 14:53:30 +0800 From: Zou Wei To: , , , CC: , , Zou Wei Subject: [PATCH -next] tools/testing/nvdimm: Make symbol '__nfit_test_ioremap' static Date: Wed, 7 Apr 2021 15:10:51 +0800 Message-ID: <1617779451-81730-1-git-send-email-zou_wei@huawei.com> X-Mailer: git-send-email 2.6.2 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.103.112] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The sparse tool complains as follows: tools/testing/nvdimm/test/iomap.c:65:14: warning: symbol '__nfit_test_ioremap' was not declared. Should it be static? This symbol is not used outside of security.c, so this commit marks it static. Reported-by: Hulk Robot Signed-off-by: Zou Wei --- tools/testing/nvdimm/test/iomap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/nvdimm/test/iomap.c b/tools/testing/nvdimm/test/iomap.c index c62d372..ed563bd 100644 --- a/tools/testing/nvdimm/test/iomap.c +++ b/tools/testing/nvdimm/test/iomap.c @@ -62,7 +62,7 @@ struct nfit_test_resource *get_nfit_res(resource_size_t resource) } EXPORT_SYMBOL(get_nfit_res); -void __iomem *__nfit_test_ioremap(resource_size_t offset, unsigned long size, +static void __iomem *__nfit_test_ioremap(resource_size_t offset, unsigned long size, void __iomem *(*fallback_fn)(resource_size_t, unsigned long)) { struct nfit_test_resource *nfit_res = get_nfit_res(offset); -- 2.6.2