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

2018-09-20 Thread Bjorn Andersson
On Tue 28 Aug 02:33 PDT 2018, Bartosz Golaszewski wrote: > Make devm_kfree() signature uniform with that of kfree(). To avoid > compiler warnings: cast p to (void *) when calling devres_destroy(). > Reviewed-by: Bjorn Andersson Regards, Bjorn > Signed-off-by: Bartosz Golaszewski > --- > dri

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

2018-08-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 --- drivers/base/devres.c | 5 +++-- include/linux/device.h | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff -