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,

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,

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

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

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

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:

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

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

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

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

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

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

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

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

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,

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,

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

[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

[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