From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by dpdk.org (Postfix) with ESMTP id 592E8388F for ; Wed, 19 Apr 2017 15:23:46 +0200 (CEST) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id E70D220B4D; Wed, 19 Apr 2017 09:23:45 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute1.internal (MEProxy); Wed, 19 Apr 2017 09:23:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=H0/F9QVAoLNf0W1 TKKsxvX8ENlqLwG72OF9T8L1ZdQQ=; b=J7j1diiF/h/Y+dJGq0KnEGTvjkIn65O InLExX0xYSxxya7cFOvTRCxyHBqCo9owE7vzjwzxWo4fJfoMdZhtPpdac/HrWd4M 6fJWZS00VcPEL9Z7CznKeWRJgvr3ahtzw65RNzY27icFzY5K4Vv7JIodOG1E2Hpb cXSOoHj0kkY0= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s= fm1; bh=H0/F9QVAoLNf0W1TKKsxvX8ENlqLwG72OF9T8L1ZdQQ=; b=XIEQxqtG LIuZhuokHKudxbqA5f4OywLZzRrNSCUPhPBRGFnnX6FJC7YiQ9yyEBOXFvPhoMgd QozMRpCJlT5XK8x5A/Tn0xK8BtFrlQ82VoicIH/Rd9JcFuzHzNapojjede0t4oXK K5i3oAYH6bFiLTrpR1Mq66sstxYz7K7Z47ystYg0zRS23kEHt8Eu7ogu8FrDyx3G 5SkB+qzDMhShi8MzD2xGRuK0gcpHpj3jVdwpwNwM0zryu6QyhYQkEaWMQTZU9QdS OWmX/Dx0RX3Xpc7Mljszs68M8i5o7UEP0kAuk4BAdbxcQ5roGbq5c6VbIWKsdF4X Kv0kyMX9txvX1g== X-ME-Sender: X-Sasl-enc: 7i0vv/jPKrI3LjXPF7JjI+d/PDoJcD8nE0gkYqrLE6yA 1492608225 Received: from xps.localnet (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id 54C3B7E2B0; Wed, 19 Apr 2017 09:23:45 -0400 (EDT) From: Thomas Monjalon To: Ferruh Yigit , Jerin Jacob Cc: dev@dpdk.org Date: Wed, 19 Apr 2017 15:23:44 +0200 Message-ID: <2941238.rVYzCPaN70@xps> In-Reply-To: <20170417143559.11701-1-ferruh.yigit@intel.com> References: <20170417143559.11701-1-ferruh.yigit@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH 1/2] mk: fix build for clang 4 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: Wed, 19 Apr 2017 13:23:46 -0000 17/04/2017 16:35, Ferruh Yigit: > clang 4 gives "taking address of packed member may result in an > unaligned pointer value" warnings in a few locations [1]. > > Disabled "-Waddress-of-packed-member" warning for clang >= 4 > > [1] build errors: > .../lib/librte_eal/common/eal_common_memzone.c:275:25: > error: taking address of packed member 'mlock' of class or structure > 'rte_mem_config' may result in an unaligned pointer value > [-Werror,-Waddress-of-packed-member] > rte_rwlock_write_lock(&mcfg->mlock); > ^~~~~~~~~~~ > > .../lib/librte_ip_frag/rte_ipv4_reassembly.c:139:31: > error: taking address of packed member 'src_addr' of class or structure > 'ipv4_hdr' may result in an unaligned pointer value > [-Werror,-Waddress-of-packed-member] > psd = (unaligned_uint64_t *)&ip_hdr->src_addr; > ^~~~~~~~~~~~~~~~ > > .../lib/librte_vhost/vhost_user.c:1037:34: > error: taking address of packed member 'payload' of class or structure > 'VhostUserMsg' may result in an unaligned pointer value > [-Werror,-Waddress-of-packed-member] > vhost_user_set_vring_num(dev, &msg.payload.state); > ^~~~~~~~~~~~~~~~~ > > Signed-off-by: Ferruh Yigit Series applied, thanks