]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - drivers/base/devres.c
devres: constify p in devm_kfree()
authorBartosz Golaszewski <brgl@bgdev.pl>
Sun, 14 Oct 2018 15:20:07 +0000 (17:20 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 16 Oct 2018 10:53:27 +0000 (12:53 +0200)
commit0571967dfb5d2573c2a06871517d748932a899d1
tree9f91e41a844cd43d2dd302132efe287789d89ddd
parent8514c470dc18e58f27dee10a787175ef8f31162f
devres: constify p in devm_kfree()

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 <brgl@bgdev.pl>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/devres.c
include/linux/device.h