From: Thomas Monjalon <thomas.monjalon@6wind.com>
To: Helin Zhang <helin.zhang@intel.com>
Cc: dev@dpdk.org
Subject: Re: [dpdk-dev] [PATCH v2] kni: bug fix for compile issue in KNI on Fedora 18 with kernel 3.6.10
Date: Thu, 22 May 2014 16:32:51 +0200 [thread overview]
Message-ID: <1909311.37348vjfnn@xps13> (raw)
In-Reply-To: <1400729717-6195-1-git-send-email-helin.zhang@intel.com>
2014-05-22 11:35, Helin Zhang:
> Error of "implicit-function-declaration" can be seen when building KNI
> kernel module on Linux kernel 3.6.10 platform, as follows.
> "x86_64-native-linuxapp-gcc/build/lib/librte_eal/linuxapp/kni/igb_ethtool.c:
> In function \u2018igb_get_eee\u2019:
> x86_64-native-linuxapp-gcc/build/lib/librte_eal/linuxapp/kni/igb_ethtool.c:
> 2441:4: error: implicit declaration of function
> \u2018mmd_eee_adv_to_ethtool_adv_t\u2019
> [-Werror=implicit-function-declaration]
> x86_64-native-linuxapp-gcc/build/lib/librte_eal/linuxapp/kni/igb_ethtool.c:
> In function \u2018igb_set_eee\u2019:
> x86_64-native-linuxapp-gcc/build/lib/librte_eal/linuxapp/kni/igb_ethtool.c:
> 2551:2: error: implicit declaration of function
> \u2018ethtool_adv_to_mmd_eee_adv_t\u2019
> [-Werror=implicit-function-declaration]"
>
> The root cause is as follows.
> On Fedora 18 with kernel 3.6.10, ETHTOOL_GEEE is defined in Linux
> header file of "linux/ethtool.h", while is not defined in most of other
> linux kernel versions.
> mmd_eee_cap_to_ethtool_sup_t(), mmd_eee_adv_to_ethtool_adv_t() and
> ethtool_adv_to_mmd_eee_adv_t() in kcompat.h are disabled by "#if
> !defined(ETHTOOL_GEEE) || (RHEL_RELEASE_CODE && RHEL_RELEASE_CODE <=
> RHEL_RELEASE_VERSION(6,4))", while are called in igb_get_eee() in
> igb_ethtool.c which is enabled by "#ifdef ETHTOOL_GEEE".
>
> Signed-off-by: Helin Zhang <helin.zhang@intel.com>
Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
Applied for version 1.7.0.
Thanks
--
Thomas
prev parent reply other threads:[~2014-05-22 14:32 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-22 3:35 Helin Zhang
2014-05-22 14:32 ` Thomas Monjalon [this message]
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=1909311.37348vjfnn@xps13 \
--to=thomas.monjalon@6wind.com \
--cc=dev@dpdk.org \
--cc=helin.zhang@intel.com \
/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 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).