Re: void* arithmnetic

2007-11-30 Thread Geert Uytterhoeven
On Thu, 29 Nov 2007, WANG Cong wrote: > On Thu, Nov 29, 2007 at 09:38:46AM +0200, Benny Halevy wrote: > >On Nov. 29, 2007, 3:19 +0200, "Ming Lei" <[EMAIL PROTECTED]> wrote: > >> 2007/11/29, Jan Engelhardt <[EMAIL PROTECTED]>: > >>> On Nov 29 2007 01:05, J.A. Magallón wrote: > Since begin of

Re: void* arithmnetic

2007-11-30 Thread Geert Uytterhoeven
On Thu, 29 Nov 2007, WANG Cong wrote: On Thu, Nov 29, 2007 at 09:38:46AM +0200, Benny Halevy wrote: On Nov. 29, 2007, 3:19 +0200, Ming Lei [EMAIL PROTECTED] wrote: 2007/11/29, Jan Engelhardt [EMAIL PROTECTED]: On Nov 29 2007 01:05, J.A. Magallón wrote: Since begin of the ages the build of

Re: void* arithmnetic

2007-11-29 Thread WANG Cong
On Thu, Nov 29, 2007 at 09:38:46AM +0200, Benny Halevy wrote: >On Nov. 29, 2007, 3:19 +0200, "Ming Lei" <[EMAIL PROTECTED]> wrote: >> 2007/11/29, Jan Engelhardt <[EMAIL PROTECTED]>: >>> On Nov 29 2007 01:05, J.A. Magallón wrote: Since begin of the ages the build of the nvidia driver says

Re: void* arithmnetic

2007-11-29 Thread WANG Cong
On Thu, Nov 29, 2007 at 09:38:46AM +0200, Benny Halevy wrote: On Nov. 29, 2007, 3:19 +0200, Ming Lei [EMAIL PROTECTED] wrote: 2007/11/29, Jan Engelhardt [EMAIL PROTECTED]: On Nov 29 2007 01:05, J.A. Magallón wrote: Since begin of the ages the build of the nvidia driver says things like this:

Re: void* arithmnetic

2007-11-28 Thread Benny Halevy
On Nov. 29, 2007, 3:19 +0200, "Ming Lei" <[EMAIL PROTECTED]> wrote: > 2007/11/29, Jan Engelhardt <[EMAIL PROTECTED]>: >> On Nov 29 2007 01:05, J.A. Magallón wrote: >>> Since begin of the ages the build of the nvidia driver says things like >>> this: >>> >> Explicitly adding -Wpointer-arith to ones

Re: void* arithmnetic

2007-11-28 Thread Ming Lei
2007/11/29, Jan Engelhardt <[EMAIL PROTECTED]>: > > On Nov 29 2007 01:05, J.A. Magallón wrote: > > > >Since begin of the ages the build of the nvidia driver says things like > >this: > > > > Explicitly adding -Wpointer-arith to ones own Makefile is like > admitting the code might be problematic.

Re: void* arithmnetic

2007-11-28 Thread Jan Engelhardt
On Nov 29 2007 01:05, J.A. Magallón wrote: > >Since begin of the ages the build of the nvidia driver says things like >this: > Explicitly adding -Wpointer-arith to ones own Makefile is like admitting the code might be problematic. :-> I think sizeof(void *) == 1 is taken as granted as

Re: void* arithmnetic

2007-11-28 Thread Arnaldo Carvalho de Melo
Em Thu, Nov 29, 2007 at 01:05:31AM +0100, J.A. Magallón escreveu: > Hi all... > > Since begin of the ages the build of the nvidia driver says things like > this: > > include/asm/compat.h:210: warning: pointer of type 'void *' used in arithmetic > > There are several of this warnings. The code

void* arithmnetic

2007-11-28 Thread J.A. Magallón
Hi all... Since begin of the ages the build of the nvidia driver says things like this: include/asm/compat.h:210: warning: pointer of type 'void *' used in arithmetic There are several of this warnings. The code in question for this example is: static __inline__ void __user

void* arithmnetic

2007-11-28 Thread J.A. Magallón
Hi all... Since begin of the ages the build of the nvidia driver says things like this: include/asm/compat.h:210: warning: pointer of type 'void *' used in arithmetic There are several of this warnings. The code in question for this example is: static __inline__ void __user

Re: void* arithmnetic

2007-11-28 Thread Arnaldo Carvalho de Melo
Em Thu, Nov 29, 2007 at 01:05:31AM +0100, J.A. Magallón escreveu: Hi all... Since begin of the ages the build of the nvidia driver says things like this: include/asm/compat.h:210: warning: pointer of type 'void *' used in arithmetic There are several of this warnings. The code in

Re: void* arithmnetic

2007-11-28 Thread Jan Engelhardt
On Nov 29 2007 01:05, J.A. Magallón wrote: Since begin of the ages the build of the nvidia driver says things like this: Explicitly adding -Wpointer-arith to ones own Makefile is like admitting the code might be problematic. :- I think sizeof(void *) == 1 is taken as granted as sizeof(int) =

Re: void* arithmnetic

2007-11-28 Thread Ming Lei
2007/11/29, Jan Engelhardt [EMAIL PROTECTED]: On Nov 29 2007 01:05, J.A. Magallón wrote: Since begin of the ages the build of the nvidia driver says things like this: Explicitly adding -Wpointer-arith to ones own Makefile is like admitting the code might be problematic. :- I think

Re: void* arithmnetic

2007-11-28 Thread Benny Halevy
On Nov. 29, 2007, 3:19 +0200, Ming Lei [EMAIL PROTECTED] wrote: 2007/11/29, Jan Engelhardt [EMAIL PROTECTED]: On Nov 29 2007 01:05, J.A. Magallón wrote: Since begin of the ages the build of the nvidia driver says things like this: Explicitly adding -Wpointer-arith to ones own Makefile is