Skip to contentSkip to conversation

clk: h8s2678: Fix compile error

PATCH In review Guenter Roeck 2 participants 2 messages Sep 1, 2015 Common clk

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 clk: h8s2678: Fix compile error

Recent cleanup removed some include files without checking if the cleaned up code still compiles. This results in the following compile error.

drivers/clk/h8300/clk-h8s2678.c: In function ‘h8s2678_pll_clk_setup’:
drivers/clk/h8300/clk-h8s2678.c:99:14: error:
implicit declaration of function ‘kzalloc’
drivers/clk/h8300/clk-h8s2678.c:138:2: error:
implicit declaration of function ‘kfree’

Cc Yoshinori Sato <[email protected]>
Cc Stephen Boyd <[email protected]>
---
 drivers/clk/h8300/clk-h8s2678.c | 1 +
 1 file changed, 1 insertion(+)
drivers/clk/h8300/clk-h8s2678.c +1 -0
index 2a38eb4a2552..6cf38dc1c929 100644
@@ -8,6 +8,7 @@
 #include <linux/err.h>
 #include <linux/device.h>
 #include <linux/of_address.h>
+#include <linux/slab.h>
 
 static DEFINE_SPINLOCK(clklock);
 
Signature · 1 line
2.1.4
#1 lore raw
Quoted 9 lines · Guenter Roeck

Recent cleanup removed some include files without checking if the cleaned up code still compiles. This results in the following compile error.

drivers/clk/h8300/clk-h8s2678.c: In function ‘h8s2678_pll_clk_setup’:
drivers/clk/h8300/clk-h8s2678.c:99:14: error:
implicit declaration of function ‘kzalloc’
drivers/clk/h8300/clk-h8s2678.c:138:2: error:
implicit declaration of function ‘kfree’

Quoted 4 lines
Cc Yoshinori Sato <[email protected]>
Cc Stephen Boyd <[email protected]>

---

Urgh. I thought I compiled that one. Applied to clk-fixes.

Signature · 2 lines
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project