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 EB415460B1; Mon, 27 Jan 2025 15:36:50 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 553B540678; Mon, 27 Jan 2025 15:36:47 +0100 (CET) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.17]) by mails.dpdk.org (Postfix) with ESMTP id 2E5E240691 for ; Mon, 27 Jan 2025 15:36:45 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1737988605; x=1769524605; h=date:from:to:cc:subject:message-id:references: content-transfer-encoding:in-reply-to:mime-version; bh=g5zDHSkv9JcWiuodwY0aLHQzW6vAWhzyy1rXTkz66FM=; b=CRWc9nZyEYGDyKHblB7Vwcew4zx/dA1wkDvMuQoIF3906jHCsAs+IL7m izs9apJC+o+FrwhqveZ7L5of439j6XnvX0Ua3jiy6cGQ2rR2kUWl90Ku2 Kiq7JsD9FQQNEnqVN3qP2ojoWYjN4KOaxgS5yDgQA8owmeLMfB8U0iHfU U59ALfSTK+yXcNNC4irmNmJHInT8XE7y1/iKPquQGTH1wCKjyNhpg+LYS rpISJgfEJjpL/CcdPYiUAGg132J5l2YUv9Y1PUNcF4U4KfhmL79857gNm 4jhJRtb406XB8o7xMT4rxSy0qTCjny2XkSEQB8rUHMzWV1RE/S0qfBbhc w==; X-CSE-ConnectionGUID: EeyXSXPxQ0qeTzmQO4qlFw== X-CSE-MsgGUID: ZK5CCemmT6Cdqg5Gjtshiw== X-IronPort-AV: E=McAfee;i="6700,10204,11328"; a="38360170" X-IronPort-AV: E=Sophos;i="6.13,238,1732608000"; d="scan'208";a="38360170" Received: from fmviesa008.fm.intel.com ([10.60.135.148]) by fmvoesa111.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Jan 2025 06:36:30 -0800 X-CSE-ConnectionGUID: 7ovNUP1GS7ukUgPjmoDWeA== X-CSE-MsgGUID: zRerE11XRCue0xfDUx8FWg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.13,238,1732608000"; d="scan'208";a="108567043" Received: from orsmsx601.amr.corp.intel.com ([10.22.229.14]) by fmviesa008.fm.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 27 Jan 2025 06:35:14 -0800 Received: from orsmsx601.amr.corp.intel.com (10.22.229.14) by ORSMSX601.amr.corp.intel.com (10.22.229.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.44; Mon, 27 Jan 2025 06:35:13 -0800 Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) by orsmsx601.amr.corp.intel.com (10.22.229.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.44 via Frontend Transport; Mon, 27 Jan 2025 06:35:13 -0800 Received: from NAM02-DM3-obe.outbound.protection.outlook.com (104.47.56.49) by edgegateway.intel.com (134.134.137.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.44; Mon, 27 Jan 2025 06:35:12 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=h3ZbfbJ/+1KjpbqBj85R4xeYRUbMqT2mSz6Bi4d/5CTWV83cBTgMfnJQunLvFVveoEr88qMj9JBlC4LEAgYlyXmAiW/S6knrpd+hxBkSUPGzoZByBMhNF+J2Mu7NYJpkQq+bh7xBgwylhJXrZJseO7Mxllyx19HrD8YSpgovtUVBXtIon7qagu1HtsqeUtTSw/y7lQo6bQgt2DQnS8X9uOVj10uU3/TSQk5PbBxQtpGHJjY3NQKW9x3MO/1+0i38DVygEgFoMRmkqvleOgqhkv2hy4yG6VrUSvsYEJ7GlKsvpN1cQFh1ntGSYxrJ9HWjIRbfcLIIp3QHbqhgt6CEZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=o2Qx0UV+9Lcgt7xj98ybz0LCuvHli2YHFRAlE04O+os=; b=YgPjoCYKkq/5JDrT7OeOPEkvaUKZ2d4otMRWZ85XwgJb0neC3xaKo+kABw33ZZ6/sEZvUUHJhC08jwydN/te59rQoqp+yaH1K0wzAgvRQaNQZW/Y+hI8cpHSjg6KIDDh4ynaINQ6LcZYePrI1qD8JtfeAsBOpBojw7e+IwVGpejsk0zlD4Vk6EozdPmprfx3wUPFBz+Gyxi2a8kMd1OGvt2OmTFVqFsX9bvr+rp0hDstvI8x48byphLwOhowTWiWLbYfA5vWFwSQAh/Vfqx8k3dNCRYE9DSvz2X2jsDnyMiv4y0X50yQn6adiICCLbn3u/HojREVDqL0JO3XVNy80A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from CY8PR11MB7290.namprd11.prod.outlook.com (2603:10b6:930:9a::6) by DM3PR11MB8735.namprd11.prod.outlook.com (2603:10b6:0:4b::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8377.22; Mon, 27 Jan 2025 14:35:10 +0000 Received: from CY8PR11MB7290.namprd11.prod.outlook.com ([fe80::2fa:a105:f81e:5971]) by CY8PR11MB7290.namprd11.prod.outlook.com ([fe80::2fa:a105:f81e:5971%5]) with mapi id 15.20.8377.021; Mon, 27 Jan 2025 14:35:10 +0000 Date: Mon, 27 Jan 2025 14:35:05 +0000 From: Bruce Richardson To: Stephen Hemminger CC: , Morten =?iso-8859-1?Q?Br=F8rup?= Subject: Re: [PATCH v2] build: force gcc to initialize padding bits Message-ID: References: <20250123172048.134417-1-stephen@networkplumber.org> <20250124182647.117636-2-stephen@networkplumber.org> Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20250124182647.117636-2-stephen@networkplumber.org> X-ClientProxiedBy: DB7PR02CA0007.eurprd02.prod.outlook.com (2603:10a6:10:52::20) To CY8PR11MB7290.namprd11.prod.outlook.com (2603:10b6:930:9a::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CY8PR11MB7290:EE_|DM3PR11MB8735:EE_ X-MS-Office365-Filtering-Correlation-Id: 2bc0ff89-414b-452c-d8c8-08dd3edfcdc0 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|376014|7053199007; X-Microsoft-Antispam-Message-Info: =?iso-8859-1?Q?A56fH8UJBPrmwotAxlIVVA6IDolQUPM49zNAXIfmO5dSGgGCIeRkwhZCF3?= =?iso-8859-1?Q?nckycnk/lZEP8cu8q14WLufZfvcw2D/HuUPcLv67JGmtv46hE9+lDOXne1?= =?iso-8859-1?Q?hx8nzitgTuSOJRTapNDkZfFYj5qzUVAJ0lsIYIz+mfSrcCIxkMHR7cH84q?= =?iso-8859-1?Q?dsjSU3T/4o4UVFuSp0tqfGLDCu8F73OAbIFbmCCPVMcAHAzCpRHB+UDNlS?= =?iso-8859-1?Q?r6r2rgh8pMbQNGAk3RyagMQRlChNz9F2vdXk05N3r2AEEz32iDp59qaveC?= =?iso-8859-1?Q?miBw2M2DT5mwG0GgdivHRluocUHkfLyFqVwft5SNb1OQcDasA125W26OoE?= =?iso-8859-1?Q?CDJPeh972V3iTTNiM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= =?iso-8859-1?Q?kDEH9XQQglb7axUC1oMA+wlOKJ7log7gTub1dArfFwczYpGlwkl/GMaJ4q?= =?iso-8859-1?Q?NgIh3k+oYEgjaXsIXoF55wO16kSuBNqE1DSSJpiGUSNh83a4x4hyDNsQIr?= =?iso-8859-1?Q?+IlBdoB5UkkOcvnoDbfNJJW2AW4OEhFMepJw2gxCBejWtDxr59sISWu2sg?= =?iso-8859-1?Q?pvuS6K/qEX4zh8pp?= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CY8PR11MB7290.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(1800799024)(366016)(376014)(7053199007); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?iso-8859-1?Q?wuxhbIiTEQYY0tXBOms6YLUS8qIwRU1SMmSUCcHq7udFcUUKhFely2euYu?= =?iso-8859-1?Q?jG5LnX1ViTJcl9cCVYgv6ZZi90ONq6GTFiRiYFE9+laBdA3ByugOo9lnTx?= =?iso-8859-1?Q?kvlIezQKw2sOotnATLkHNFvWqGywgNndCMhgYtBsAEcewbNOZrkndxaEEe?= =?iso-8859-1?Q?urgBvS175oeJHcYm5qYujvLgZSM78pUR0hfaWQqzD2rXr6hIllXeNfN6o6?= =?iso-8859-1?Q?26V0MiZ/bF67uN7h4EeO8ZJOeKECwbqJZTeEeKxCR8Up9tkii/SG94j4cb?= =?iso-8859-1?Q?L2fKAUUNhn+uqOifcPOGftKIjhabSprZljz2N3UbCoe/GhZq/NdGtVz3FV?= =?iso-8859-1?Q?qTp+JetDeMc0g1+m3stHcDhwRmngabUjdzKcJnV4+J6JHbOgMBLU/1YB2h?= =?iso-8859-1?Q?dXpdpSXcHBbHaPQo+tSgbkwayL/F7XuTmfdB6K+Xg3ebgqZI1E3HQW8s7E?= =?iso-8859-1?Q?bzJBn07GIUva4i+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6Bu?= =?iso-8859-1?Q?8rJsQ3GBe+JNrGxKU8JgL7dAdWJI1k08NvzLbbY63YJ9vSkizOt6CElr8+?= =?iso-8859-1?Q?NVxswl5EjhAJt4+Ch9HThqhUWHGNk9qx0dXvQ8rCQRVeO0K3HyPGl6X3Xp?= =?iso-8859-1?Q?ocjGsv6vYQxU4VcqpmPe06pTWIGBYh8wq11KxPygZBrrhVYTQF8s6BKMHK?= =?iso-8859-1?Q?Z94NVhRsUrVDN4TXOxbsGIOBPRGQN8Uuiv47jFWjhJ9W5KGrwDgBCRiWxh?= =?iso-8859-1?Q?ndnidxvH/Gke1sw5iU5FXUgUX9vushNNFk6KXu1U0Ta7eszNGc/4G7Iw?= =?iso-8859-1?Q?=3D=3D?= X-MS-Exchange-CrossTenant-Network-Message-Id: 2bc0ff89-414b-452c-d8c8-08dd3edfcdc0 X-MS-Exchange-CrossTenant-AuthSource: CY8PR11MB7290.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Jan 2025 14:35:10.8177 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 1vj90LDnk6ZSaQpeP2VHHyNYpdkvtrogz7tiP0dJD6Fc4tN8zDz1Ddm4BOwmlE3vcitujcdd/pHNpIR8tilnQQcA6HydjT1HXReWT9Je7v4= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM3PR11MB8735 X-OriginatorOrg: intel.com 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 On Fri, Jan 24, 2025 at 10:26:48AM -0800, Stephen Hemminger wrote: > With GCC 15, the compiler has changed the default behavior when > initialization is used for aggregate variables. The new default > is to follow the standard (C23) and not initialize everything by > default. This breaks assumptions in some drivers and can be > lead to other bugs. Use the new zero initialization flag to > force of all fields to zero. > > Note: other compilers always initialize to zero in these cases. > Only GCC seems to have decided to start initializing less as > a silly attempt at optimization. > > Signed-off-by: Stephen Hemminger > Acked-by: Morten Brørup Acked-by: Bruce Richardson