From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] ring: fix build with icc Date: Wed, 05 Apr 2017 17:29:48 +0200 Message-ID: <2101638.L2PhFsoQeI@xps13> References: <20170405150312.20960-1-ferruh.yigit@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: Bruce Richardson , dev@dpdk.org To: Ferruh Yigit Return-path: Received: from mail-lf0-f54.google.com (mail-lf0-f54.google.com [209.85.215.54]) by dpdk.org (Postfix) with ESMTP id 6EF451E20 for ; Wed, 5 Apr 2017 17:29:50 +0200 (CEST) Received: by mail-lf0-f54.google.com with SMTP id x137so11533656lff.3 for ; Wed, 05 Apr 2017 08:29:50 -0700 (PDT) In-Reply-To: <20170405150312.20960-1-ferruh.yigit@intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 2017-04-05 16:03, Ferruh Yigit: > build error: > In file included from .../lib/librte_ring/rte_ring.c(90): > .../lib/librte_ring/rte_ring.h(162): > error #1366: a reduction in alignment without the "packed" attribute > is ignored > } __rte_cache_aligned; > ^ > > Alignment attribute moved to first element of the struct The fix is surprising. Is it really doing the same thing as } __rte_cache_aligned; at the end of the struct?