Re: [dpdk-dev] [PATCH 7/7] eal: improve musl compatibility

2018-08-30 Thread Burakov, Anatoly
On 29-Aug-18 5:47 PM, Stephen Hemminger wrote: On Wed, 29 Aug 2018 15:09:47 +0100 "Burakov, Anatoly" wrote: On 29-Aug-18 1:39 PM, Bruce Richardson wrote: On Wed, Aug 29, 2018 at 12:56:21PM +0100, Anatoly Burakov wrote: Musl complains about pthread id being of wrong size. Fix it by casting to

Re: [dpdk-dev] [PATCH 7/7] eal: improve musl compatibility

2018-08-29 Thread Stephen Hemminger
On Wed, 29 Aug 2018 15:09:47 +0100 "Burakov, Anatoly" wrote: > On 29-Aug-18 1:39 PM, Bruce Richardson wrote: > > On Wed, Aug 29, 2018 at 12:56:21PM +0100, Anatoly Burakov wrote: > >> Musl complains about pthread id being of wrong size. Fix it by > >> casting to 64-bit and printing 64-bit hex un

Re: [dpdk-dev] [PATCH 7/7] eal: improve musl compatibility

2018-08-29 Thread Stephen Hemminger
On Wed, 29 Aug 2018 12:56:21 +0100 Anatoly Burakov wrote: > Musl complains about pthread id being of wrong size. Fix it by > casting to 64-bit and printing 64-bit hex unconditionally. > > Signed-off-by: Anatoly Burakov What is pthread_t on musl? On Linux it is unsigned long.

Re: [dpdk-dev] [PATCH 7/7] eal: improve musl compatibility

2018-08-29 Thread Burakov, Anatoly
On 29-Aug-18 1:39 PM, Bruce Richardson wrote: On Wed, Aug 29, 2018 at 12:56:21PM +0100, Anatoly Burakov wrote: Musl complains about pthread id being of wrong size. Fix it by casting to 64-bit and printing 64-bit hex unconditionally. Signed-off-by: Anatoly Burakov --- Given that on linux pthre

Re: [dpdk-dev] [PATCH 7/7] eal: improve musl compatibility

2018-08-29 Thread Bruce Richardson
On Wed, Aug 29, 2018 at 01:39:26PM +0100, Bruce Richardson wrote: > On Wed, Aug 29, 2018 at 12:56:21PM +0100, Anatoly Burakov wrote: > > Musl complains about pthread id being of wrong size. Fix it by > > casting to 64-bit and printing 64-bit hex unconditionally. > > > > Signed-off-by: Anatoly Bura

Re: [dpdk-dev] [PATCH 7/7] eal: improve musl compatibility

2018-08-29 Thread Bruce Richardson
On Wed, Aug 29, 2018 at 12:56:21PM +0100, Anatoly Burakov wrote: > Musl complains about pthread id being of wrong size. Fix it by > casting to 64-bit and printing 64-bit hex unconditionally. > > Signed-off-by: Anatoly Burakov > --- Given that on linux pthread_t is a pointer type, will this not gi

[dpdk-dev] [PATCH 7/7] eal: improve musl compatibility

2018-08-29 Thread Anatoly Burakov
Musl complains about pthread id being of wrong size. Fix it by casting to 64-bit and printing 64-bit hex unconditionally. Signed-off-by: Anatoly Burakov --- lib/librte_eal/linuxapp/eal/eal.c| 5 +++-- lib/librte_eal/linuxapp/eal/eal_thread.c | 5 +++-- 2 files changed, 6 insertions(+), 4