Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp2032844ybz; Sun, 26 Apr 2020 09:35:54 -0700 (PDT) X-Google-Smtp-Source: APiQypLquoFWksoVNUhkoFoB/3jXGemVEpy0i5HkLUqP4zeU3xdgLmQ3+PSjcyoO0Ei16O6EJDqU X-Received: by 2002:a17:906:1c8a:: with SMTP id g10mr16772894ejh.342.1587918954849; Sun, 26 Apr 2020 09:35:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587918954; cv=none; d=google.com; s=arc-20160816; b=tajFOLBN/2mGpvlLQfXLgbc3RXttc5zoQBJZliiujypBtWOWhZj7Bxi2v+ASuXKX80 LwfzLbpaW2QB9rQLAZfWKdqknGxNkHDT2Ty7fKzkZiOy00yZavRijRzsNzXylB6CaLwZ x/RWSmny0V9ONvBJR3Elgm1wX7Wf3mBKR/MYEu9EZ48jP64EOAwGtYBwDor0LIM64kFj yuV2xS/bvdaAKmFQ++o1JBo7yDj1Z7x4CiWQ8QWDMwhD2GG65bs67u1wIX+StigWvP7O qgV5kkIOpVGox4tYBhLnc8iO7fFJObRdlFGAdPFgaL0fg/k4sP8ku5KNMjQap14b/hOh qQ3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=/CgMtEGmJQq0Rgv0F4qObKcZq/ooAHqH5fjKiQmJgdA=; b=UzZZR/R2VNovU0pYzGghjyXZjFPdQ+G7oDo2oqcz5y9pHVhpioVnoDpryFiIWsRuJg HJrWguBLhoFus+6gqq96SnTEDz5Z10JEmdYJjkCg5nZKkKvsjogtuYNrWxg9OVQk7NJ4 YuBF6Sucb5U16XEKgj/kx/JGL0cAS48ihZWLdxkPzZsAxe5abcFbCWyhYJKA2PVnRZkF plYtiBRuU1MXIRynDE4gJ0F8gFVoMv1ZYaWQHLBz8gmwXc/fcZ74jqhyB/NB8L5ia4wn DCtIGWjSmoUWbcnBkt2PbjYAy+IsoTdregU0eOapKIuu3rp/09oB3x/N7b/hePhJjRv7 QDtw== 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 i2si6350999eds.101.2020.04.26.09.35.31; Sun, 26 Apr 2020 09:35:54 -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 S1726191AbgDZQbu (ORCPT + 99 others); Sun, 26 Apr 2020 12:31:50 -0400 Received: from cloudserver094114.home.pl ([79.96.170.134]:50178 "EHLO cloudserver094114.home.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726144AbgDZQbu (ORCPT ); Sun, 26 Apr 2020 12:31:50 -0400 Received: from 185.80.35.16 (185.80.35.16) (HELO kreacher.localnet) by serwer1319399.home.pl (79.96.170.134) with SMTP (IdeaSmtpServer 0.83.415) id d4f95e24674149c7; Sun, 26 Apr 2020 18:31:47 +0200 From: "Rafael J. Wysocki" To: Zou Wei Cc: lenb@kernel.org, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH -next] ACPI / CPPC: Make some symbols static Date: Sun, 26 Apr 2020 18:31:47 +0200 Message-ID: <2458050.BygcShJWPJ@kreacher> In-Reply-To: <1587626518-97669-1-git-send-email-zou_wei@huawei.com> References: <1587626518-97669-1-git-send-email-zou_wei@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thursday, April 23, 2020 9:21:58 AM CEST Zou Wei wrote: > 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; > Applied as 5.8-candidate material, thanks!