From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 2A388A0526; Fri, 10 Jul 2020 07:11:22 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 0476D1D657; Fri, 10 Jul 2020 07:11:22 +0200 (CEST) Received: from EUR02-HE1-obe.outbound.protection.outlook.com (mail-eopbgr10053.outbound.protection.outlook.com [40.107.1.53]) by dpdk.org (Postfix) with ESMTP id B6A6F1D40E for ; Fri, 10 Jul 2020 07:11:20 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SM2DH8IowI65z4h0+09lRGJ/ZHZo6PLDfH/xC9XTb5dbKd0X8btH9svf+CBqV40oipgoGdNoqYgJ5Rx3ds/tQUR7r8oqO8Eenu7vlR8gJ3cZqqUPllGD5NpmZHN36cgwevMvKySkCavTXo00bKW/CiIABFo0irUftj1kmwgKUeq5QAozsGYbKkh5qVLhUC8Oga3e8Mdw4AmEbazS21hoWwnMf4JZ4+oq486HUfEuBq36VOPKNn0T9Ylzjw4iBko7PN3j0SN7ipdmWdCTs0qJKAo01ERk30DOgAvqKfKPZOYo5PTaaysSy62pe1lH51cDSKpa8GoCm6KjM/B2j8nqXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=U6Z7TCDH5aDrOSWFJz00lt5jUTUsjO7RFd+z50a/bSA=; b=f8xzEDBsZqnPS/1yMLvFxyEzULzN/6mGuWWJCJb8w7SITknE1LI5b5dfDoWRrx5G1B4ZSXJC/YW8WWBPv8EfnuWatCqir15Rv7mQcqzkpW+NtljWDjVS56TqPAG2m8zRNqzh6Tq8EscBD4Y/3rSpkPqQplXsjNoExt1STTbjf1/Haw+17QierpgwAAzNxoic0ZM+UGg3LHKnnkjcqyiYc+sBOXWEdaMeLScY1z56hoIuvHXkugjFZIsh2oV6m6MZ9W40n7Ufa8VHtXZsG2+8Ux0HTSfmu+AyQGR6g6vdB0widhMSxPmHHzQWFiIr/2gXU3F7+5XQq3LPu3PTT0gpMQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=U6Z7TCDH5aDrOSWFJz00lt5jUTUsjO7RFd+z50a/bSA=; b=KBMKIEksz+874Xbp41359z50rjOELOg3R80JZFVhqs4HcyS5s0+UN3KHScxa/BCXTg5U6ruQ0ysrTs7w1sF7qgD8gAQnndVgLJw1mZrVm2VTRTRiJgPbo/noUXvFIhi/3T3jVIwTBc56ezb546dnjcwRnFpu0l/l8wq4KPzlZp4= Received: from AM6PR04MB4456.eurprd04.prod.outlook.com (2603:10a6:20b:22::25) by AM5PR04MB3044.eurprd04.prod.outlook.com (2603:10a6:206:9::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3153.22; Fri, 10 Jul 2020 05:11:19 +0000 Received: from AM6PR04MB4456.eurprd04.prod.outlook.com ([fe80::52:2324:96c9:f3ae]) by AM6PR04MB4456.eurprd04.prod.outlook.com ([fe80::52:2324:96c9:f3ae%7]) with mapi id 15.20.3153.029; Fri, 10 Jul 2020 05:11:19 +0000 From: Hemant Agrawal To: Natanael Copa , "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH v3 12/15] crypto/dpaa2_sec: build fix for musl libc Thread-Index: AQHU2b+EgweWrQLWHkGKU/zac6egJKkDPVIA Date: Fri, 10 Jul 2020 05:11:19 +0000 Message-ID: References: <20190313170657.16688-1-ncopa@alpinelinux.org> <20190313170657.16688-13-ncopa@alpinelinux.org> In-Reply-To: <20190313170657.16688-13-ncopa@alpinelinux.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: alpinelinux.org; dkim=none (message not signed) header.d=none;alpinelinux.org; dmarc=none action=none header.from=nxp.com; x-originating-ip: [182.69.104.93] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 344bd272-8ac4-4573-a679-08d8248fae67 x-ms-traffictypediagnostic: AM5PR04MB3044: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:669; x-forefront-prvs: 046060344D x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: ff1QDTYIFda+1DKIg4pBw5FMWDTq0X1eZQVNmeDu1CsOr6TsVtNuAKEy8itrNyCvZusjLN0VhX14QtYgLO1SXhCdG6xV+XQwdByKeaJzef4hmg5hYkYJi/NHSSkD+3iTWvaV3sNRkUIqkwVHKr18U9SqMexU1cN7/y6seGvLe6GtV7D7SApDblqNfRBlk4D/Vu9nWbf0kLnvwzsYryQ0uEovlsfRVEJI7KE3aMxWqkexwNbZCGMvM3zQJqeo0aq87qUDcO1q0mFGmbPrv5yyOgDQsRoJPT1iZclsa3avafH09cVPS7MhaGj4aWXW1bi+9pRBqhNngAWc7+7BqoGbqg== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM6PR04MB4456.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(396003)(366004)(346002)(376002)(136003)(39860400002)(33656002)(7696005)(110136005)(316002)(9686003)(2906002)(55016002)(52536014)(44832011)(71200400001)(186003)(26005)(478600001)(8936002)(83380400001)(86362001)(6506007)(53546011)(5660300002)(66946007)(66446008)(76116006)(66556008)(64756008)(66476007); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: XFh60iMnV1QqoR8kW37d1mYiTlE6mLE0bZ4o6ooW0PUlLSUWLY9CJCIgah91OM+fHlwEWY3SKu5W5IQ/SSFdWRDShiyrfqrzs/3QNkRD7jYJCjJ5flPcSaanNLPdlkNVifl5B1KFxzOqdGaCC0ScCDBJ/bO9QKoa9YX5UnGvrh9MZLwoJJrWvd/pmbImtRN4pYkz8bdP/Tp6dPm5wM+hMWlsLUQb3CBBT6q/5i8fLk8dn7JQ345dzGEJSp97cnhG3QGImnEWr4ohuhzKwqHGuRxyA0LMmx+6443PbaFccTAzUTTfNMHhgXgynwwo3ILz0coVDfqiAKFZmDxsOD+AtvlSLnjtMAROw/ke8vSUhbo15DoWrlrt7w0COwopHdcIlFidF0dT688e0gySrCal1Io2bMkWRQznQqXcENf81XAzCrahfY7lgQTl96tMqyLDMvU4OY0tRHnMr8Kac1L8bVNeavZOtE9R8u6134jQ7Ii1riNBH8cuRThQzfPUZpWT x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: AM6PR04MB4456.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 344bd272-8ac4-4573-a679-08d8248fae67 X-MS-Exchange-CrossTenant-originalarrivaltime: 10 Jul 2020 05:11:19.6367 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: GaPT8CS1eJKsovMHG9jYXmw6GLwy3W4hkGShL2ds+NUK6EdkLBkRrsoBLjgqO9nLE8nMqh4a2jypd7nLSE931g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR04MB3044 Subject: Re: [dpdk-dev] [PATCH v3 12/15] crypto/dpaa2_sec: build fix for musl libc X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" The location of the file has been changed from drivers/crypto/dpaa2_sec/hw/compat.h to: drivers/common/dpaax/caamflib/compat.h In next version you can add=20 Acked-by: Hemant Agrawal -----Original Message----- From: dev On Behalf Of Natanael Copa Sent: Wednesday, March 13, 2019 10:37 PM To: dev@dpdk.org Cc: Natanael Copa Subject: [dpdk-dev] [PATCH v3 12/15] crypto/dpaa2_sec: build fix for musl l= ibc The swab16/swab32/swab64 are Linux specific and nog GNU libc specific. Keep the check for __GLIBC__ just in case other GNU systems depends on this= (Hurd or GNU/kFreeBSD). This fixes a build error with musl libc. Signed-off-by: Natanael Copa --- drivers/crypto/dpaa2_sec/hw/compat.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/crypto/dpaa2_sec/hw/compat.h b/drivers/crypto/dpaa2_se= c/hw/compat.h index ce946ccb5..1362045ca 100644 --- a/drivers/crypto/dpaa2_sec/hw/compat.h +++ b/drivers/crypto/dpaa2_sec/hw/compat.h @@ -11,7 +11,7 @@ #include #include =20 -#ifdef __GLIBC__ +#ifdef __linux__ #include #include #include @@ -40,7 +40,7 @@ #define __maybe_unused __attribute__((unused)) #endif =20 -#if defined(__GLIBC__) && !defined(pr_debug) +#if !defined(pr_debug) #if !defined(SUPPRESS_PRINTS) && defined(RTA_DEBUG) #define pr_debug(fmt,= ...) \ RTE_LOG(DEBUG, PMD, "%s(): " fmt "\n", __func__, ##__VA_ARGS__) @@ -49,7 = +49,7 @@ #endif #endif /* pr_debug */ =20 -#if defined(__GLIBC__) && !defined(pr_err) +#if !defined(pr_err) #if !defined(SUPPRESS_PRINTS) #define pr_err(fmt, ...) \ RTE_LOG(ERR, PMD, "%s(): " fmt "\n", __func__, ##__VA_ARGS__) @@ -58,7 +5= 8,7 @@ #endif #endif /* pr_err */ =20 -#if defined(__GLIBC__) && !defined(pr_warn) +#if !defined(pr_warn) #if !defined(SUPPRESS_PRINTS) #define pr_warn(fmt, ...) \ RTE_LOG(WARNING, PMD, "%s(): " fmt "\n", __func__, ##__VA_ARGS__) @@ -101= ,7 +101,7 @@ #endif =20 /* Use Linux naming convention */ -#ifdef __GLIBC__ +#if defined(__linux__) || defined(__GLIBC__) #define swab16(x) rte_bswap16(x) #define swab32(x) rte_bswap32(x) #define swab64(x) rte_bswap64(x) -- 2.21.0