From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] ixgbe: change assignation of bitfields to fix clang compilation Date: Mon, 01 Dec 2014 12:20:44 +0100 Message-ID: <3788591.z9f9ZD7Av4@xps13> References: <1417430173-24502-1-git-send-email-olivier.matz@6wind.com> <20141201105250.GA4856@bricha3-MOBL3> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev-VfR2kkLFssw@public.gmane.org To: Olivier Matz Return-path: In-Reply-To: <20141201105250.GA4856@bricha3-MOBL3> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" > > Commit 1224decaa44b3dba58e0a524fd0383969929c575 changed the way > > the bitfields are assigned in ixgbe, example: > > > > tx_offload_mask.l2_len = ~0; > > > > This result in a compilation error with clang: > > > > error: implicit truncation from 'int' to bitfield > > changes value from -1 to 127 [-Werror,-Wbitfield-constant-conversion] > > > > Replacing the '=' with a '|=' fixes the issue. > > > > Signed-off-by: Olivier Matz > > Acked-by: Bruce Richardson Applied Thanks -- Thomas