Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp125021pxf; Wed, 17 Mar 2021 17:26:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzvi7KHqrhxXubMMYlWyE68XhJMh/l5MPbdNSL0h982Uy6pXxpSlu+EH2ODNZpr/kaE8Qgc X-Received: by 2002:a17:906:1c98:: with SMTP id g24mr38203605ejh.51.1616027166309; Wed, 17 Mar 2021 17:26:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616027166; cv=none; d=google.com; s=arc-20160816; b=cu//szPN1lJrPqgn4Qi9zAiGcuE9b1p+7Lo2zF+0k7tn2W+L7uFbafvUH4uYZaB08B ChyeRdLDy+RYhzwY2Do6jkFMd/+fABFpB6gJR97i5Xm9WCzFRF9vkd6LacsOM+yFoTmK r3Mtaz395PX0nUBwHSZMj7iw3Hu7Ao9wRYuVSIXxVkQken+JD5w9Hn8iLT1xwovygiWP Fx5rNXBJ4RvZNjziHxD9+Ba1nbkaYN78zdxgSGkOx1TlU/CcCuSZshgwaR2mNKYo8mHA sny4/zSX944xQpESs+y5EAZGwLv5hjM7vmSHNdQ7Yqy5r4O/DrdPQYsOmmgsZ0kMaYvX ga8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=KguGM0a2olQquyTu39z+qqqBF+iLeWON6GcXImXZZsI=; b=j4S8iA5rp5w8PT6HW9f1GihzRKOohRd/MIZ1jkFOS5AGbdMq8AVleMef13JEKOrsqE Ya4K9lvqRsw9M4NegB6+UzEhdmaiFHVYEgVNsKA2i5Z5vYs1mYt4nRjDo72Fza4p+4eK jpZN7YvIkomf5mfpJrQk6NBz7ne8MvH5tJusD667Z+24TLJ51+rJzzneeSWiS2yliSwR eMI/efDDErVJBuDcpTVFdiDJ7UkRO/567fxHRxNeplaZsIjavaVlK6eERMEzVLshUoWh GtgOOd+nsAxfQRGwm866QA6IlqV2jwx7HILmKbpyI7SQvpqAjUb+IGR+PXFfT83oaspg rkvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="lo3/9xI3"; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hq7si335789ejc.300.2021.03.17.17.25.43; Wed, 17 Mar 2021 17:26:06 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="lo3/9xI3"; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229472AbhCRAYi (ORCPT + 99 others); Wed, 17 Mar 2021 20:24:38 -0400 Received: from mail.kernel.org ([198.145.29.99]:34616 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229702AbhCRAYL (ORCPT ); Wed, 17 Mar 2021 20:24:11 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id BFC5364E42 for ; Thu, 18 Mar 2021 00:24:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1616027051; bh=p6PEaph2u8ios6gltNUavvYhOGS187eCou4MgdO3Fbw=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=lo3/9xI377wnkqkFHWz4/aGIG0YwtWvM9RVVl1u8oi86jJjYcy6MnQy7Z5QIo8EGW 2byJtLdwK9affsW4A+KPNJjQTc7gwfeAwJ5UJ/tRN/Pp4oXjM6ZPFRzDpmG1eIoLyV qxlooaxDB6pGXpnb+iCUJd3P76QJqlMWJ7Bea5RqaMYPHun7MDLH3D8oPQ54bd2Qzz FLHV03rKqdjg1rGTey1O8SoiTZKodPmd1pOYM7PlX6pWMg5trats2QuFIQkxEpzPBn V8c5pefw8BUi+KyJKQvE++yeRgqMaOljr1oUo88A/ARQ5i24MaQcrVF1QD8sneA9+7 VPPWDkEzp48vg== Received: by mail-ej1-f47.google.com with SMTP id l4so1168978ejc.10 for ; Wed, 17 Mar 2021 17:24:10 -0700 (PDT) X-Gm-Message-State: AOAM5307uK6tikASSmn75bLPmT9WyeCus6CJWICKmYxZxtwhLDPOUlsi qNk4ArHB/RgBRn4ZqYQ0TxyCYRUT6ZC2PKxUCA== X-Received: by 2002:a17:906:3750:: with SMTP id e16mr37952648ejc.75.1616027049177; Wed, 17 Mar 2021 17:24:09 -0700 (PDT) MIME-Version: 1.0 References: <20210210075656.1096251-1-weiyongjun1@huawei.com> In-Reply-To: <20210210075656.1096251-1-weiyongjun1@huawei.com> From: Chun-Kuang Hu Date: Thu, 18 Mar 2021 08:23:58 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH -next] soc: mediatek: Make symbol 'mtk_mutex_driver' static To: Wei Yongjun Cc: Hulk Robot , Matthias Brugger , CK Hu , "moderated list:ARM/Mediatek SoC support" , linux-kernel , Linux ARM Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Yongjun: Wei Yongjun =E6=96=BC 2021=E5=B9=B42=E6=9C=8810=E6= =97=A5 =E9=80=B1=E4=B8=89 =E4=B8=8B=E5=8D=883:49=E5=AF=AB=E9=81=93=EF=BC=9A > > The sparse tool complains as follows: > > drivers/soc/mediatek/mtk-mutex.c:464:24: warning: > symbol 'mtk_mutex_driver' was not declared. Should it be static? > > This symbol is not used outside of mtk-mutex.c, so this > commit marks it static. Reviewed-by: Chun-Kuang Hu > > Reported-by: Hulk Robot > Signed-off-by: Wei Yongjun > --- > drivers/soc/mediatek/mtk-mutex.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/soc/mediatek/mtk-mutex.c b/drivers/soc/mediatek/mtk-= mutex.c > index f531b119da7a..3a315a62e783 100644 > --- a/drivers/soc/mediatek/mtk-mutex.c > +++ b/drivers/soc/mediatek/mtk-mutex.c > @@ -461,7 +461,7 @@ static const struct of_device_id mutex_driver_dt_matc= h[] =3D { > }; > MODULE_DEVICE_TABLE(of, mutex_driver_dt_match); > > -struct platform_driver mtk_mutex_driver =3D { > +static struct platform_driver mtk_mutex_driver =3D { > .probe =3D mtk_mutex_probe, > .remove =3D mtk_mutex_remove, > .driver =3D { > > > _______________________________________________ > Linux-mediatek mailing list > Linux-mediatek@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-mediatek