All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pablo de Lara <pablo.de.lara.guarch-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
To: dev-VfR2kkLFssw@public.gmane.org
Subject: [PATCH] power: added missing extern keyword in rte_power.h
Date: Tue, 20 Jan 2015 09:18:15 +0000	[thread overview]
Message-ID: <1421745495-10702-1-git-send-email-pablo.de.lara.guarch@intel.com> (raw)
In-Reply-To: <1421675742.286701346-1BEdWyR9lEpsdVUOrk1QfQ@public.gmane.org>

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

  parent reply	other threads:[~2015-01-20  9:18 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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   ` Pablo de Lara [this message]
     [not found]     ` <1421745495-10702-1-git-send-email-pablo.de.lara.guarch-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2015-01-27 11:48       ` [PATCH] power: added missing extern keyword in rte_power.h Thomas Monjalon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1421745495-10702-1-git-send-email-pablo.de.lara.guarch@intel.com \
    --to=pablo.de.lara.guarch-ral2jqcrhueavxtiumwx3w@public.gmane.org \
    --cc=dev-VfR2kkLFssw@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.