From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 4CB63A0C52 for ; Mon, 25 Oct 2021 17:29:11 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 403B14113F; Mon, 25 Oct 2021 17:29:11 +0200 (CEST) Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by mails.dpdk.org (Postfix) with ESMTP id 0828D4003E; Mon, 25 Oct 2021 17:29:08 +0200 (CEST) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 79C175C007B; Mon, 25 Oct 2021 11:29:08 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Mon, 25 Oct 2021 11:29:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:content-type; s=fm2; bh= bzHvbUdetU58+pF6DfEOQn5iFmtsbxG8dQS2JrvQ2r8=; b=mOjDmFUv7E0nMi6A GL9NyEOHbmjiOKiJdjqdI+E58huVLVZ+32KcDJvHhwHjR73pgEf/XkUBCG0DM+TX uckkPqvQDbGmJ6Djukn2DkgwKVMLs+5YME6/kBaRJyvXjZQqTXgH9vYslpUPpd/o jN9NcwPB1WNrmttKqy3aJLqBsBcUEBwyEYEfnoXPTSu53GLv24Zh0qthEu2XbI9k j2cI44MCmuK+MlkfGQ8Vs4hgmIrosHWXrZ7M1YP/awNxTL1jfCOH52muwgf9L0OK GTndms2VEN6eglqcg/sO87N/LHwOneet4XlqW9lp2nFCpu8IYVv1vgggk821MgY0 GTMDMQ== 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-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=bzHvbUdetU58+pF6DfEOQn5iFmtsbxG8dQS2JrvQ2 r8=; b=J5yDt5GWGX+JcC5HsALWmseykvRhqz3Jn1WU3p0XXOgdDU9yLgRLz//Gr gKeFGXBHPXek0a/IMeCg95ZcsQXfrcxBM5psyRBkK3oJoCWQKJTopr9xdSTQ7eiL TFZ5g/bAqiWYFJhxEdbgb09JJEc/53anygOxU/DpXCrLa/LWX/J/M24OOUuwRq73 RUTB5HfQesk5q/5Bg72d+SyGOENapHVc+AiI5MeUN6rLfm5b1hKQohBwftZs498+ amBvs52raoIgvKliP9OQ4Vo7lqWyA16Lt7GtXh0IoRU7Hv91kmSrJcb2xMOiJscN n6UuYMFC3iXkIKgpk9ZGn7vn47kEQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrvdefhedgkeeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkfgjfhgggfgtsehtufertddttddvnecuhfhrohhmpefvhhhomhgr shcuofhonhhjrghlohhnuceothhhohhmrghssehmohhnjhgrlhhonhdrnhgvtheqnecugg ftrfgrthhtvghrnhepudeggfdvfeduffdtfeeglefghfeukefgfffhueejtdetuedtjeeu ieeivdffgeehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrh homhepthhhohhmrghssehmohhnjhgrlhhonhdrnhgvth X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 25 Oct 2021 11:29:06 -0400 (EDT) From: Thomas Monjalon To: Eli Britstein Cc: dev@dpdk.org, stable@dpdk.org, Matan Azrad , Asaf Penso , Slava Ovsiienko , bruce.richardson@intel.com, konstantin.ananyev@intel.com, olivier.matz@6wind.com Date: Mon, 25 Oct 2021 17:29:05 +0200 Message-ID: <2396188.RVIeCzPhhI@thomas> In-Reply-To: <20211021085132.12672-3-elibr@nvidia.com> References: <20210713064910.12793-1-elibr@nvidia.com> <20211021085132.12672-1-elibr@nvidia.com> <20211021085132.12672-3-elibr@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-stable] [PATCH V2 3/3] eal/x86: avoid cast-align warning in x86 memcpy functions X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" 21/10/2021 10:51, Eli Britstein: > Functions and macros in x86 rte_memcpy.h may cause cast-align warnings, > when using strict cast align flag with supporting gcc: > gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0 > CFLAGS="-Wcast-align=strict" make V=1 -C examples/l2fwd clean static > > For example: > In file included from main.c:24: > /dpdk/build/include/rte_memcpy.h: In function 'rte_mov16': > /dpdk/build/include/rte_memcpy.h:306:25: warning: cast increases > required alignment of target type [-Wcast-align] > 306 | xmm0 = _mm_loadu_si128((const __m128i *)src); > | ^ > > As the code assumes correct alignment, add first a (void *) or (const > void *) castings, to avoid the warnings. > > Fixes: 9484092baad3 ("eal/x86: optimize memcpy for AVX512 platforms") > Cc: stable@dpdk.org > > Signed-off-by: Eli Britstein Series applied, thanks.