Re: [PATCH] Fix warning in prefetch_range

From: Brian Gerst
Date: Mon Apr 26 2004 - 07:31:06 EST


Andrew Morton wrote:
Brian Gerst <bgerst@xxxxxxxxxxxxx> wrote:

Fix this warning:
include/linux/prefetch.h: In function `prefetch_range':
include/linux/prefetch.h:62: warning: pointer of type `void *' used in arithmetic



eh? That's a gcc extension which has worked silently since forever.

What compiler version is generating the warning?


gcc (GCC) 3.3.3 20040412 (Red Hat Linux 3.3.3-7)

I saw the warning when compiling the nvidia driver, which uses -Wpointer-arith. I'll drop that switch instead.

--
Brian Gerst
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/