From: Maxime Ripard Subject: Re: [PATCH] drm/sun4i: tcon-top: Fix return type warning Date: Thu, 12 Jul 2018 18:49:30 +0200 Message-ID: <20180712164930.mopzpgjkpfpkwxpo@flea> References: <20180712080818.3571-1-maxime.ripard@bootlin.com> <20180712083508.GI3008@phenom.ffwll.local> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0891485878==" Return-path: Received: from mail.bootlin.com (mail.bootlin.com [62.4.15.54]) by gabe.freedesktop.org (Postfix) with ESMTP id D3D5A6E1D8 for ; Thu, 12 Jul 2018 16:49:50 +0000 (UTC) In-Reply-To: <20180712083508.GI3008@phenom.ffwll.local> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: Daniel Vetter Cc: Jernej Skrabec , Chen-Yu Tsai , dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============0891485878== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="aqbmahphhy6cz4et" Content-Disposition: inline --aqbmahphhy6cz4et Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jul 12, 2018 at 10:35:08AM +0200, Daniel Vetter wrote: > On Thu, Jul 12, 2018 at 10:08:18AM +0200, Maxime Ripard wrote: > > When commit af11942ee44e ("drm/sun4i: tcon-top: Cleanup clock handling") > > was merged, the error handling path of the of_property_match_string was > > changed to take into account the fact that the returned value of that > > function wasn't an error pointer but an error code. > >=20 > > Unfortunately, this introduced a warning since the now returned value i= s an > > integer, while the sun8i_tcon_top_register_gate function should return = an > > error pointer. > >=20 > > Fix that by calling ERR_PTR. > >=20 > > Cc: Jernej Skrabec > > Cc: Chen-Yu Tsai > > Fixes: af11942ee44e ("drm/sun4i: tcon-top: Cleanup clock handling") > > Reported-by: kbuild test robot > > Reported-by: Stephen Rothwell > > Signed-off-by: Maxime Ripard >=20 > Matches at least the seamntics of the other returns afaics. >=20 > Reviewed-by: Daniel Vetter Applied, thanks! Maxime --=20 Maxime Ripard, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com --aqbmahphhy6cz4et Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEE0VqZU19dR2zEVaqr0rTAlCFNr3QFAltHhpkACgkQ0rTAlCFN r3Ta2w//dSkG8w4oAiKhOQu+sC+KMhCIh/TJqyOOkbMT33GWZGKBcKzRzScuEMvW 7T6rC67D/QC8cCG1HnsCbp9vTeSSM21Bj1m4jMTvmU/bX6Zs/qBJKU1DIXwruzI5 xktVeWALVmpsybKvGvlxRyyMsaJ0Mb3fiEOEOLphAimLu9Xk1MXznFYxeDxQ+PGS HI1GJHOsvX7fSTHukM9tiJaMoDSQHgJX5yUlw2xNJHur7rKcAAu1qqi5+4h7stEV VQvQnKQELAaPPk2RTqY7w8iF8liRYvxPxtXC5Bdu7dT6Erv2c4SdMfTuKovlOr0u W0U2tLW+kOQA0xMWLLNjW7EokYwvcAnjCElqEac1X0fecEfEj6qmZ5GMsLYYilSK hE0jKT3Ct3dEhcHrh+ah4C9CCcaLQbb4N/FmMjVEbybyJphOI8PteKaouybqhWF3 f4ez+ZYvCIDnYSQQkGwJDcp3lfcmKtb7BLN7xpdichmrfrI/FE+LRCRNxXbk12XI wxWPzbn7M2V/YnHsxyShggGufo3qS9nkFUm/eFckX6jvQipNTyDpih0GTQTXV+sc BFl6auhn5h2wY/fv3HYug7FRMLt73Lz6fw6MUQO37PDL8sVd3FZ/E/XmA+RJ+Auh ke8AeCQ8BqJobmexcU/8gGVFgiTxj9eCSA3l0YkJ5cF4CZjxgzE= =4ubU -----END PGP SIGNATURE----- --aqbmahphhy6cz4et-- --===============0891485878== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0891485878==--