From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 73C6BA00C2; Mon, 2 May 2022 19:41:48 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4D15940F35; Mon, 2 May 2022 19:41:48 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mails.dpdk.org (Postfix) with ESMTP id 07ABD40E28 for ; Mon, 2 May 2022 19:41:46 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1651513306; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=mf6THZ7Fe0xBDvEl2YMJb97hRZ317SFL/B661q9U9QQ=; b=HMAwGATdOuMOgWHc4lwEG3Zpau79M0iLClakKFDOca093cgpYVrvqBJGhRcSiUmIoKcYLS 9cQfSdiCj1D/T7z3nW5Qm8DYEuFBXVOdgrHDKCaAI1yljUx056t4y3Du63EVZbce+5+VAn sLBbqEzKXjXwWvWHL/0M9Ubws53RsoM= Received: from mail-lj1-f197.google.com (mail-lj1-f197.google.com [209.85.208.197]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-593-jmi57_q0OquygXdQILi1XQ-1; Mon, 02 May 2022 13:41:45 -0400 X-MC-Unique: jmi57_q0OquygXdQILi1XQ-1 Received: by mail-lj1-f197.google.com with SMTP id e3-20020a2e9303000000b00249765c005cso3698041ljh.17 for ; Mon, 02 May 2022 10:41:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=mf6THZ7Fe0xBDvEl2YMJb97hRZ317SFL/B661q9U9QQ=; b=UJ4Tgfr4t+aN30FCu1+QgotPuo0sw/SD5ygipOKorDmOzdacf7MB6rBDXLA33C1JAF iUVyg3VqJNjYcCUwTPia4oDvYGwN0NUyT9OMqnPO1vRfR+4gIiGAKhbI9c0rF35vtHbm EG0vJ38Tp7ZEoLvKQSf7ZPMaZYbptkK1hH9JfnGuOC4LAOCfmdypoHhvElWHgI/i2eJH RcTalBm13I+/u0xLQ/RdA9usAMo5H9QBepMZCPpH5sQlrNZUpweIoL4XmPugbYDIur1b tnu7s5n/ydCwKegJZFxRqk0IvKSHOJbT5dVKyDnKx5pFtfEm2/0eZzfQKs4euiO0wyEd fRAg== X-Gm-Message-State: AOAM5310cC62zHFpS0y1CzwMDY5mqKVbIGXDrRY0gLSipuM9lBQKpwLF wnjc2KoN5vhrmvKidnDlC3wByfJC5z2jChj4Qho53bRSQiwrs5EkaKdHVANxgFlAstkB7C0njAC C80dJr+vzhUC9U+zWnL4= X-Received: by 2002:a05:651c:1781:b0:247:daa7:4358 with SMTP id bn1-20020a05651c178100b00247daa74358mr8088116ljb.477.1651513303884; Mon, 02 May 2022 10:41:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyXXmq8FDpHVkXGX0mrKrsUn13+7PmBSe7gqnQc1vs29MSczH6W2gZIop2WG6WZmo5cLrFjPKSwS3Vc09schQQ= X-Received: by 2002:a05:651c:1781:b0:247:daa7:4358 with SMTP id bn1-20020a05651c178100b00247daa74358mr8088106ljb.477.1651513303641; Mon, 02 May 2022 10:41:43 -0700 (PDT) MIME-Version: 1.0 References: <20220502115228.3AAAB1242D4@dpdk.org> <20220502142615.3705639-1-dunk@denkimushi.com> In-Reply-To: <20220502142615.3705639-1-dunk@denkimushi.com> From: David Marchand Date: Mon, 2 May 2022 19:41:32 +0200 Message-ID: Subject: Re: [PATCH v2] lib/eal/ppc fix compilation for musl To: Duncan Bellamy Cc: dev Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=dmarchan@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On Mon, May 2, 2022 at 4:26 PM Duncan Bellamy wrote: > > musl lacks __ppc_get_timebase() but has __builtin_ppc_get_timebase() > > the __ppc_get_timebase_freq() is taken from: > https://git.alpinelinux.org/aports/commit/?id=06b03f70fb94972286c0c9f6278df89e53903833 > > Signed-off-by: Duncan Bellamy > --- > lib/eal/ppc/include/rte_cycles.h | 6 ++++++ > lib/eal/ppc/rte_cycles.c | 32 ++++++++++++++++++++++++++++++++ > 2 files changed, 38 insertions(+) > > diff --git a/lib/eal/ppc/include/rte_cycles.h b/lib/eal/ppc/include/rte_cycles.h > index 5585f9273c..98ffbd2592 100644 > --- a/lib/eal/ppc/include/rte_cycles.h > +++ b/lib/eal/ppc/include/rte_cycles.h > @@ -10,7 +10,9 @@ > extern "C" { > #endif > > +#if defined(__GLIBC__) features.h should be included before looking for __GLIBC__. -- David Marchand