[dpdk-dev] implicit declaration of function rte_igb_pmd_init()
Zhang, Helin
helin.zhang at intel.com
Wed Jul 9 17:34:26 CEST 2014
> -----Original Message-----
> From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of sothy shan
> Sent: Wednesday, July 9, 2014 8:52 PM
> To: dev at dpdk.org
> Subject: [dpdk-dev] implicit declaration of function rte_igb_pmd_init()
>
> Hi All!
>
> I have an error when I compile latest DPDK ovs code. DPDK version is 1.7.
>
> Error is:
>
> ============================================================
> CC main.o
> CC init.o
> In file included from
> /home/cubiq/sothy/dpdk-ovs/openvswitch/datapath/dpdk/init.c:42:0:
> /home/cubiq/sothy/dpdk-ovs/openvswitch/datapath/dpdk/init_drivers.h: In
> function ‘init_drivers’:
> /home/cubiq/sothy/dpdk-ovs/openvswitch/datapath/dpdk/init_drivers.h:49:4:
> error: implicit declaration of function ‘rte_igb_pmd_init’
> [-Werror=implicit-function-declaration]
> (rte_igb_pmd_init() < 0) ||
> ^
> /home/cubiq/sothy/dpdk-ovs/openvswitch/datapath/dpdk/init_drivers.h:52:4:
> error: implicit declaration of function ‘rte_ixgbe_pmd_init’
> [-Werror=implicit-function-declaration]
> (rte_ixgbe_pmd_init() < 0) ||
> ^
> cc1: all warnings being treated as errors
> make[4]: *** [init.o] Erreur 1
> make[3]: *** [all] Erreur 2
> make[3]: quittant le répertoire «
> /home/cubiq/sothy/dpdk-ovs/openvswitch/datapath/dpdk »
> make[2]: *** [app] Erreur 2
> make[2]: quittant le répertoire «
> /home/cubiq/sothy/dpdk-ovs/openvswitch/datapath/dpdk »
> make[1]: *** [all-recursive] Erreur 1
> make[1]: quittant le répertoire « /home/cubiq/sothy/dpdk-ovs/openvswitch »
> make: *** [all] Erreur
>
> ================================================================
> ===============
>
> THanks for your help.
>
> Best regardss
> Sothy
Hi Sothy
As 'PMD_REGISTER_DRIVER' was introduced recently to replace those direct invoking, those functions do not need to be called and have been removed. Please search ' PMD_REGISTER_DRIVER ' to see more details in code.
Regards,
Helin
More information about the dev
mailing list