From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0070.outbound.protection.outlook.com [104.47.34.70]) by dpdk.org (Postfix) with ESMTP id C07C1108D for ; Thu, 6 Apr 2017 14:26:23 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=yeZtb33Jp9PbW6Uz19SgKW81S8ChYXLsWg0KUHZRI0s=; b=iY4PsoYdZhFrnOKH/WlcTkIw3xjoZ9IMk0Z56+/xFGNe74+jR3Cpb1Dx7oLv7sMcJtw55SPQyWJM8l8DVgOGAhv2c4eMwC4KK6trxy5FgHzZQtU7WWdrF+yJV6oW2IwbHhuF83KbdPcslLNSZv/7o35PQfx5MYYZD1joyaDzvF8= Authentication-Results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=caviumnetworks.com; Received: from jerin (111.93.218.67) by BLUPR0701MB1714.namprd07.prod.outlook.com (10.163.85.140) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1005.10; Thu, 6 Apr 2017 12:26:19 +0000 Date: Thu, 6 Apr 2017 17:56:01 +0530 From: Jerin Jacob To: Ferruh Yigit Cc: Bruce Richardson , Harry van Haaren , Thomas Monjalon , dev@dpdk.org Message-ID: <20170406122559.GA18255@jerin> References: <20170406121428.16883-1-ferruh.yigit@intel.com> <20170406121428.16883-2-ferruh.yigit@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20170406121428.16883-2-ferruh.yigit@intel.com> User-Agent: Mutt/1.8.0 (2017-02-23) X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: MA1PR01CA0026.INDPRD01.PROD.OUTLOOK.COM (10.164.117.33) To BLUPR0701MB1714.namprd07.prod.outlook.com (10.163.85.140) X-MS-Office365-Filtering-Correlation-Id: 5c0a5ae2-f00c-40d5-0ff0-08d47ce822ae X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131423075)(201703031133081); SRVR:BLUPR0701MB1714; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1714; 3:OPWWj6L8/YbyntUHmK59KeRbvmurFuW3iP70jNpOQk1hPSqJMExoTqfWFBHMi9ngil7FaymAQYSm9qyyvw3KjeQzJ5jiryxaGmeyvUpVwAV3oojExOHECY4bvNWCmLQrTPekHNwvfpnzDmfqsCOeXOQJVyTnr72o6nmZlZjx6VDbdnAjsUzPJM8s8DrNGh8uioaV0hqJaS56oKuivlTaOR3Xe4t+j6hhcuIFCjUai4jr3OlfqrLKFRbaT5iBhvMyrV17w3CfMIdqMxpDi4/sSor35miiBJN/RNw3FB6SeFsbH/DlQr0lvTnlElEisRdWtoo6OMF53PEBjaHvx4lxdg==; 25:x3G4jFQLIWohXy1Tqw9prKfKeRUUYh8ogutUuGJaIvdcW9O/18SFii6YsoLVxylCi4rBVEEVsKlOFTqB+pa1PsVsIMahGUcSpzPy0o6nL7hIiV/oqcH/ZkvDw0wBK5uXjJIzBFhwC3t4Y1Ia9mvQdNNQIyU+goeVPo8Gz1uHUqyqnnQxbnR1tYG4GLIeRZJ1m8Nz7jmDn6kmmUBc9+5BQIaAhW3jWyYxQe8/sicMRfQ7PNHECTyjE6VnOKI1Iq+cDYUMPGDsY+d3E3MLcKv8iJ5kt0V3oL/s9E/iPEbpjQxe5MSmzyWsT1XNVVzbU3iGdXPmhHzU5+spym4uZzr/fHVXIlatI9i6Lt11FT62RABilupOHSEcq3srColrqL9Pdq49JTTd8JysKb4TuaSpw+E6ErOPf+30AUPEXxCPY65G4cnS1z8VapO4+PU0X+R/thtCTXXs5D6BR79rFKiZMg== X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1714; 31:/wuZHm5tZ5MFbBpypN9Fxp7SZfgpi/jgsvnVzE8zeraNVd+h7J+Foxycu/0hz/J4LseZNVPHjI3zA1VV+GGef+tBwZD/XQZXDzC0hBcFZrpDfe4a4I4enZ4RZZtxW3sRLYX4w7oBp3bmRG1VHGSnlaiF5FN2PA2bN19ZjjxGUvRqMmCDwTeRLlyFVbAJkcsYNyVIC5S77iuLcrOVSrtcutz5InV/zmEaiF6de4lN77kWDuDfZD7OJemFc0aHYvrqlgPZTNJio0rnRxGG7LSlo1l9lJCRXHmlbPoovCfEu5I=; 20:kogNhPuo2GnKDBCli2rP4jMuHvJjuNukOTXYgK6okTXTLvuxhzWPVGECgPzAbC3VEJNb53ghWgsXSVkmdRWmYv4IFRT/bNgcA1UKWgiN7P8L3rde2o+dPPsEluzLtpzxiUT8FPVNFzuFPWZEln99VnB32JnK9S1zYS4X450JzV7jwZ4lipvGacT7OFbrVeEh+MXH2LF0oWcLWD8VLiIkSAv9BbCUk4BXTNByVtsDvNlvco78w4KZva3cGt0HLjzX3bqkNiuzgkEz+YNcrlRhaLNZyaC9yk7wbdwX320Sn1o/hueOlPCXv6gJ2AIeQyRisw7gpNlN5SFkljHnT15Ytp9GGeUxdwOxxVdR7IsmN7RQvU9tFgZRz7R1UpymoHkwsvhJLSUjT4g8eIssUJyj98dEE1IpnkhHGKtiyo8pBG36YzJn1oJkmM7vHOo6/YMcLF/qeSj/FAeC82NRHdpnZX9MhMO0hUIDFWSQkQK/fpPnlPFikXzKF/Kf3g/KtbstZISUJBG9MrUGNGkoClqoUEtxIP6EAZexUqZkc3nCg2KztABwfl0I5QE21hHL41w0BEtku3IfUXXK5zvU4Idg8GvgKwiUpEIit0waXVmTEdk= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(228905959029699); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(8121501046)(5005006)(10201501046)(93006095)(3002001)(6041248)(20161123564025)(20161123560025)(20161123555025)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(6072148); SRVR:BLUPR0701MB1714; BCL:0; PCL:0; RULEID:; SRVR:BLUPR0701MB1714; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1714; 4:oD8X6UtObeaihcs0DeQzF1EmzaC4rsdh0Dsj8eCeImp/DEvixrrUflQLrk3PCdynewLbKyqDZwM4OhBKw+Jpb54OicBImsO0WhKjAQ3QMLzUYqCDVGRQFGbk6m6mvFb8mQzSp95BW/yqllLIN3XNVQJ5/eMflJzoddXSFcuKtykyW19Gs6gP4GQYmzZcBvue9RlrE+JTJuRofXYX9tiy+JYy9H3PTSZQdL84y2iSLuabb7Pp4KVxRsgdd/7veExNlJNO/zND1kDij4JVcfwxbl79zLLEMVd/9G2H4GS4Mn9g2BZJrABcnbgCJDRTrj/ROPlu9ShiGqMc82IqcIG4DHcD52U9Xh8cGbYpmqQn6ua4FLocaM6oFwPzriYCRP/B2SC4Kcs7swsb1G+8RcZbSmDynnfaZ9WAi47VOAkOmQoFgUHzZIlrTpRr6kVn60qSw8+lfN0OYiaskahwEvtkzUSTPKex9CYhrZOCN1hF2yuBLJWf2uYf0+9iuL/43fy37U7nt8YJGeJ54etCZqMZbQJysWDd3wf2IPgz98tkU9Z1mRktFYLltbANdLZ/lRnZz1Ig8tSs20JvdlnJhlhsR71kABF3QZYFSwWLVdANwNlHuDvSh8MzYQsPPWWGy6kofOpfRleedQAMCiPUihLlNYDUHEhjnrTypIQvc1Ffh/3HKsliMN6ADCJu0vjzQDkmAu8EHcFAtiz7gIOfKKTFAsV3AX+Uc3C3oaaiVlxbMKzUkE+YemThzermQAd/T5Jc X-Forefront-PRVS: 02698DF457 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(979002)(6009001)(39840400002)(39400400002)(39410400002)(39850400002)(39450400003)(13464003)(5009440100003)(1076002)(6116002)(2870700001)(3846002)(38730400002)(53936002)(110136004)(189998001)(6246003)(6496005)(2906002)(42882006)(2950100002)(6916009)(6666003)(305945005)(5660300001)(7736002)(47776003)(81166006)(229853002)(8676002)(66066001)(33716001)(33656002)(42186005)(4326008)(23676002)(25786009)(55016002)(50466002)(4001350100001)(54906002)(9686003)(76176999)(50986999)(54356999)(83506001)(18370500001)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR0701MB1714; H:jerin; FPR:; SPF:None; MLV:ovrnspm; PTR:InfoNoRecords; LANG:en; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtCTFVQUjA3MDFNQjE3MTQ7MjM6TTNHSGJvOENIWENrQmFPWmFvOUdnWW9j?= =?utf-8?B?ZnBnenZINGdab2YreHphZU5IM0ZPd0lnMDNKYVF0b1JJaExiSHNGTEN1cmZQ?= =?utf-8?B?M05oS1hXWHpjRWFPdDY0dVQ1SjBaR2wxZnhsSHRVUGpIOXU4aC9WakVIVll5?= =?utf-8?B?ZFJuRzY1Qk10VUhUd2N4NGlwYVRNZXFHR1I4NHo0Q0srWVNwNUpUdkNNNHFp?= =?utf-8?B?ZWN0VXBkakdLRk14N2V1c1JlV0ErUGlyYjVyUFQ1U3VmQjI5N0NUOXFJNzJa?= =?utf-8?B?YUtjQy9zMEhTRnFOb3ZCWmJxWDhVUmRUdHYycXRtZmJVV0UySEw4VTFPSHFs?= =?utf-8?B?cDAxd2M3NUk4bW5kdlBWTHRsMytXdDd0R3h2L2FEUzJLVjFzSmR3MkRnK3Nh?= =?utf-8?B?am9lOTYvbitnQnRCMVcyT0Q3V1c0emViOTFaeDB6dVQxNWZUMVVzU0lTSGJQ?= =?utf-8?B?VDZ2RHpKcVRRMmNZN3JuYVcrMGR1cmwxQ3pNcHd0cExoQk5MaXFiMU1TUzBk?= =?utf-8?B?dUxpcjQ0SC9JSFdGQ0MwOGNWKytzL3IwZHhLNDR1VDROR0REMnFkcDZFTk42?= =?utf-8?B?L0NqOXUvNXJWNmp3M0tJOUplQ2lWMGRhS3NHVWhwZ2Zoak5u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ostics: 1; BLUPR0701MB1714; 7:axHe4b6sfhRT0k8PmobMDKU3u55HQzI8RqXsOLQKsl3T/1VL1dbw9UgE7hOKMMXsw8IGB++ZngwGs1IMQ8LVR+UHVAKkWhiOx6pjzrN1LaER0qtE4rcRGsm/vR6+K9GbBfe1TVAMx8hkVPkZp1Ke+qy4K67pb4/SNaPgNMaX9BPwLvqE3pbBV9wbDuhZxGEbqQUPxYPbStQBEj2AMJtQOC8cDdhuBYy6mnkLyJX6Bgr/JZhQfMmKO4I9oH+AVXjTCOqVLt9Mmjui42NYGoG7keyDHfyMsi0xHYVgDviJYC3VR9kBeHrXSdZppIBWfc5aH5sTKOOKGgU338JpYiagLQ== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Apr 2017 12:26:19.7109 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR0701MB1714 Subject: Re: [dpdk-dev] [PATCH 2/3] event/octeontx: fix compilation for gcc < 4.6 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: Thu, 06 Apr 2017 12:26:24 -0000 -----Original Message----- > Date: Thu, 6 Apr 2017 13:14:27 +0100 > From: Ferruh Yigit > To: Jerin Jacob , Bruce Richardson > , Harry van Haaren > , Thomas Monjalon > Cc: dev@dpdk.org, Ferruh Yigit > Subject: [PATCH 2/3] event/octeontx: fix compilation for gcc < 4.6 > X-Mailer: git-send-email 2.8.4 > > -Ofast option supported from gcc4.6 [1], for older versions using > "-O3 -ffast-math" instead. > > [1] build error: > cc1: error: invalid option argument ‘-Ofast’ > > Also struct initialization build error [2] fixed. > > [2] build error: > .../event/octeontx/ssovf_mbox.c: In function ‘mbox_send_request’: > .../event/octeontx/ssovf_mbox.c:95:9: error: unknown field ‘u64’ > specified in initializer > > Fixes: 32ff26393bb2 ("event/octeontx: add SSO HW device operations") > > Signed-off-by: Ferruh Yigit Acked-by: Jerin Jacob > --- > drivers/event/octeontx/Makefile | 9 +++++++++ > drivers/event/octeontx/ssovf_mbox.c | 2 +- > 2 files changed, 10 insertions(+), 1 deletion(-) > > diff --git a/drivers/event/octeontx/Makefile b/drivers/event/octeontx/Makefile > index b26e35b..aca3d09 100644 > --- a/drivers/event/octeontx/Makefile > +++ b/drivers/event/octeontx/Makefile > @@ -50,10 +50,19 @@ SRCS-$(CONFIG_RTE_LIBRTE_PMD_OCTEONTX_SSOVF) += ssovf_worker.c > SRCS-$(CONFIG_RTE_LIBRTE_PMD_OCTEONTX_SSOVF) += ssovf_evdev.c > SRCS-$(CONFIG_RTE_LIBRTE_PMD_OCTEONTX_SSOVF) += ssovf_probe.c > SRCS-$(CONFIG_RTE_LIBRTE_PMD_OCTEONTX_SSOVF) += ssovf_mbox.c > + > ifeq ($(CONFIG_RTE_TOOLCHAIN_GCC),y) > CFLAGS_ssovf_worker.o += -fno-prefetch-loop-arrays > + > +ifeq ($(shell test $(GCC_VERSION) -ge 46 && echo 1), 1) > +CFLAGS_ssovf_worker.o += -Ofast > +else > +CFLAGS_ssovf_worker.o += -O3 -ffast-math > endif > + > +else > CFLAGS_ssovf_worker.o += -Ofast > +endif > > # install this header file > SYMLINK-$(CONFIG_RTE_LIBRTE_PMD_OCTEONTX_SSOVF)-include := rte_pmd_octeontx_ssovf.h > diff --git a/drivers/event/octeontx/ssovf_mbox.c b/drivers/event/octeontx/ssovf_mbox.c > index 0435f6d..f42969c 100644 > --- a/drivers/event/octeontx/ssovf_mbox.c > +++ b/drivers/event/octeontx/ssovf_mbox.c > @@ -92,7 +92,7 @@ mbox_send_request(struct mbox *m, struct octeontx_mbox_hdr *hdr, > const void *txmsg, uint16_t txsize) > { > struct mbox_ram_hdr old_hdr; > - struct mbox_ram_hdr new_hdr = {.u64 = 0}; > + struct mbox_ram_hdr new_hdr = {{0}}; > uint64_t *ram_mbox_hdr = (uint64_t *)m->ram_mbox_base; > uint8_t *ram_mbox_msg = m->ram_mbox_base + sizeof(struct mbox_ram_hdr); > > -- > 2.9.3 >