From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thierry Reding Subject: Re: [PATCH 2/4] drm: Add missing __user annotation to drm_syncobj_array_find() Date: Fri, 1 Sep 2017 19:44:46 +0200 Message-ID: <20170901174446.GB25142@ulmo> References: <20170901165328.24459-1-ville.syrjala@linux.intel.com> <20170901165328.24459-2-ville.syrjala@linux.intel.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1661800975==" Return-path: Received: from mail-wm0-x241.google.com (mail-wm0-x241.google.com [IPv6:2a00:1450:400c:c09::241]) by gabe.freedesktop.org (Postfix) with ESMTPS id EA1076E231 for ; Fri, 1 Sep 2017 17:44:49 +0000 (UTC) Received: by mail-wm0-x241.google.com with SMTP id e204so810277wma.2 for ; Fri, 01 Sep 2017 10:44:49 -0700 (PDT) In-Reply-To: <20170901165328.24459-2-ville.syrjala@linux.intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: ville.syrjala@linux.intel.com Cc: Jason Ekstrand , dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============1661800975== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="s2ZSL+KKDSLx8OML" Content-Disposition: inline --s2ZSL+KKDSLx8OML Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Sep 01, 2017 at 07:53:26PM +0300, ville.syrjala@linux.intel.com wro= te: > From: Ville Syrj=C3=A4l=C3=A4 >=20 > 'user_handles' needs a __user annotation for fix the following sparse > warning: > drm_syncobj.c:813:37: warning: incorrect type in argument 2 (different ad= dress spaces) > drm_syncobj.c:813:37: expected void const [noderef] *from > drm_syncobj.c:813:37: got void *user_handles > drm_syncobj.c:875:38: warning: incorrect type in argument 2 (different ad= dress spaces) > drm_syncobj.c:875:38: expected void *user_handles > drm_syncobj.c:875:38: got void [noderef] * > drm_syncobj.c:908:38: warning: incorrect type in argument 2 (different ad= dress spaces) > drm_syncobj.c:908:38: expected void *user_handles > drm_syncobj.c:908:38: got void [noderef] * > drm_syncobj.c:941:38: warning: incorrect type in argument 2 (different ad= dress spaces) > drm_syncobj.c:941:38: expected void *user_handles > drm_syncobj.c:941:38: got void [noderef] * >=20 > Cc: Jason Ekstrand > Fixes: 3e6fb72d6cef ("drm/syncobj: Add a syncobj_array_find helper") > Signed-off-by: Ville Syrj=C3=A4l=C3=A4 > --- > drivers/gpu/drm/drm_syncobj.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Thierry Reding --s2ZSL+KKDSLx8OML Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEiOrDCAFJzPfAjcif3SOs138+s6EFAlmpnI0ACgkQ3SOs138+ s6GPGw//UWdi/n7G7lIVdfOZAw46si3icetrUei3n3WIsRk6WmmLRD8hqxVuUd9+ l1AoeQaw/AHepMRiBFExgH79SSp0ZxQHaT+44mc4MSjNA4uvFr1DNMyHFmPDcR95 5ibHhAzZG2+qbzXQmRtaapYyQYHVuEDINMfGjI/cWBsF+lsDUCXES46wps/CEXA6 Pe0u2oLct38nGoFSwUvbc3hmzUWOjYti9RnpdZAHLrKvU7w4/pPszD44GxaAsyxJ Us8r0TtqvkPWlMz+bXTdWRdwrX3akzK5up3Pk+zUKCdwI2kdGnvkMzwyR3yJVxJz YyJAWGa0Pp636UzVI9vboRL4GGdPYkNJCh6F5kcWcFi4RKALcz2LLdZIhDncjjqL u1bs300I/aAg1pF8vFVbFgfbh3J5eS4USnbIdRGiDHcZ0zqgSA+EBKE7x3jJxZPy fgIhOQjZJUtuDdjFpR31ZwusbLZutIjT1EBXYX10INCPYMqaFUjRtPfCCmbqerGb cGxC2x31Aj2jo3UDou7muZpXd+SM97YciG8lhw4OgrSUlwf6D2XIWzhSjX5zB+1s XMAyKFJ4UESws2a/ZrLTnkRd2AlxDQA60EVI7htXTjljHkDDV99ujqXGK85O8zB7 wD0NaC41VwUYNF56QLYIImi1g39KEKJBqz1qb5fKfKYjCLMVpO8= =xiVl -----END PGP SIGNATURE----- --s2ZSL+KKDSLx8OML-- --===============1661800975== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1661800975==--