Re: [PATCH 1/2] EDAC, altera: remove useless casts

2016-04-23 Thread Borislav Petkov
On Sat, Apr 16, 2016 at 10:13:55PM +0200, Arnd Bergmann wrote: > The altera EDAC driver refers to its per-device data > using a cast to '(void *)', which makes the pointer > non-const, though both the source and destination are > actually const. > > Removing the annotation makes the reference

Re: [PATCH 1/2] EDAC, altera: remove useless casts

2016-04-23 Thread Borislav Petkov
On Sat, Apr 16, 2016 at 10:13:55PM +0200, Arnd Bergmann wrote: > The altera EDAC driver refers to its per-device data > using a cast to '(void *)', which makes the pointer > non-const, though both the source and destination are > actually const. > > Removing the annotation makes the reference

Re: [PATCH 1/2] EDAC, altera: remove useless casts

2016-04-18 Thread Thor Thayer
On 04/16/2016 03:13 PM, Arnd Bergmann wrote: The altera EDAC driver refers to its per-device data using a cast to '(void *)', which makes the pointer non-const, though both the source and destination are actually const. Removing the annotation makes the reference (almost) fit into a single

Re: [PATCH 1/2] EDAC, altera: remove useless casts

2016-04-18 Thread Thor Thayer
On 04/16/2016 03:13 PM, Arnd Bergmann wrote: The altera EDAC driver refers to its per-device data using a cast to '(void *)', which makes the pointer non-const, though both the source and destination are actually const. Removing the annotation makes the reference (almost) fit into a single

[PATCH 1/2] EDAC, altera: remove useless casts

2016-04-16 Thread Arnd Bergmann
The altera EDAC driver refers to its per-device data using a cast to '(void *)', which makes the pointer non-const, though both the source and destination are actually const. Removing the annotation makes the reference (almost) fit into a single line for improved readability, and ensures that it

[PATCH 1/2] EDAC, altera: remove useless casts

2016-04-16 Thread Arnd Bergmann
The altera EDAC driver refers to its per-device data using a cast to '(void *)', which makes the pointer non-const, though both the source and destination are actually const. Removing the annotation makes the reference (almost) fit into a single line for improved readability, and ensures that it