Re: [PATCH v2] edac, i5000, i5400: fix definition of nrecmemb register

2017-06-29 Thread Borislav Petkov
On Wed, Jun 28, 2017 at 08:57:29PM -0400, Jérémy Lefaure wrote: > In i5000 and i5400 edac drivers, the register nrecmemb is defined as a > 16 bits value which result in wrong shifts in the code: > CHECK drivers/edac/i5000_edac.c > drivers/edac/i5000_edac.c:485:15: warning: right shift by bigger

[PATCH v2] edac, i5000, i5400: fix definition of nrecmemb register

2017-06-28 Thread Jérémy Lefaure
In i5000 and i5400 edac drivers, the register nrecmemb is defined as a 16 bits value which result in wrong shifts in the code: CHECK drivers/edac/i5000_edac.c drivers/edac/i5000_edac.c:485:15: warning: right shift by bigger than source value drivers/edac/i5000_edac.c:580:23: warning: right shif