DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev]   librte_power/rte_power.h causes link error
@ 2015-01-19 13:55 Ильдар Мустафин
  2015-01-19 15:47 ` Thomas Monjalon
  2015-01-20  9:18 ` [dpdk-dev] [PATCH] power: added missing extern keyword in rte_power.h Pablo de Lara
  0 siblings, 2 replies; 4+ messages in thread
From: Ильдар Мустафин @ 2015-01-19 13:55 UTC (permalink / raw)
  To: dev

 Hi list,

I got " multiple definition of 'rte_power_freq_min' " link error, while compiling my dpdk project.
I think extern keyword was missed in rte_power.h header for some reason:

/**
 * Scale down the frequency of a specific lcore to the lowest according to the
 * available frequencies.
 * Review each environments specific documentation for usage..
 *
 * @param lcore_id
 *  lcore id.
 *
 * @return
 *  - 1 on success with frequency changed.
 *  - 0 on success without frequency changed.
 *  - Negative on error.
 */
rte_power_freq_change_t rte_power_freq_min;


Thanks, 
Ildar


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [dpdk-dev] librte_power/rte_power.h causes link error
  2015-01-19 13:55 [dpdk-dev] librte_power/rte_power.h causes link error Ильдар Мустафин
@ 2015-01-19 15:47 ` Thomas Monjalon
  2015-01-20  9:18 ` [dpdk-dev] [PATCH] power: added missing extern keyword in rte_power.h Pablo de Lara
  1 sibling, 0 replies; 4+ messages in thread
From: Thomas Monjalon @ 2015-01-19 15:47 UTC (permalink / raw)
  To: Ильдар
	Мустафин
  Cc: dev

Hi,

2015-01-19 16:55, Ильдар Мустафин:
>  Hi list,
> 
> I got " multiple definition of 'rte_power_freq_min' " link error, while compiling my dpdk project.
> I think extern keyword was missed in rte_power.h header for some reason:

You're right.
It can be seen in this commit:
	http://dpdk.org/browse/dpdk/commit/lib/librte_power/rte_power.h?id=445c6528b55f9025

Thanks for reporting
-- 
Thomas

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [dpdk-dev] [PATCH] power: added missing extern keyword in rte_power.h
  2015-01-19 13:55 [dpdk-dev] librte_power/rte_power.h causes link error Ильдар Мустафин
  2015-01-19 15:47 ` Thomas Monjalon
@ 2015-01-20  9:18 ` Pablo de Lara
  2015-01-27 11:48   ` Thomas Monjalon
  1 sibling, 1 reply; 4+ messages in thread
From: Pablo de Lara @ 2015-01-20  9:18 UTC (permalink / raw)
  To: dev

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

Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
Reported-by: Ildar Mustafin <imustafin@bk.ru>
---
 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [dpdk-dev] [PATCH] power: added missing extern keyword in rte_power.h
  2015-01-20  9:18 ` [dpdk-dev] [PATCH] power: added missing extern keyword in rte_power.h Pablo de Lara
@ 2015-01-27 11:48   ` Thomas Monjalon
  0 siblings, 0 replies; 4+ messages in thread
From: Thomas Monjalon @ 2015-01-27 11:48 UTC (permalink / raw)
  To: Pablo de Lara; +Cc: dev

> rte_power_freq_min function did not include "extern" keyword,
> causing linking errors.
> 
> Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
> Reported-by: Ildar Mustafin <imustafin@bk.ru>

Fixes: 445c6528b55f ("power: common interface for guest and host")
Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>

Applied

Thanks
-- 
Thomas

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-01-27 11:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-19 13:55 [dpdk-dev] librte_power/rte_power.h causes link error Ильдар Мустафин
2015-01-19 15:47 ` Thomas Monjalon
2015-01-20  9:18 ` [dpdk-dev] [PATCH] power: added missing extern keyword in rte_power.h Pablo de Lara
2015-01-27 11:48   ` Thomas Monjalon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).