From 2d2f105f79921025bce1b9015378612328d2f06e Mon Sep 17 00:00:00 2001 From: Pekka Paalanen Date: Wed, 4 Feb 2009 21:44:50 +0200 Subject: nouveau: fix type warnings: void* arith, un/signed nouveau_notifier.c had two places where void* was used in arithmetic, fixed by using char*. nouveau_dma_wait(), nouveau_notifier_wait_status() and nouveau_resource_alloc() had signed/unsigned comparison warnings, fixed by changing the function parameter into an unsigned type. Signed-off-by: Pekka Paalanen --- libdrm/nouveau/nouveau_notifier.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libdrm/nouveau/nouveau_notifier.c') diff --git a/libdrm/nouveau/nouveau_notifier.c b/libdrm/nouveau/nouveau_notifier.c index ccfcc530..8f1d535e 100644 --- a/libdrm/nouveau/nouveau_notifier.c +++ b/libdrm/nouveau/nouveau_notifier.c @@ -28,7 +28,7 @@ #define NOTIFIER(__v) \ struct nouveau_notifier_priv *nvnotify = nouveau_notifier(notifier); \ - volatile uint32_t *__v = (void*)nvnotify->map + (id * 32) + volatile uint32_t *__v = (uint32_t *)((char *)nvnotify->map + (id * 32)) int nouveau_notifier_alloc(struct nouveau_channel *chan, uint32_t handle, @@ -57,7 +57,7 @@ nouveau_notifier_alloc(struct nouveau_channel *chan, uint32_t handle, return ret; } - nvnotify->map = (void *)nouveau_channel(chan)->notifier_block + + nvnotify->map = (char *)nouveau_channel(chan)->notifier_block + nvnotify->drm.offset; *notifier = &nvnotify->base; return 0; @@ -125,7 +125,7 @@ gettime(void) int nouveau_notifier_wait_status(struct nouveau_notifier *notifier, int id, - int status, double timeout) + uint32_t status, double timeout) { NOTIFIER(n); double time = 0, t_start = gettime(); -- cgit v1.2.3