Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1428260ybb; Thu, 9 Apr 2020 01:48:30 -0700 (PDT) X-Google-Smtp-Source: APiQypKEWSL6ajH6TDi//1FKFs3jNZFDIS0wfBVWje1Q7564Wj3c3Z+wUtc9wiFNAee9kEfH12G2 X-Received: by 2002:a05:6830:1b66:: with SMTP id d6mr8807946ote.12.1586422110763; Thu, 09 Apr 2020 01:48:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586422110; cv=none; d=google.com; s=arc-20160816; b=vmMms+VeA8gTwe70w22SwS1OZ/ZIFNhFhOMvaRY4l2eYHqbl/mlcV6hTCtNPduqNuf q0Q7oy3T4RVQXV4mYdjiGfKUPEGIQmiiJPJJ3oeUN2cIBRnrXuJqqaFVU9GddHtlVXIb hnlrpfFkf899go243QPZKK3zhTni8uLBERXLcr3j95M0jY85uRhniDxdcM3kmHUtVHuE YnpI3Ga6dwtaHjk7Ed9KZln9zVSs1WvXG64uMqF+V9mY1ceKtMf1V+RzedyGeS3N+xTa gVfChWMyUjAZRaSTXHe5AX5SakSzqJXCqRu2ZixOkCqJ8X1eEyrg9QOMLd/LUv8wxvm/ E+wQ== 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=Pa/GWP7seQmBRgahYIW+wJfKvokp+/VP8iCyQqXBtB8=; b=M4RE9Z5WdoEAOu7D1lonNQP3qCMyTa1yPLZsHaKnVK/tZW0k/GCPWVBwU65VsyP4aL png7QLpnmMiKeN6gFsEq7tij58/UWcKT2KaBEbul58/45g+11RZblzpXnSm9ummjkKMx XZe0yMDh540fd6a7FUg2lDaDlD++x9QJxkKojXgHl36T3YmSGW0u3maWPae6ZKRWCd35 1Bade6Ip3fHKyqp0nAV7x4ee1MpzJdONvhUSBnyc9qByVsF8nR6dYjujm6l7vQIuKjPY yi2SGn9HzTowHBkg1k0PbY97MV9ZPbN8CFMNhGwU4pkdNThZHjhQp1SptAp3A5oT5o9r 3upA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m18si3951406otn.322.2020.04.09.01.48.14; Thu, 09 Apr 2020 01:48:30 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726621AbgDIIqy (ORCPT + 99 others); Thu, 9 Apr 2020 04:46:54 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:12702 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725987AbgDIIqy (ORCPT ); Thu, 9 Apr 2020 04:46:54 -0400 Received: from DGGEMS404-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 11114BFF47C643743604; Thu, 9 Apr 2020 16:46:37 +0800 (CST) Received: from huawei.com (10.175.124.28) by DGGEMS404-HUB.china.huawei.com (10.3.19.204) with Microsoft SMTP Server id 14.3.487.0; Thu, 9 Apr 2020 16:46:28 +0800 From: Jason Yan To: , , , , CC: Jason Yan Subject: [PATCH RESEND] hwmon: (k10temp) make some symbols static Date: Thu, 9 Apr 2020 16:45:02 +0800 Message-ID: <20200409084502.42126-1-yanaijie@huawei.com> X-Mailer: git-send-email 2.17.2 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.124.28] 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 warning: drivers/hwmon/k10temp.c:189:12: warning: symbol 'k10temp_temp_label' was not declared. Should it be static? drivers/hwmon/k10temp.c:202:12: warning: symbol 'k10temp_in_label' was not declared. Should it be static? drivers/hwmon/k10temp.c:207:12: warning: symbol 'k10temp_curr_label' was not declared. Should it be static? Reported-by: Hulk Robot Signed-off-by: Jason Yan --- drivers/hwmon/k10temp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/hwmon/k10temp.c b/drivers/hwmon/k10temp.c index 3f37d5d81fe4..9915578533bb 100644 --- a/drivers/hwmon/k10temp.c +++ b/drivers/hwmon/k10temp.c @@ -186,7 +186,7 @@ static long get_raw_temp(struct k10temp_data *data) return temp; } -const char *k10temp_temp_label[] = { +static const char *k10temp_temp_label[] = { "Tctl", "Tdie", "Tccd1", @@ -199,12 +199,12 @@ const char *k10temp_temp_label[] = { "Tccd8", }; -const char *k10temp_in_label[] = { +static const char *k10temp_in_label[] = { "Vcore", "Vsoc", }; -const char *k10temp_curr_label[] = { +static const char *k10temp_curr_label[] = { "Icore", "Isoc", }; -- 2.17.2