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.
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.
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
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
4 matches
Mail list logo