Re: [PATCH v5 1/4] devres: constify p in devm_kfree()

2018-09-28 Thread Geert Uytterhoeven
On Fri, Sep 28, 2018 at 9:14 AM Bartosz Golaszewski wrote: > Make devm_kfree() signature uniform with that of kfree(). To avoid > compiler warnings: cast p to (void *) when calling devres_destroy(). Hmm, devres_destroy(), devres_remove(), and find_dr() really should take const void pointers.

Re: [PATCH v5 1/4] devres: constify p in devm_kfree()

2018-09-28 Thread Geert Uytterhoeven
On Fri, Sep 28, 2018 at 9:14 AM Bartosz Golaszewski wrote: > Make devm_kfree() signature uniform with that of kfree(). To avoid > compiler warnings: cast p to (void *) when calling devres_destroy(). Hmm, devres_destroy(), devres_remove(), and find_dr() really should take const void pointers.

[PATCH v5 1/4] devres: constify p in devm_kfree()

2018-09-28 Thread Bartosz Golaszewski
Make devm_kfree() signature uniform with that of kfree(). To avoid compiler warnings: cast p to (void *) when calling devres_destroy(). Signed-off-by: Bartosz Golaszewski Reviewed-by: Bjorn Andersson --- drivers/base/devres.c | 5 +++-- include/linux/device.h | 2 +- 2 files changed, 4

[PATCH v5 1/4] devres: constify p in devm_kfree()

2018-09-28 Thread Bartosz Golaszewski
Make devm_kfree() signature uniform with that of kfree(). To avoid compiler warnings: cast p to (void *) when calling devres_destroy(). Signed-off-by: Bartosz Golaszewski Reviewed-by: Bjorn Andersson --- drivers/base/devres.c | 5 +++-- include/linux/device.h | 2 +- 2 files changed, 4