Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp331860pxf; Thu, 11 Mar 2021 05:08:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJyDMRpuabibSo0fxYN3mMfgXJRZBo7s9A4GvK+/2FX1VRddm/2dGpA/I1c12Qc5FQFyWnQg X-Received: by 2002:a17:906:d157:: with SMTP id br23mr3196172ejb.192.1615468096995; Thu, 11 Mar 2021 05:08:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615468096; cv=none; d=google.com; s=arc-20160816; b=1ALIFd+YwatNJtIc3C4DXJJq8fBRlvucywvX6miz14O/0u5WuUcMve4UtDH+/ouJPp NFzCr4FLvFnGBPhBh7tTu8r/0bWnnHJ+IE0ah3sXxYsGQaL3DGjFd4EmAW75V7aN8T7q ilA+C73KdrS9Qj5OpHopSagXevygAp7r2GNNOMDQ0A18FgoRDMYExvem6RSDf6nNLULc 6/CNIWPqt6HeIWhUh7Bo01hXfluFMrn1iZXu/Il2ruPKsF/EMeCDToRTVRPXKzhl36RN vfFlMgKdpmd5VWv1X9nHu1XD05QmfKkysP8+Qg6qVijretO7D0nBjyma3PQ3YPG47Jhg dFSQ== 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=oNZcn+baEhVvweXxXtdsiVvQed4FY9TDkDEfTI9YP1w=; b=gnXaLIMtFdkgyM8vuTzgUZo2qPe14V7HK3mTYHOGQEC03YLN6nI+xD8Ytv3I8QS+uc P064lr397BMT/+aAQACjuY24Xuny4GJEr4gzelMumKnM84VaDSLqRzsxkekRhWnHhG/J LlFd2aEhlZR3hqg8foFZabv1AdrWCAMXqQ0LXIULeGOfEryKOlHXumDOuMNrAux9UEet y2YjSwK6Kq4lj/SrLRx+6sC2ac+s3MiIdkdTgEHGIC3TwVMUMNTOIYe2DYSCy5BITJrY 2N8T4Jesc2m1HGin9slM71JwYvsSGoY23/6CqlOuG823RbarAK+Rg3ptA1tsSgm4ChLD nFDw== 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 s11si1686298edd.147.2021.03.11.05.07.53; Thu, 11 Mar 2021 05:08:16 -0800 (PST) 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 S233373AbhCKNGv (ORCPT + 99 others); Thu, 11 Mar 2021 08:06:51 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:13522 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233285AbhCKNGj (ORCPT ); Thu, 11 Mar 2021 08:06:39 -0500 Received: from DGGEMS406-HUB.china.huawei.com (unknown [172.30.72.59]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4Dx8KT6hwCzNlHg; Thu, 11 Mar 2021 21:04:13 +0800 (CST) Received: from localhost.localdomain (10.175.102.38) by DGGEMS406-HUB.china.huawei.com (10.3.19.206) with Microsoft SMTP Server id 14.3.498.0; Thu, 11 Mar 2021 21:06:21 +0800 From: 'Wei Yongjun To: , Manivannan Sadhasivam , Cristian Ciocaltea , Lee Jones CC: , , , Hulk Robot Subject: [PATCH -next] mfd: Make symbol 'atc260x_i2c_of_match' static Date: Thu, 11 Mar 2021 13:15:07 +0000 Message-ID: <20210311131507.1902008-1-weiyongjun1@huawei.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT X-Originating-IP: [10.175.102.38] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Wei Yongjun The sparse tool complains as follows: drivers/mfd/atc260x-i2c.c:45:27: warning: symbol 'atc260x_i2c_of_match' was not declared. Should it be static? This symbol is not used outside of atc260x-i2c.c, so this commit marks it static. Fixes: f7cb7fe34db9 ("mfd: Add MFD driver for ATC260x PMICs") Reported-by: Hulk Robot Signed-off-by: Wei Yongjun --- drivers/mfd/atc260x-i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/atc260x-i2c.c b/drivers/mfd/atc260x-i2c.c index 362005703367..5855efd09efc 100644 --- a/drivers/mfd/atc260x-i2c.c +++ b/drivers/mfd/atc260x-i2c.c @@ -42,7 +42,7 @@ static int atc260x_i2c_probe(struct i2c_client *client, return atc260x_device_probe(atc260x); } -const struct of_device_id atc260x_i2c_of_match[] = { +static const struct of_device_id atc260x_i2c_of_match[] = { { .compatible = "actions,atc2603c", .data = (void *)ATC2603C }, { .compatible = "actions,atc2609a", .data = (void *)ATC2609A }, { }