Re: [PATCH] riscv: pass machine size to sparse

2018-06-04 Thread Palmer Dabbelt
On Thu, 31 May 2018 08:35:54 PDT (-0700), luc.vanoostenr...@gmail.com wrote: On Thu, May 31, 2018 at 05:09:21AM -0700, Palmer Dabbelt wrote: On Mon, 28 May 2018 23:14:20 PDT (-0700), yamada.masah...@socionext.com wrote: > 2018-05-29 15:11 GMT+09:00 Christoph Hellwig : > > On Mon, May 28, 2018 at

Re: [PATCH] riscv: pass machine size to sparse

2018-05-31 Thread Luc Van Oostenryck
On Thu, May 31, 2018 at 05:09:21AM -0700, Palmer Dabbelt wrote: > On Mon, 28 May 2018 23:14:20 PDT (-0700), yamada.masah...@socionext.com wrote: > > 2018-05-29 15:11 GMT+09:00 Christoph Hellwig : > > > On Mon, May 28, 2018 at 06:35:05PM +0200, Luc Van Oostenryck wrote: > > > > By default, sparse as

Re: [PATCH] riscv: pass machine size to sparse

2018-05-31 Thread Palmer Dabbelt
On Mon, 28 May 2018 23:14:20 PDT (-0700), yamada.masah...@socionext.com wrote: 2018-05-29 15:11 GMT+09:00 Christoph Hellwig : On Mon, May 28, 2018 at 06:35:05PM +0200, Luc Van Oostenryck wrote: By default, sparse assumes a 64bit machine when compiled on x86-64 and 32bit when compiled on anythin

Re: [PATCH] riscv: pass machine size to sparse

2018-05-28 Thread Masahiro Yamada
2018-05-29 15:11 GMT+09:00 Christoph Hellwig : > On Mon, May 28, 2018 at 06:35:05PM +0200, Luc Van Oostenryck wrote: >> By default, sparse assumes a 64bit machine when compiled on x86-64 >> and 32bit when compiled on anything else. >> >> This can of course create all sort of problems when this does

Re: [PATCH] riscv: pass machine size to sparse

2018-05-28 Thread Christoph Hellwig
On Mon, May 28, 2018 at 06:35:05PM +0200, Luc Van Oostenryck wrote: > By default, sparse assumes a 64bit machine when compiled on x86-64 > and 32bit when compiled on anything else. > > This can of course create all sort of problems when this doesn't > correspond to the target's machine size, like

[PATCH] riscv: pass machine size to sparse

2018-05-28 Thread Luc Van Oostenryck
By default, sparse assumes a 64bit machine when compiled on x86-64 and 32bit when compiled on anything else. This can of course create all sort of problems when this doesn't correspond to the target's machine size, like issuing false warnings like: 'shift too big (32) for type unsigned long' or is