Message ID | 20191023160000.409-1-krzk@kernel.org (mailing list archive) |
---|---|
State | Not Applicable |
Headers | show |
Series | clk: samsung: exynos5433: Add missing slab.h header for kfree() | expand |
On 10/23/19 18:00, Krzysztof Kozlowski wrote: > 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] > > Reported-by: kbuild test robot <lkp@intel.com> > Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org> Thanks, I applied it and squashed with the fix patch from Marek that introduced the above issue.
diff --git a/drivers/clk/samsung/clk-exynos5433.c b/drivers/clk/samsung/clk-exynos5433.c index 0b60316331a0..4b1aa9382ad2 100644 --- a/drivers/clk/samsung/clk-exynos5433.c +++ b/drivers/clk/samsung/clk-exynos5433.c @@ -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>
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] Reported-by: kbuild test robot <lkp@intel.com> Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org> --- drivers/clk/samsung/clk-exynos5433.c | 1 + 1 file changed, 1 insertion(+)