Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1539420ybz; Thu, 23 Apr 2020 00:20:42 -0700 (PDT) X-Google-Smtp-Source: APiQypJArCQfe00mAC7z0OGYvvNQWvwOd6eI6hW3Szzq6msnovCmltOuXmw0o/DdhOTPzXM3DViZ X-Received: by 2002:a50:8f45:: with SMTP id 63mr1551893edy.177.1587626442620; Thu, 23 Apr 2020 00:20:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587626442; cv=none; d=google.com; s=arc-20160816; b=aLq/g1ppRBqTimqyq+hu26ayk5fgtZ9j6sjCq9aIBKtclL6bDYB8mHpse3EBe2zjF3 aWPB3dw0a9SfnBMHediF33N5aXjtG9slmVZXHNRFAZACdDx/vCPLyhDyzkM6qOZ3t0yx sKA6wjqW867gW21AxdAtpQ3upAML1xLS4xQIYyNi75s8ceku0e4LM6hQMMa28vI+zpv5 ypxeoNGAa940J6uLq9qVnFPZPGeuC695+zaQ5SGOjRwxWCO94KrODQ4RYmhn9E6zYD94 ExRoLBYxq2hLJN2ThB1s3pRHmQqE7W7j897K3TcKhkGbas5y6AoQDGI2lBDd+AHCZf5x 8P4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=0BydMqaBJ/fAP9U/q7acLsIBYeo0gbDBDseWxvFbKPc=; b=CO+mkFsvjYCKGfw+/nwLx8aLUyuV38N+LT6c1NIdUvmjwARXZM7TM8EDLWCPXa1UwJ gFRtUVTpwk/qCgUB9Ty1K3ZZhwgTzYlwAxyPrVbYhnXJMm5RrV89LAbcxZjooD8foHTD lCp0myT6bQZ9zc0Ye+gj/xnu0waqllMRz8BBIARAhf7pjW+Mv9DnC3steENVSqwHsl/C F4NXCWRDCGvZavjJl4r3mKFVYBfa/euWBbdxgS7Q3sPZU5nUguQ4y4Wxk1TESiB8iElF 79ZZUPcF6KjN1Vcu1HRXQdHF8Z/eV4/EWXqUVtOiuyV/1ndnDrkTV9LBS8wZb4xTOBYJ 8Uzw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e21si705067edq.508.2020.04.23.00.20.19; Thu, 23 Apr 2020 00:20:42 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727033AbgDWHPz (ORCPT + 99 others); Thu, 23 Apr 2020 03:15:55 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:41420 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727028AbgDWHPy (ORCPT ); Thu, 23 Apr 2020 03:15:54 -0400 Received: from DGGEMS411-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 50CC9EBCA0F13E12BD17; Thu, 23 Apr 2020 15:15:49 +0800 (CST) Received: from linux-lmwb.huawei.com (10.175.103.112) by DGGEMS411-HUB.china.huawei.com (10.3.19.211) with Microsoft SMTP Server id 14.3.487.0; Thu, 23 Apr 2020 15:15:39 +0800 From: Zou Wei To: , CC: , , Zou Wei Subject: [PATCH -next] ACPI / CPPC: Make some symbols static Date: Thu, 23 Apr 2020 15:21:58 +0800 Message-ID: <1587626518-97669-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 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following sparse warnings: drivers/acpi/cppc_acpi.c:353:20: warning: symbol 'cppc_mbox_cl' was not declared. Should it be static? drivers/acpi/cppc_acpi.c:600:5: warning: symbol 'pcc_data_alloc' was not declared. Should it be static? Reported-by: Hulk Robot Signed-off-by: Zou Wei --- drivers/acpi/cppc_acpi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/acpi/cppc_acpi.c b/drivers/acpi/cppc_acpi.c index 8b2e89c..f818400 100644 --- a/drivers/acpi/cppc_acpi.c +++ b/drivers/acpi/cppc_acpi.c @@ -350,7 +350,7 @@ static void cppc_chan_tx_done(struct mbox_client *cl, void *msg, int ret) *(u16 *)msg, ret); } -struct mbox_client cppc_mbox_cl = { +static struct mbox_client cppc_mbox_cl = { .tx_done = cppc_chan_tx_done, .knows_txdone = true, }; @@ -597,7 +597,7 @@ bool __weak cpc_ffh_supported(void) * * Return: 0 for success, errno for failure */ -int pcc_data_alloc(int pcc_ss_id) +static int pcc_data_alloc(int pcc_ss_id) { if (pcc_ss_id < 0 || pcc_ss_id >= MAX_PCC_SUBSPACES) return -EINVAL; -- 2.6.2