On 15 May 2018, at 05:42, Ben Pfaff <[email protected]> wrote: > > On Tue, May 15, 2018 at 03:48:59AM +0300, Alin Gabriel Serdean wrote: >> MSVC complains: >> "libopenvswitch.lib(dpif-netdev.obj) : error LNK2019: unresolved external >> symbol pmd_perf_start_iteration referenced in function pmd_thread_main >> libopenvswitch.lib(dpif-netdev.obj) : error LNK2019: unresolved external >> symbol pmd_perf_end_iteration referenced in function pmd_thread_main" >> >> Remove inline keyword from the declaration of: >> `pmd_perf_start_iteration` and `pmd_perf_end_iteration` >> >> More on the subject: >> https://docs.microsoft.com/en-us/cpp/error-messages/tool-errors/function-inlining-problems >> >> Fixes: broken build on Windows >> >> Signed-off-by: Alin Gabriel Serdean <[email protected]> > > It's pretty risky to use "inline" other than as part of "static inline" > because of portability problems, even between different versions of the > same compiler (GCC changed its own default interpretation from one > version to another to comply with C99 rules). > > The OVS coding style document discourages "inline" in .c files anyway. > > Acked-by: Ben Pfaff <[email protected] <mailto:[email protected]>>
Thanks for the quick review Ben. I applied it on master. _______________________________________________ dev mailing list [email protected] https://mail.openvswitch.org/mailman/listinfo/ovs-dev
