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 F0926A0C4A; Tue, 13 Jul 2021 08:49:33 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D609C411D0; Tue, 13 Jul 2021 08:49:33 +0200 (CEST) Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2084.outbound.protection.outlook.com [40.107.236.84]) by mails.dpdk.org (Postfix) with ESMTP id B9CAC40DDE for ; Tue, 13 Jul 2021 08:49:32 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QGh/sR7ReMlFh6K1jXv8Mvyh+D1POaqt8We4HHaI37+iMDzHVHUlyWiTcx31KclE89pBMsYo/DUQWCDp9/d76Y43gnyYuAiUAZpLt2liNp26u2P4AFXmlvZqIK+lgg75k+LIf23FxbnPQi5yJb0i35pocmpfiq3e4NOKrUb8sQ5hE29Y0TVtkWsQ+tCO1Ehk/QV9sWAOx/j6eR94ujF6Q+AfukJsuF9lOPQluF9iyCDcjGTtjTkxaI/fLDFXG2d0LrfbJv3U8PXTLo81eGMEWQj7K/j1EeV30XAwJCSLDfM51gd2W1FN6Mp/Y/rqz3ToPCe239gBW90aXnuFtXJcgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=aH+8uLA75HZhU/7e9z8hqveyZE/L4UvbnwtzCHvjLk4=; b=Qk5a8ycMGTO8R1DyWXrF/rw9noinldhgOCYFVhd78TmQ2Mgmih3KUy+A0DxE6synqkCoZ4xNY+WJKE/HggVdltFkmCrWZaQu+wX3dc4GsXvF3yokA9H3B4xhbESvPNlMis7qjz0HL+1umYtsy6yO7JFb89yPhjUr7PaZTezH+Bz1tDm5aqOqLfRtTW8mhKMAIXldbeiAwnZxCXPEvR5aYIdqUulFE5Q+Cpf0Dac3N2VDVgVYEc3q6aO1rndQ/r++qudL9HC8O9XrhIpwLIR8go7cepn9R0r2uRmJSpgs4bAptpbxVDqkAhluCZuTGMkJ3xQ7tarpMn2BUChzwZux1w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.112.34) smtp.rcpttodomain=monjalon.net smtp.mailfrom=nvidia.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=aH+8uLA75HZhU/7e9z8hqveyZE/L4UvbnwtzCHvjLk4=; b=s9fvIHIMMcaGMsVtYV3l2K1i1T75UXQdaha0Jj7jObvbwtYm5+W0vAyvdrjJxqDwvOriZWAtk35BngB8Y2PLJaex09ZtU+4QbDK9OToYTkWlGYPwJyXMvvbP+ZVHhNIDo37LY9I0sMLxrrandrWFQMXGoc+6Z9z0GfUsoQEsgXzalkMj3+zrw4a2VWpbwRmhJIBTJ52X4bnnfb4U3F8iSCzAp5DgeXYeghRaaq9LDljuI8GYJ5CoEMHA3TJR3hU2oHFb7Fn+HTQlqYPlZnuzIfY0MUnNH/6z/j9qe95rS9Nfb9oJqLRrsgeTTcrsswm421AAQnBa9MbtMYhLmcJ4Og== Received: from DM5PR19CA0007.namprd19.prod.outlook.com (2603:10b6:3:151::17) by CH2PR12MB3848.namprd12.prod.outlook.com (2603:10b6:610:16::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4308.21; Tue, 13 Jul 2021 06:49:30 +0000 Received: from DM6NAM11FT040.eop-nam11.prod.protection.outlook.com (2603:10b6:3:151:cafe::c2) by DM5PR19CA0007.outlook.office365.com (2603:10b6:3:151::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4308.20 via Frontend Transport; Tue, 13 Jul 2021 06:49:30 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.34) smtp.mailfrom=nvidia.com; monjalon.net; dkim=none (message not signed) header.d=none;monjalon.net; dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.112.34 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.112.34; helo=mail.nvidia.com; Received: from mail.nvidia.com (216.228.112.34) by DM6NAM11FT040.mail.protection.outlook.com (10.13.173.133) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4308.20 via Frontend Transport; Tue, 13 Jul 2021 06:49:30 +0000 Received: from nvidia.com (172.20.187.5) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 13 Jul 2021 06:49:26 +0000 From: Eli Britstein To: CC: Ilya Maximets , Gaetan Rivet , Majd Dibbiny , Asaf Penso , "Thomas Monjalon" , Harry Van Haaren Date: Tue, 13 Jul 2021 09:49:07 +0300 Message-ID: <20210713064910.12793-1-elibr@nvidia.com> X-Mailer: git-send-email 2.18.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [172.20.187.5] X-ClientProxiedBy: HQMAIL107.nvidia.com (172.20.187.13) To HQMAIL107.nvidia.com (172.20.187.13) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: d9826046-0905-4f56-d32b-08d945ca5d79 X-MS-TrafficTypeDiagnostic: CH2PR12MB3848: X-LD-Processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:203; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: wcUvmF1JIKMQ/w4DhKXdWIV01xmgPwWtDrzjdWv5wTp7nhwWngUSjRNOMSIObZM7UfwaqycSLxHuwBGMu1pTRU0a2O+Y2IaDBIKu1cCfEUNc2qTJehsPYfHca4ann1SlwtyRBmIuvBUL729GLQtZg3BC22njSzPkgPR64tjg34Yzkj2L3HJPYxns7LHlkxP8oXuU7N9QRsrxWfw7SkW0Mxed0xENE72XPpEfH9Cw2bgVCXOymy3VDSo9knXWpvKqbqNVBAmeuh8Zgn18FtrwHpzotV0iTbssydluGHYu7sDSEbhHB2++8INqG6WJGt0beKb3NQB6p5LdW8P9Es5kEV8QQF5ylnEn1Gsl5eJdZKsLwZ/E6ZnrUYAEbmgqvzzpugZDxWDAWwmHzFYmjc0MGDF0Aiswyxr6NHoQMYp6nwdC+zK+YbcSVhgSJ0Niu48gTxHWGuUWJH63k1qfMP0LPaERmyMOuz7+qr/uHpnWjpp/i9bEbCCE9NcPkQFeL+sCrwHM7ekUHbaTHl5diyZt6Z7U4Oy1M6yT9zraSEyW5UDbNOvwwwEPO4Ct553yAep2Kmv57QO9dMjKBr8UaIXfH65vcGpx/s34gp+QFB8RifHC9+WdEAQvSvmf1HE/H40ohpIgTICX17tyKrmG80k+1T6Wp+zqBt3KxrpeQKN9GZTLMZI4/F3thZmLHgox+iREUtpX5Fb9Na12HRgv9K8T+wW5MwRxbUD7dvX0pa2tyIc= X-Forefront-Antispam-Report: CIP:216.228.112.34; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:schybrid03.nvidia.com; CAT:NONE; SFS:(4636009)(376002)(136003)(396003)(39860400002)(346002)(46966006)(36840700001)(6916009)(7636003)(8936002)(16526019)(186003)(47076005)(34020700004)(5660300002)(55016002)(356005)(316002)(36906005)(6286002)(26005)(7696005)(8676002)(54906003)(2906002)(6666004)(86362001)(83380400001)(4326008)(4744005)(478600001)(1076003)(426003)(36860700001)(336012)(70206006)(82740400003)(36756003)(82310400003)(2616005)(70586007); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Jul 2021 06:49:30.2581 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d9826046-0905-4f56-d32b-08d945ca5d79 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.112.34]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT040.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR12MB3848 Subject: [dpdk-dev] [PATCH 0/3] Avoid cast-align warnings X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Various functions/macros assume valid alignment for casting. Compiling an application against it with -Werror and -Wcast-align may trigger cast-align warnings. To avoid those, add first (void *) castings. Note: for eal/arm64 similar changes could be applied to lib/eal/arm/include/rte_memcpy_64.h. I do not have a system in which I encounter such warnings, so currently I do not post any change for it. Eli Britstein (3): net: avoid cast-align warning in VLAN insert function mbuf: avoid cast-align warning in pktmbuf mtod offset macro eal/x86: avoid cast-align warning in x86 memcpy functions lib/eal/x86/include/rte_memcpy.h | 80 ++++++++++++++++++-------------- lib/mbuf/rte_mbuf_core.h | 2 +- lib/net/rte_ether.h | 2 +- 3 files changed, 46 insertions(+), 38 deletions(-) -- 2.28.0.2311.g225365fb51