Skip to contentSkip to conversation

clk.h: inline clk_get_by_name()

PATCH In review Andreas Bießmann 3 participants 4 messages Aug 15, 2016 – Aug 16, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 clk.h: inline clk_get_by_name()

Fix compile warning for non OF_CONTROL builds:

---8<---
In file included from /Volumes/devel/u-boot/drivers/gpio/atmel_pio4.c:10:0:
/Volumes/devel/u-boot/include/clk.h:107:12: warning: 'clk_get_by_name' defined but not used [-Wunused-function] --->8---

---

 include/clk.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/clk.h +1 -1
index 161bc28..dc18b03 100644
@@ -104,7 +104,7 @@ static inline int clk_get_by_index(struct udevice *dev, int index,
 	return -ENOSYS;
 }
 
-static int clk_get_by_name(struct udevice *dev, const char *name,
+static inline int clk_get_by_name(struct udevice *dev, const char *name,
 			   struct clk *clk)
 {
 	return -ENOSYS;
Signature · 1 line
2.7.4 (Apple Git-66)
#1 lore raw

PATCH 1/1 clk.h: inline clk_get_by_name()

Quoted 6 lines · Andreas Bie?mann

Fix compile warning for non OF_CONTROL builds:

---8<---
In file included from /Volumes/devel/u-boot/drivers/gpio/atmel_pio4.c:10:0:
/Volumes/devel/u-boot/include/clk.h:107:12: warning: 'clk_get_by_name' defined but not used [-Wunused-function] --->8---

#2 lore raw
In reply to Andreas Bießmann

Dear =?utf-8?q?Andreas_Bie=C3=9Fmann?=,

Quoted 7 lines · <[email protected]> writes:

Fix compile warning for non OF_CONTROL builds:

---8<---
In file included from /Volumes/devel/u-boot/drivers/gpio/atmel_pio4.c:10:0:
/Volumes/devel/u-boot/include/clk.h:107:12: warning: 'clk_get_by_name' defined but not used [-Wunused-function] --->8---

Quoted 6 lines

---

include/clk.h | 2 +-

1 file changed, 1 insertion(+), 1 deletion(-)

applied to u-boot-atmel/master, thanks!

Best regards,
Andreas Bie?mann

#3 lore raw

PATCH 1/1 clk.h: inline clk_get_by_name()

In reply to Andreas Bießmann
Quoted 8 lines · Andreas Bie?mann

Fix compile warning for non OF_CONTROL builds:

---8<---
In file included from /Volumes/devel/u-boot/drivers/gpio/atmel_pio4.c:10:0:
/Volumes/devel/u-boot/include/clk.h:107:12: warning: 'clk_get_by_name' defined but not used [-Wunused-function] --->8---

Quoted 5 lines

---

 include/clk.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)