clk: samsung: exynos5433: Add missing slab.h header for kfree()
Subsystems (3)
Krzysztof Kozlowski
maintainerPATCH 1/1 clk: samsung: exynos5433: Add missing slab.h header for kfree()
Usage of kfree() requires slab.h header. Otherwise building on x86_64 with COMPILE_TEST fails with:
drivers/clk/samsung/clk-exynos5433.c: In function ‘exynos5433_cmu_probe’:
drivers/clk/samsung/clk-exynos5433.c:5598:4: error: implicit declaration of function ‘kfree’; did you mean ‘vfree’? [-Werror=implicit-function-declaration]
--- drivers/clk/samsung/clk-exynos5433.c | 1 + 1 file changed, 1 insertion(+)
drivers/clk/samsung/clk-exynos5433.c +1 -0
@@ -13,6 +13,7 @@#include <linux/of_device.h> #include <linux/platform_device.h> #include <linux/pm_runtime.h> +#include <linux/slab.h> #include <dt-bindings/clock/exynos5433.h>
Signature · 1 line
2.17.1
Sylwester Nawrocki
maintainerQuoted 9 lines · Krzysztof Kozlowski
Usage of
kfree()requiresslab.hheader. Otherwise building onx86_64withCOMPILE_TESTfails with:
drivers/clk/samsung/clk-exynos5433.c: In function ‘exynos5433_cmu_probe’:
drivers/clk/samsung/clk-exynos5433.c:5598:4: error: implicit declaration
of function ‘kfree’; did you mean ‘vfree’? [-Werror=implicit-function-declaration]Reported-by kbuild test robot <[email protected]>Signed-off-by Krzysztof Kozlowski <[email protected]>
Thanks, I applied it and squashed with the fix patch from Marek that introduced the above issue.
Signature · 2 lines
Regards, Sylwester