[patch 2/2] drm/tegra: silence some sparse complaints

Thierry Reding thierry.reding at gmail.com
Fri Nov 8 04:34:56 PST 2013


On Fri, Nov 08, 2013 at 01:08:03PM +0300, Dan Carpenter wrote:
> I've shifted the __user markup to make Sparse happy.
> 
> drivers/gpu/drm/tegra/drm.c:138:18: warning: incorrect type in initializer (different address spaces)
> drivers/gpu/drm/tegra/drm.c:138:18:    expected struct drm_tegra_cmdbuf [noderef] <asn:1>*cmdbufs
> drivers/gpu/drm/tegra/drm.c:138:18:    got void *[noderef] <asn:1><noident>
> 
> Signed-off-by: Dan Carpenter <dan.carpenter at oracle.com>

Hi Dan,

I fixed exactly the same sparse warnings (along with many others this
morning). We really ought to have a tag to put into a commit to credit
people who've come up with the same patch at the same time.

Thierry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20131108/98866be1/attachment-0001.pgp>


More information about the dri-devel mailing list