Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2699338lqz; Wed, 3 Apr 2024 06:17:51 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXsLeesO0fjSSLEDrv6N5b1fFIRce603Dh0Z8FxGdORZxHC13LKwsyhOBsGOS0DlgpR1Jopw5ffcuXtraehQZ5QkfwuvhSbSEFk+o4pew== X-Google-Smtp-Source: AGHT+IEMl2X7u+/4R7ze4gNEyuB0dUTJj8Kyml8aDVgo3zNgQJ9aOc6gZUOQtg+1bAQksVP+/88n X-Received: by 2002:a05:6a00:cd2:b0:6ea:44a2:8268 with SMTP id b18-20020a056a000cd200b006ea44a28268mr2963201pfv.19.1712150270545; Wed, 03 Apr 2024 06:17:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712150270; cv=pass; d=google.com; s=arc-20160816; b=NAoRcC8ErHTFv3vmbu/yTqt4Z0ot6fLY7xbfV6DA0TtbxiX2QIJZfoGnXHCsmp7rq6 QVAkXEd7W74kfqEowjYH+NSftzvwLieE3McHwSUsmTaMAqjyRwFAncymZ2FBwYivqgHk upYlhCgPpI1M4s1gliMXKoGsqUBdHOkLxuAolebwFA1ACWHZsC+w+gNHUyb+lfd6YArG 6aRclhM7N5A3xILPj6RxlzJ4MRLZ2ygYkpi4RaH+ERqC8PuMFf0ejAH4dkoVypGu3QLt kt4mfUb1bVIY51xLMJFGYbUALLoxyJ7rtvqlgZKDTXpHmfdB1ZpxaC5aKI5YAD7+VCqO D5uA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=660vze3uRAF3cBGydaHUSyXbEpN5+1PRRi8EdBzh/Lc=; fh=F1Ct4xzT1XQrWddcF4XtadhqIH96ngjfNXC23lJdgOQ=; b=vdjv7rwKE/oPrbtkO/CXuLIMn0H5U+464UmxKze1pafbMQDZzu0c4+hNYDzATOBF0m 2PA6jIv1A/LS6/00N0ObWWh1rZj0BCgVfYuQBTzzhuA8JGKyLRdtjXYIuACkObh5f0nH 10xcctT+ufYIRsx6vkIIs1kjVSLmtPjIFRIt8JeJqxeXZeuFMxzX0mJy8NqkX/efq8gQ hgKRjUC88T5tbcaFGuuJnRLVVayPnSsMe5rWXCFsM+Dda5Os7MYZnUGnzmwIJZ7zj0HN uiX7K3orv1hPJ4XA1JlW/yiTLRVCevqDe1DuFLTW0E1Tq0UfaEXbHts9e2GxC/zGIgZ9 woPA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-129799-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-129799-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id kt11-20020a056a004bab00b006e79a5b1199si12590934pfb.35.2024.04.03.06.17.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Apr 2024 06:17:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-129799-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-129799-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-129799-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 787A62913EA for ; Wed, 3 Apr 2024 13:17:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5CB25147C98; Wed, 3 Apr 2024 13:17:45 +0000 (UTC) Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [185.203.201.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4FFED147C89 for ; Wed, 3 Apr 2024 13:17:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.203.201.7 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712150264; cv=none; b=J6fzwYZVh0nUN58i13UqDRwULNZ5E0syqjcN/0JZZcDn+L7C1cnCmgj2GjWUx5MR1di1PU/uCSh23XhRAlp46UJg/j+scH5sbtVT8Uuz31bE/Q3ATho06jp3ITRjF0/6cAkPBefNOlRhIxqdY7zFa/p9yY5+okovYf/k3KKCato= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712150264; c=relaxed/simple; bh=Vyeker/HaMf2TYrA6wQCJ7GpcCBtVf1C9BLweI9lc2Y=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=qNu5boMNTFjS0Ju2mPMcHexI/bfcT1WmjXS37qPVpc8Mc2TX/angOuEndHd9C3gzWQsct7TKT+sIfHSOnlAwGpJqypvmugWjKzGYsfcZ/Xi/vO5QUCwHvs18+K1Ic4Lp4Az5iWZrxWFbiKkRP8bwMMJmj3Lvq4I9VtEXjq/Lfxo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de; spf=pass smtp.mailfrom=pengutronix.de; arc=none smtp.client-ip=185.203.201.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pengutronix.de Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rs0Ug-0002nO-5b; Wed, 03 Apr 2024 15:17:34 +0200 Received: from [2a0a:edc0:0:900:1d::77] (helo=ptz.office.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rs0Ue-00ABcw-6F; Wed, 03 Apr 2024 15:17:32 +0200 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1rs0Ue-00EjB3-0K; Wed, 03 Apr 2024 15:17:32 +0200 Date: Wed, 3 Apr 2024 15:17:21 +0200 From: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= To: Arnd Bergmann Cc: linux-kernel@vger.kernel.org, Dmitry Torokhov , Maxime Coquelin , Alexandre Torgue , Krzysztof Kozlowski , Arnd Bergmann , linux-input@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 07/34] Input: stmpe-ts - mark OF related data as maybe unused Message-ID: References: <20240403080702.3509288-1-arnd@kernel.org> <20240403080702.3509288-8-arnd@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="w5s23epdr6logtfm" Content-Disposition: inline In-Reply-To: <20240403080702.3509288-8-arnd@kernel.org> X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org --w5s23epdr6logtfm Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello, On Wed, Apr 03, 2024 at 10:06:25AM +0200, Arnd Bergmann wrote: > From: Krzysztof Kozlowski >=20 > When compile tested with W=3D1 on x86_64 with driver as built-in: >=20 > stmpe-ts.c:371:34: error: unused variable 'stmpe_ts_ids' [-Werror,-Wunu= sed-const-variable] >=20 > Signed-off-by: Krzysztof Kozlowski > Signed-off-by: Arnd Bergmann > --- > drivers/input/touchscreen/stmpe-ts.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/drivers/input/touchscreen/stmpe-ts.c b/drivers/input/touchsc= reen/stmpe-ts.c > index b204fdb2d22c..022b3e94266d 100644 > --- a/drivers/input/touchscreen/stmpe-ts.c > +++ b/drivers/input/touchscreen/stmpe-ts.c > @@ -366,7 +366,7 @@ static struct platform_driver stmpe_ts_driver =3D { > }; > module_platform_driver(stmpe_ts_driver); > =20 > -static const struct of_device_id stmpe_ts_ids[] =3D { > +static const struct of_device_id stmpe_ts_ids[] __maybe_unused =3D { > { .compatible =3D "st,stmpe-ts", }, > { }, > }; I'd suggest the following instead: diff --git a/drivers/input/touchscreen/stmpe-ts.c b/drivers/input/touchscre= en/stmpe-ts.c index b204fdb2d22c..e1afebc641ec 100644 --- a/drivers/input/touchscreen/stmpe-ts.c +++ b/drivers/input/touchscreen/stmpe-ts.c @@ -357,21 +357,22 @@ static void stmpe_ts_remove(struct platform_device *p= dev) stmpe_disable(ts->stmpe, STMPE_BLOCK_TOUCHSCREEN); } =20 -static struct platform_driver stmpe_ts_driver =3D { - .driver =3D { - .name =3D STMPE_TS_NAME, - }, - .probe =3D stmpe_input_probe, - .remove_new =3D stmpe_ts_remove, -}; -module_platform_driver(stmpe_ts_driver); - static const struct of_device_id stmpe_ts_ids[] =3D { { .compatible =3D "st,stmpe-ts", }, { }, }; MODULE_DEVICE_TABLE(of, stmpe_ts_ids); =20 +static struct platform_driver stmpe_ts_driver =3D { + .driver =3D { + .name =3D STMPE_TS_NAME, + .of_match_table =3D stmpe_ts_ids, + }, + .probe =3D stmpe_input_probe, + .remove_new =3D stmpe_ts_remove, +}; +module_platform_driver(stmpe_ts_driver); + MODULE_AUTHOR("Luotao Fu "); MODULE_DESCRIPTION("STMPEXXX touchscreen driver"); MODULE_LICENSE("GPL"); I wonder if with the status quo binding via dt works at all with stmpe_ts_driver.driver.of_match_table unset?! Best regards Uwe --=20 Pengutronix e.K. | Uwe Kleine-K=F6nig | Industrial Linux Solutions | https://www.pengutronix.de/ | --w5s23epdr6logtfm Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEP4GsaTp6HlmJrf7Tj4D7WH0S/k4FAmYNVt0ACgkQj4D7WH0S /k617wf/XJTPmkGqx6WR8Tmi0mrUVAAfMvGFXyjwHCAZ4QoUpGT62IuJWADBA2z8 9CkeDLSntFQsLSCvm/4xE+A7YSfVylRp58nkIbt/L1PvNl37kx1NG8VRfr1tHi+t qNS8bcTEMks28tKxfG2fZ699NUxQ/v56APHHmctVINZtQr70DldjgT9YLxlZl53i HUR0vQ9GuhR2iAe0vGbe6x0i3ZBy8xbTq585mk4JffQuxLb1ZXW1+j62nQoUPJKt SlF5XlUnG92tuNt8X1EWzbpSio1E98AQ3+sFvvRTRDFkI2WEk3wS/xVhZwqjy7JW JEEu8YBfjnomnkrRw/U0tgZ1SY3sig== =vjvn -----END PGP SIGNATURE----- --w5s23epdr6logtfm--