From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60079.outbound.protection.outlook.com [40.107.6.79]) by dpdk.org (Postfix) with ESMTP id 5A0122B95 for ; Mon, 8 Apr 2019 14:43:11 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=fwSFzWK+sZ9f0F3zwZ7+PYCN9RKsWX+11m+Bvq4Igp4=; b=ISYvhqf5vGbeKTKXkzaU+3wGYN7UMYl5y9/W54wF9pWxLdxG3gyw0h0171YJvxOOwH7hx1pMHrId/B433crVel3tz+LLymdVZ6NUxAP7lqH3/S3s/z4tGlGZkQKVZn1bkIsYmRuCSRmO5cd2bW4I5V+8S1q7DVB4kH5uV8IcBYM= Received: from AM4PR05MB3425.eurprd05.prod.outlook.com (10.171.190.15) by AM4PR05MB3329.eurprd05.prod.outlook.com (10.171.189.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1771.16; Mon, 8 Apr 2019 12:43:10 +0000 Received: from AM4PR05MB3425.eurprd05.prod.outlook.com ([fe80::5df0:22de:97f0:3827]) by AM4PR05MB3425.eurprd05.prod.outlook.com ([fe80::5df0:22de:97f0:3827%4]) with mapi id 15.20.1771.014; Mon, 8 Apr 2019 12:43:10 +0000 From: Ori Kam To: Yongseok Koh , Shahaf Shuler CC: "dev@dpdk.org" , Ori Kam Thread-Topic: [PATCH] net/mlx5: fix cross compilation on aarch64 Thread-Index: AQHU7gifffodepsC9EKLLCCL7By/Dw== Date: Mon, 8 Apr 2019 12:43:10 +0000 Message-ID: <1554727378-72718-1-git-send-email-orika@mellanox.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: LO2P265CA0084.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:8::24) To AM4PR05MB3425.eurprd05.prod.outlook.com (2603:10a6:205:b::15) authentication-results: spf=none (sender IP is ) smtp.mailfrom=orika@mellanox.com; x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 1.8.3.1 x-originating-ip: [37.142.13.130] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 0a3923ff-0fe8-44cc-89f4-08d6bc1fc1a0 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(5600139)(711020)(4605104)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7193020); SRVR:AM4PR05MB3329; x-ms-traffictypediagnostic: AM4PR05MB3329: x-microsoft-antispam-prvs: x-forefront-prvs: 0001227049 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(376002)(396003)(366004)(136003)(346002)(39860400002)(199004)(189003)(36756003)(305945005)(26005)(102836004)(14444005)(386003)(476003)(2616005)(256004)(7736002)(5660300002)(6506007)(186003)(486006)(52116002)(85306007)(66066001)(99286004)(110136005)(105586002)(106356001)(97736004)(71200400001)(6486002)(71190400001)(316002)(54906003)(68736007)(4326008)(3846002)(6116002)(107886003)(4720700003)(2906002)(50226002)(14454004)(6512007)(6436002)(6636002)(53936002)(8676002)(81156014)(81166006)(478600001)(8936002)(86362001)(4744005)(25786009); DIR:OUT; SFP:1101; SCL:1; SRVR:AM4PR05MB3329; H:AM4PR05MB3425.eurprd05.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: i9jdVMYuAI3dp+t/ytW+tKI3jCxwj/DhqDOttEA/9kxenkDvmVZbR7thQljIjhXkJPdbjErJGNFvklYLd+Bu7jAltsCEnNcP5EPBWQ0Mr5WzB8SGw66HJNSl8mXtjfw3tqnZvmsNcRhGY5l4Qtt5/xWDK6cwf2LmmXjR1sGBuSrKNd5PUdmlHhJ4TmiUNcmVCYX0+TjLl/Irnodbl+YZ2mS+wLkUzrYGOFvj4YM42KH87G+Nfex1chyy9M6QahiDfGVNUj8WDnyCk9SMn596JaoZGRPSFdAw1T06GxzCvAf4JfHVCp5zsMQEd/9QvtHYORgXkWMcSaj/n2gps6LnHWf10wVfuMk/mitJopKNADc4eqzUBJyKR+88Uxts3rJQMe78V46krJRHoa6grZZMNgIP3BqAEPrUEBbviRzsklo= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0a3923ff-0fe8-44cc-89f4-08d6bc1fc1a0 X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Apr 2019 12:43:10.3349 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR05MB3329 Subject: [dpdk-dev] [PATCH] net/mlx5: fix cross compilation on aarch64 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: , X-List-Received-Date: Mon, 08 Apr 2019 12:43:11 -0000 In case of cross compilation on aarch64 we must add include for stdlib in order to use the free function. Fixes: cbb66daa3c85 ("net/mlx5: prepare Direct Verbs for Direct Rule") Signed-off-by: Ori Kam --- drivers/net/mlx5/mlx5_glue.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/mlx5/mlx5_glue.c b/drivers/net/mlx5/mlx5_glue.c index f5a6c2e..a508faa 100644 --- a/drivers/net/mlx5/mlx5_glue.c +++ b/drivers/net/mlx5/mlx5_glue.c @@ -7,6 +7,7 @@ #include #include #include +#include =20 /* * Not needed by this file; included to work around the lack of off_t --=20 1.8.3.1 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id F35DEA0096 for ; Mon, 8 Apr 2019 14:43:13 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 68BBB2BD8; Mon, 8 Apr 2019 14:43:12 +0200 (CEST) Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60079.outbound.protection.outlook.com [40.107.6.79]) by dpdk.org (Postfix) with ESMTP id 5A0122B95 for ; Mon, 8 Apr 2019 14:43:11 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=fwSFzWK+sZ9f0F3zwZ7+PYCN9RKsWX+11m+Bvq4Igp4=; b=ISYvhqf5vGbeKTKXkzaU+3wGYN7UMYl5y9/W54wF9pWxLdxG3gyw0h0171YJvxOOwH7hx1pMHrId/B433crVel3tz+LLymdVZ6NUxAP7lqH3/S3s/z4tGlGZkQKVZn1bkIsYmRuCSRmO5cd2bW4I5V+8S1q7DVB4kH5uV8IcBYM= Received: from AM4PR05MB3425.eurprd05.prod.outlook.com (10.171.190.15) by AM4PR05MB3329.eurprd05.prod.outlook.com (10.171.189.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1771.16; Mon, 8 Apr 2019 12:43:10 +0000 Received: from AM4PR05MB3425.eurprd05.prod.outlook.com ([fe80::5df0:22de:97f0:3827]) by AM4PR05MB3425.eurprd05.prod.outlook.com ([fe80::5df0:22de:97f0:3827%4]) with mapi id 15.20.1771.014; Mon, 8 Apr 2019 12:43:10 +0000 From: Ori Kam To: Yongseok Koh , Shahaf Shuler CC: "dev@dpdk.org" , Ori Kam Thread-Topic: [PATCH] net/mlx5: fix cross compilation on aarch64 Thread-Index: AQHU7gifffodepsC9EKLLCCL7By/Dw== Date: Mon, 8 Apr 2019 12:43:10 +0000 Message-ID: <1554727378-72718-1-git-send-email-orika@mellanox.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: LO2P265CA0084.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:8::24) To AM4PR05MB3425.eurprd05.prod.outlook.com (2603:10a6:205:b::15) authentication-results: spf=none (sender IP is ) smtp.mailfrom=orika@mellanox.com; x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 1.8.3.1 x-originating-ip: [37.142.13.130] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 0a3923ff-0fe8-44cc-89f4-08d6bc1fc1a0 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(5600139)(711020)(4605104)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7193020); SRVR:AM4PR05MB3329; x-ms-traffictypediagnostic: AM4PR05MB3329: x-microsoft-antispam-prvs: x-forefront-prvs: 0001227049 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(376002)(396003)(366004)(136003)(346002)(39860400002)(199004)(189003)(36756003)(305945005)(26005)(102836004)(14444005)(386003)(476003)(2616005)(256004)(7736002)(5660300002)(6506007)(186003)(486006)(52116002)(85306007)(66066001)(99286004)(110136005)(105586002)(106356001)(97736004)(71200400001)(6486002)(71190400001)(316002)(54906003)(68736007)(4326008)(3846002)(6116002)(107886003)(4720700003)(2906002)(50226002)(14454004)(6512007)(6436002)(6636002)(53936002)(8676002)(81156014)(81166006)(478600001)(8936002)(86362001)(4744005)(25786009); DIR:OUT; SFP:1101; SCL:1; SRVR:AM4PR05MB3329; H:AM4PR05MB3425.eurprd05.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: i9jdVMYuAI3dp+t/ytW+tKI3jCxwj/DhqDOttEA/9kxenkDvmVZbR7thQljIjhXkJPdbjErJGNFvklYLd+Bu7jAltsCEnNcP5EPBWQ0Mr5WzB8SGw66HJNSl8mXtjfw3tqnZvmsNcRhGY5l4Qtt5/xWDK6cwf2LmmXjR1sGBuSrKNd5PUdmlHhJ4TmiUNcmVCYX0+TjLl/Irnodbl+YZ2mS+wLkUzrYGOFvj4YM42KH87G+Nfex1chyy9M6QahiDfGVNUj8WDnyCk9SMn596JaoZGRPSFdAw1T06GxzCvAf4JfHVCp5zsMQEd/9QvtHYORgXkWMcSaj/n2gps6LnHWf10wVfuMk/mitJopKNADc4eqzUBJyKR+88Uxts3rJQMe78V46krJRHoa6grZZMNgIP3BqAEPrUEBbviRzsklo= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0a3923ff-0fe8-44cc-89f4-08d6bc1fc1a0 X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Apr 2019 12:43:10.3349 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR05MB3329 Subject: [dpdk-dev] [PATCH] net/mlx5: fix cross compilation on aarch64 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" Message-ID: <20190408124310.EJaKboeugUsyCg1keXI7KvuMs4KEUXByD4AObbBE1AU@z> In case of cross compilation on aarch64 we must add include for stdlib in order to use the free function. Fixes: cbb66daa3c85 ("net/mlx5: prepare Direct Verbs for Direct Rule") Signed-off-by: Ori Kam --- drivers/net/mlx5/mlx5_glue.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/mlx5/mlx5_glue.c b/drivers/net/mlx5/mlx5_glue.c index f5a6c2e..a508faa 100644 --- a/drivers/net/mlx5/mlx5_glue.c +++ b/drivers/net/mlx5/mlx5_glue.c @@ -7,6 +7,7 @@ #include #include #include +#include =20 /* * Not needed by this file; included to work around the lack of off_t --=20 1.8.3.1