]> git.baikalelectronics.ru Git - kernel.git/commit
drm/nouveau: fix annoying nouveau_fence type issue
authorMarcin Slusarz <marcin.slusarz@gmail.com>
Wed, 20 Oct 2010 19:50:24 +0000 (21:50 +0200)
committerBen Skeggs <bskeggs@redhat.com>
Fri, 3 Dec 2010 05:11:07 +0000 (15:11 +1000)
commitd81623c3e1cc361efc6e1ed21f5f93f13fee7784
tree84a7268a64ce58a4dfe533b4e3a5cef79b883053
parenta0747d802022861af335fd60a87222fa867bdfc7
drm/nouveau: fix annoying nouveau_fence type issue

nouveau_fence_* functions are not type safe, which could lead to bugs.
Additionally every use of nouveau_fence_unref had to cast struct
nouveau_fence to void **.
Fix it by renaming old functions and creating static inline functions with
new prototypes. We still need old functions, because we pass function
pointers to ttm.
As we are wrapping functions, drop unused "void *arg" parameter where possible.

Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com>
Signed-off-by: Francisco Jerez <currojerez@riseup.net>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_bo.c
drivers/gpu/drm/nouveau/nouveau_channel.c
drivers/gpu/drm/nouveau/nouveau_drv.c
drivers/gpu/drm/nouveau/nouveau_drv.h
drivers/gpu/drm/nouveau/nouveau_fence.c
drivers/gpu/drm/nouveau/nouveau_gem.c
drivers/gpu/drm/nouveau/nouveau_mem.c