Thread (1 message) 1 message, 1 author, 2015-01-20
DORMANTno replies

[PATCH] power: added missing extern keyword in rte_power.h

From: Pablo de Lara <hidden>
Date: 2015-01-20 09:18:15
Subsystem: library code, the rest · Maintainers: Andrew Morton, Linus Torvalds

Possibly related (same subject, not in this thread)

rte_power_freq_min function did not include "extern" keyword,
causing linking errors.

Signed-off-by: Pablo de Lara <redacted>
Reported-by: Ildar Mustafin <redacted>
---
 lib/librte_power/rte_power.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/lib/librte_power/rte_power.h b/lib/librte_power/rte_power.h
index 9338069..7d57359 100644
--- a/lib/librte_power/rte_power.h
+++ b/lib/librte_power/rte_power.h
@@ -242,7 +242,7 @@ extern rte_power_freq_change_t rte_power_freq_max;
  *  - 0 on success without frequency changed.
  *  - Negative on error.
  */
-rte_power_freq_change_t rte_power_freq_min;
+extern rte_power_freq_change_t rte_power_freq_min;
 
 #ifdef __cplusplus
 }
-- 
1.7.4.1
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help