Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp549408pxf; Thu, 11 Mar 2021 09:13:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJxtgVtXmHHuTYHPJCxg5tiE+ttV06fhl0gftOUEqeAGxNYvSYvGG2b/iAqV3ANt+ZjmTnAq X-Received: by 2002:a05:6402:168c:: with SMTP id a12mr9711143edv.344.1615482839327; Thu, 11 Mar 2021 09:13:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615482839; cv=none; d=google.com; s=arc-20160816; b=I8VnTQrhyAqgcpmQww+8D0yQdGYDzDt7/T8D6Lw0uwDL1bD8lcO7lZkUKweWzbmq0v Yv+o7zggyaSFoCt9dZet2uGwL0kyn7qLiuevKhccHdQHeid8RzO+LSc9rknTRnnKQT4n 8Y4XUmMfO8+jwLT4+7KCc+RA7ioYKv2T2cnTrFITG3kn3qRHQHSuBmnp9oQqiX198CzX X5VR8fEOq9/5hdrZWt0BaLKovEpd836CZHSGDTz+VPntM5Jq+orkLpTs1lg6qe0mpN6+ cz52Vr7EILZKCDKeBV7sm+QVedTeH+ejaM8g30hwA+7UpgCqK4EdUamfGi5xYFkh03Jl istA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=b5TjaochUTiMPxwpTbo+xjqSMsNV0jAxUvKCcJjcwRA=; b=qrJ/oAReqsUL/8v1ZCtyGSpIRGPMkxhjoFVkhM37pJQqgetNjrB2gse9JWJsri2XA+ I5VVfFoZYSYaQ1uGDAVB5MhoGiWeEkQDWX5yot/ubGCzYMfBi0hMv4bYM3Z4zlrzWRY2 0eNoYaTUEpNFfh7FhALPfPZTa22fbumllWJloLuzFXsnVSrQaLXAvRIM8DrJqLEqM5hW 5BsRIKswXmcu4LTO4hmRCqZQhTbaYuPwcEr/l44D37G6ARzqA67PvAOSYDAjP0JOEUUd XrVYt4EI5Fq5oeNNhP4kO7tUMF/CtCbW5Xtc/fRKEiL7rgein/WM/K4QEuoZ019Yc9tv IsiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=OYBoRjtC; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m21si1433879edp.392.2021.03.11.09.13.31; Thu, 11 Mar 2021 09:13:59 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=OYBoRjtC; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229673AbhCKRMS (ORCPT + 99 others); Thu, 11 Mar 2021 12:12:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38280 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229942AbhCKRMM (ORCPT ); Thu, 11 Mar 2021 12:12:12 -0500 Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [IPv6:2a00:1450:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 91383C061574; Thu, 11 Mar 2021 09:12:12 -0800 (PST) Received: by mail-ej1-x635.google.com with SMTP id ox4so32134677ejb.11; Thu, 11 Mar 2021 09:12:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=b5TjaochUTiMPxwpTbo+xjqSMsNV0jAxUvKCcJjcwRA=; b=OYBoRjtCXTfLmfx6ivD5eII1IF8IH0xLcOKG1DuCAIg0hueLCUtQElSKJrgBVIP7Vr xSHKIV9RBpMTT7lbQGwYU7zjW4owhFrJ2PTXEmGd+YWcEmlh2KfMtsflbI3JVvLwWOGc JsAzuDFzguR0iFfHGxDdgvetp+qen9tyM/ivManF9i6aOVPNRVRAnr8oxdGnMoLaUDp1 084HjOhHwOyJ0w0Gp+Y0IAvY0IiCw3nULmHFtwvHujEtp+cwS6f2PaIMN7j8QVIF+p/Z Vl+8RZEJf5rAjGrM9UXHqks3RxYib+NzOcWk9uRyzHyfOD4eIl9r8OSpa6VJ83wLlxOJ pNFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=b5TjaochUTiMPxwpTbo+xjqSMsNV0jAxUvKCcJjcwRA=; b=Py0UoH35OJ1Wgv8gri+pkjjNpuT8aBiPjdWdiVjq0AiiY5oxVVQ1EVAkqPaC4iTeGg 3TZaNnFF3iDV5qjDhmpF6Ve6uLz+bft45imA2x+ZEi3SnSYi52blzkSeOIU+NxbndENO 01Qfb5Wc6jdQdu1P8FGhkXS4gJbBbvNU2Zpmwu9cGZajqTm0D3uC4EvBoJqQ5Yh2mUAQ X0aahlbckDDcHe/pJ3VTHas9JikzECkXpw/yCy2URfivA2zFxmAkppqi/SOuX+iwFaYk OotLw/Ze+miSWL7aRETxoxDfxBZ7aONAXdS2PKN5M8tNhLImbKrkxE2eHMP3C9vJVYIg OWUg== X-Gm-Message-State: AOAM531ykW6VFf11JUgQ4gCN/46BkTQtoEegBJIszQLi527PaXRewEQZ FQOoFLBgxp4IX9B4UrGGOb4= X-Received: by 2002:a17:906:1182:: with SMTP id n2mr4163329eja.234.1615482731273; Thu, 11 Mar 2021 09:12:11 -0800 (PST) Received: from BV030612LT ([81.18.95.223]) by smtp.gmail.com with ESMTPSA id q1sm1567938ejt.65.2021.03.11.09.12.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Mar 2021 09:12:10 -0800 (PST) Date: Thu, 11 Mar 2021 19:12:08 +0200 From: Cristian Ciocaltea To: 'Wei Yongjun Cc: Manivannan Sadhasivam , Lee Jones , linux-actions@lists.infradead.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Hulk Robot Subject: Re: [PATCH -next] mfd: Make symbol 'atc260x_i2c_of_match' static Message-ID: <20210311171208.GB892053@BV030612LT> References: <20210311131507.1902008-1-weiyongjun1@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210311131507.1902008-1-weiyongjun1@huawei.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 11, 2021 at 01:15:07PM +0000, 'Wei Yongjun wrote: > 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 Reviewed-by: Cristian Ciocaltea Thanks, Cristi > --- > 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 }, > { } >