* librte_power/rte_power.h causes link error
@ 2015-01-19 13:55 Ильдар Мустафин
[not found] ` <1421675742.286701346-1BEdWyR9lEpsdVUOrk1QfQ@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: Ильдар Мустафин @ 2015-01-19 13:55 UTC (permalink / raw)
To: dev-VfR2kkLFssw
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[parent not found: <1421675742.286701346-1BEdWyR9lEpsdVUOrk1QfQ@public.gmane.org>]
* Re: librte_power/rte_power.h causes link error [not found] ` <1421675742.286701346-1BEdWyR9lEpsdVUOrk1QfQ@public.gmane.org> @ 2015-01-19 15:47 ` Thomas Monjalon 2015-01-20 9:18 ` [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-VfR2kkLFssw 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
* [PATCH] power: added missing extern keyword in rte_power.h [not found] ` <1421675742.286701346-1BEdWyR9lEpsdVUOrk1QfQ@public.gmane.org> 2015-01-19 15:47 ` Thomas Monjalon @ 2015-01-20 9:18 ` Pablo de Lara [not found] ` <1421745495-10702-1-git-send-email-pablo.de.lara.guarch-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> 1 sibling, 1 reply; 4+ messages in thread From: Pablo de Lara @ 2015-01-20 9:18 UTC (permalink / raw) To: dev-VfR2kkLFssw rte_power_freq_min function did not include "extern" keyword, causing linking errors. Signed-off-by: Pablo de Lara <pablo.de.lara.guarch-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> Reported-by: Ildar Mustafin <imustafin-5URONGGNgjI@public.gmane.org> --- 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 related [flat|nested] 4+ messages in thread
[parent not found: <1421745495-10702-1-git-send-email-pablo.de.lara.guarch-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>]
* Re: [PATCH] power: added missing extern keyword in rte_power.h [not found] ` <1421745495-10702-1-git-send-email-pablo.de.lara.guarch-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> @ 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-VfR2kkLFssw > rte_power_freq_min function did not include "extern" keyword, > causing linking errors. > > Signed-off-by: Pablo de Lara <pablo.de.lara.guarch-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> > Reported-by: Ildar Mustafin <imustafin-5URONGGNgjI@public.gmane.org> Fixes: 445c6528b55f ("power: common interface for guest and host") Acked-by: Thomas Monjalon <thomas.monjalon-pdR9zngts4EAvxtiuMwx3w@public.gmane.org> 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 librte_power/rte_power.h causes link error Ильдар Мустафин
[not found] ` <1421675742.286701346-1BEdWyR9lEpsdVUOrk1QfQ@public.gmane.org>
2015-01-19 15:47 ` Thomas Monjalon
2015-01-20 9:18 ` [PATCH] power: added missing extern keyword in rte_power.h Pablo de Lara
[not found] ` <1421745495-10702-1-git-send-email-pablo.de.lara.guarch-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
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).