Re: [PATCH] spi: bcm2835aux: use 64-bit arithmetic instead of 32-bit

2018-02-12 Thread Trent Piepho
On Wed, 2018-02-07 at 10:00 -0600, Gustavo A. R. Silva wrote: > Add suffix ULL to constant 9 in order to give the compiler complete > information about the proper arithmetic to use. Notice that this > constant is used in a context that expects an expression of type > unsigned long long (64 bits, un

Re: [PATCH] spi: bcm2835aux: use 64-bit arithmetic instead of 32-bit

2018-02-12 Thread Florian Fainelli
On 02/12/2018 11:11 AM, Ard Biesheuvel wrote: > On 12 February 2018 at 19:10, Florian Fainelli wrote: >> On 02/12/2018 10:45 AM, Ard Biesheuvel wrote: >>> On 12 February 2018 at 18:04, Gustavo A. R. Silva >>> wrote: Hi Ard, On 02/08/2018 03:54 AM, Ard Biesheuvel wrote: > >

Re: [PATCH] spi: bcm2835aux: use 64-bit arithmetic instead of 32-bit

2018-02-12 Thread Ard Biesheuvel
On 12 February 2018 at 19:10, Florian Fainelli wrote: > On 02/12/2018 10:45 AM, Ard Biesheuvel wrote: >> On 12 February 2018 at 18:04, Gustavo A. R. Silva >> wrote: >>> Hi Ard, >>> >>> On 02/08/2018 03:54 AM, Ard Biesheuvel wrote: On 7 February 2018 at 16:00, Gustavo A. R. Silva w

Re: [PATCH] spi: bcm2835aux: use 64-bit arithmetic instead of 32-bit

2018-02-12 Thread Florian Fainelli
On 02/12/2018 10:45 AM, Ard Biesheuvel wrote: > On 12 February 2018 at 18:04, Gustavo A. R. Silva > wrote: >> Hi Ard, >> >> On 02/08/2018 03:54 AM, Ard Biesheuvel wrote: >>> >>> On 7 February 2018 at 16:00, Gustavo A. R. Silva >>> wrote: Add suffix ULL to constant 9 in order to give the

Re: [PATCH] spi: bcm2835aux: use 64-bit arithmetic instead of 32-bit

2018-02-12 Thread Ard Biesheuvel
On 12 February 2018 at 18:04, Gustavo A. R. Silva wrote: > Hi Ard, > > On 02/08/2018 03:54 AM, Ard Biesheuvel wrote: >> >> On 7 February 2018 at 16:00, Gustavo A. R. Silva >> wrote: >>> >>> Add suffix ULL to constant 9 in order to give the compiler complete >>> information about the proper arithm

Re: [PATCH] spi: bcm2835aux: use 64-bit arithmetic instead of 32-bit

2018-02-12 Thread Gustavo A. R. Silva
Hi Ard, On 02/08/2018 03:54 AM, Ard Biesheuvel wrote: On 7 February 2018 at 16:00, Gustavo A. R. Silva wrote: Add suffix ULL to constant 9 in order to give the compiler complete information about the proper arithmetic to use. Notice that this constant is used in a context that expects an expre

Re: [PATCH] spi: bcm2835aux: use 64-bit arithmetic instead of 32-bit

2018-02-12 Thread Gustavo A. R. Silva
Hi Eric, On 02/08/2018 02:22 AM, Eric Anholt wrote: "Gustavo A. R. Silva" writes: Add suffix ULL to constant 9 in order to give the compiler complete information about the proper arithmetic to use. Notice that this constant is used in a context that expects an expression of type unsigned long

Re: [PATCH] spi: bcm2835aux: use 64-bit arithmetic instead of 32-bit

2018-02-08 Thread Ard Biesheuvel
On 7 February 2018 at 16:00, Gustavo A. R. Silva wrote: > Add suffix ULL to constant 9 in order to give the compiler complete > information about the proper arithmetic to use. Notice that this > constant is used in a context that expects an expression of type > unsigned long long (64 bits, unsigne

Re: [PATCH] spi: bcm2835aux: use 64-bit arithmetic instead of 32-bit

2018-02-08 Thread Eric Anholt
"Gustavo A. R. Silva" writes: > Add suffix ULL to constant 9 in order to give the compiler complete > information about the proper arithmetic to use. Notice that this > constant is used in a context that expects an expression of type > unsigned long long (64 bits, unsigned). > > The expression tf

[PATCH] spi: bcm2835aux: use 64-bit arithmetic instead of 32-bit

2018-02-07 Thread Gustavo A. R. Silva
Add suffix ULL to constant 9 in order to give the compiler complete information about the proper arithmetic to use. Notice that this constant is used in a context that expects an expression of type unsigned long long (64 bits, unsigned). The expression tfr->len * 9 * 100 is currently being eva