power: fix link with application
authorPablo de Lara <pablo.de.lara.guarch@intel.com>
Tue, 20 Jan 2015 09:18:15 +0000 (09:18 +0000)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 27 Jan 2015 11:30:36 +0000 (12:30 +0100)
rte_power_freq_min function did not include "extern" keyword,
causing linking errors.

Fixes: 445c6528b55f ("power: common interface for guest and host")

Reported-by: Ildar Mustafin <imustafin@bk.ru>
Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
lib/librte_power/rte_power.h

index 9338069..7d57359 100644 (file)
@@ -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
 }