[dpdk-dev] [PATCH] spinlock:move constructor function out of header

2016-07-15 Thread Thomas Monjalon
2016-07-14 22:45, Wiles, Keith: > > On Jul 14, 2016, at 2:59 PM, Thomas Monjalon > > wrote: > > > > Thanks Keith for continuing work. > > > > 2016-07-14 14:31, Keith Wiles: > >> lib/librte_eal/bsdapp/eal/Makefile | 1 + > >> lib/librte_eal/common/arch/arm/rte_spinlock.c |

[dpdk-dev] [PATCH] spinlock:move constructor function out of header

2016-07-14 Thread Wiles, Keith
> On Jul 14, 2016, at 2:59 PM, Thomas Monjalon > wrote: > > Thanks Keith for continuing work. > > 2016-07-14 14:31, Keith Wiles: >> Moving the rte_rtm_init() constructor routine out of the >> header file and into a new rte_spinlock.c for all archs/platforms. >> Having constructor routines in

[dpdk-dev] [PATCH] spinlock:move constructor function out of header

2016-07-14 Thread Thomas Monjalon
Thanks Keith for continuing work. 2016-07-14 14:31, Keith Wiles: > Moving the rte_rtm_init() constructor routine out of the > header file and into a new rte_spinlock.c for all archs/platforms. > Having constructor routines in a header file is not a good > place to keep these types of functions. >

[dpdk-dev] [PATCH] spinlock:move constructor function out of header

2016-07-14 Thread Keith Wiles
Moving the rte_rtm_init() constructor routine out of the header file and into a new rte_spinlock.c for all archs/platforms. Having constructor routines in a header file is not a good place to keep these types of functions. The problem is with linking 3rd party libraries when an application is not