Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp212279pxj; Fri, 28 May 2021 02:04:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxWhFeqFP27w26lNlArWJKeIt3kXKcfJFLCMQGdHqGMdJOxfxcRnl0yhiQlb3XXdtUZJyji X-Received: by 2002:a17:906:2ec6:: with SMTP id s6mr7889271eji.65.1622192676356; Fri, 28 May 2021 02:04:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622192676; cv=none; d=google.com; s=arc-20160816; b=LmF230p/Gu97VSp54iaZ0wDcma0cY7uPvWQIVkZbRzW9i0QXm3CoYdhMbplg3R+5tX j5WmPV3XsVEbbgRu8vgPdR/PnL4y7/Fz96eH1W5+ycQX4rEIr19vOSkShg2wE0x1bWkP iBA3DI+wPYVCtFGskPxgsAN+YZU9K342kspGJ/tDJyF2/GneLpaHOGH9w9JVeoez+ljf DAH349tg1iuDC7S9ACG7MOOLkhZfS/Cgd0SSrMa+/ZNYK4+jmsRp8aN3B0OhRYREhHtS CFlSL/CDv6Ert5kZhJbxTDFmq7mwTa+/HWp/8AxOade+0JigVABNlJPUx/eZZyzgcn4p b+Mw== 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 :message-id:date:subject:cc:to:from; bh=C7k6twjJrQyC4c1/4Li0Q7OQXieblFpJIQsEY9l82rY=; b=pLAxcnN8heE1gFuxxD56rt8dqjGrNa4yLw750FaCeolw4iHiiwRw8CV0AyMmZ9Cdcm 36mTK2ERO4QYXUKHyjUWmGkfM4wtg6pok3UXL/5rIsiXzswPp76naeVOP0QSFgEZIyi6 +wPK7DGX5npXhnI0+N3z0SryOYYduE0egj/WpjmeTlOBj8s/LFwXrC5Wtds5n/pYtMcC y7GKSBRDnnMm6j2Kl8BqrVF4r+AjMVaYTHfTYmEAWVT/v5lwA5+3+5FlVl8Up+gE12pG gJGFnDLV6aEaiplxeO/lwO3WNgQklnF0qbKErQVO4CsN1imW/Ln1kg9X98QO3/A04njk mgmw== 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 co18si4107556edb.537.2021.05.28.02.04.11; Fri, 28 May 2021 02:04:36 -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 S235274AbhE1HOv (ORCPT + 99 others); Fri, 28 May 2021 03:14:51 -0400 Received: from szxga02-in.huawei.com ([45.249.212.188]:2511 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234805AbhE1HOq (ORCPT ); Fri, 28 May 2021 03:14:46 -0400 Received: from dggeml753-chm.china.huawei.com (unknown [172.30.72.53]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4FrwnJ3dS8zYqPY; Fri, 28 May 2021 15:10:28 +0800 (CST) Received: from dggpemm500016.china.huawei.com (7.185.36.25) by dggeml753-chm.china.huawei.com (10.1.199.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Fri, 28 May 2021 15:13:08 +0800 Received: from huawei.com (10.67.174.117) by dggpemm500016.china.huawei.com (7.185.36.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Fri, 28 May 2021 15:13:08 +0800 From: Ruiqi Gong To: , Thomas Bogendoerfer CC: Wang Weiyang , , , Subject: [PATCH -next] MIPS: pm-cps: Make '__pcpu_scope_cps_cpu_state' static Date: Fri, 28 May 2021 15:04:37 +0800 Message-ID: <20210528070437.5780-1-gongruiqi1@huawei.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.67.174.117] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To dggpemm500016.china.huawei.com (7.185.36.25) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Mark the per-CPU definition of cps_cpu_state as static to fix the following sparse tool complain: arch/mips/kernel/pm-cps.c:66:1: warning: symbol '__pcpu_scope_cps_cpu_state' was not declared. Should it be static? Reported-by: Hulk Robot Signed-off-by: Ruiqi Gong --- arch/mips/kernel/pm-cps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/mips/kernel/pm-cps.c b/arch/mips/kernel/pm-cps.c index 9bf60d7d44d3..32e8f0673e06 100644 --- a/arch/mips/kernel/pm-cps.c +++ b/arch/mips/kernel/pm-cps.c @@ -63,7 +63,7 @@ static DEFINE_PER_CPU_ALIGNED(cpumask_t, online_coupled); static DEFINE_PER_CPU_ALIGNED(atomic_t, pm_barrier); /* Saved CPU state across the CPS_PM_POWER_GATED state */ -DEFINE_PER_CPU_ALIGNED(struct mips_static_suspend_state, cps_cpu_state); +static DEFINE_PER_CPU_ALIGNED(struct mips_static_suspend_state, cps_cpu_state); /* A somewhat arbitrary number of labels & relocs for uasm */ static struct uasm_label labels[32];