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 7081B46100; Thu, 23 Jan 2025 18:22:04 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1C6CC40B8D; Thu, 23 Jan 2025 18:22:04 +0100 (CET) Received: from mail-pl1-f176.google.com (mail-pl1-f176.google.com [209.85.214.176]) by mails.dpdk.org (Postfix) with ESMTP id 9FFD740261 for ; Thu, 23 Jan 2025 18:22:02 +0100 (CET) Received: by mail-pl1-f176.google.com with SMTP id d9443c01a7336-21bc1512a63so22517295ad.1 for ; Thu, 23 Jan 2025 09:22:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1737652921; x=1738257721; darn=dpdk.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=JQE1HeglmknGiPIJSvJ3z85DBGsah3KmXfBaecLFjHg=; b=iWtUr/9T1huPr5ZSL5daugyMd3SLeG0XrsBelRdKLsCYXdMTIsQigqsYn9SEmkVXM7 eOBQApMQXeWgcsyPSejsErRpdU8KHWyK5jCLtXKimfYARYXgJr+19XhfRJ4OT30phRD4 eMW91/yumwXfbRu+yVGJj07vyohTmu4PnD+2dhH8WGa+7Ipk9u7ss3pJxfc7fIqKimMk RjQlCBqPtEW9LdDPlQ9Hpf34y6d6f9cn2X/3T9somnk5WFfL+xgVBGbY39biNNm3ZJ1e iorImIittwI26+0Q5gvAndfOe8gKUCYPmQjcDb6q0xtPzslQkzNr/lMS6BWOqE9+/ffs YVwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737652921; x=1738257721; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=JQE1HeglmknGiPIJSvJ3z85DBGsah3KmXfBaecLFjHg=; b=T2UoraUdVdEfVWeGJudwrdiUn2qvcwvDogcT9WEc5Y5I7jxSbdsFTH14amU38efg26 /v9bBGnl9IVnWWJ1RE67kxWwcm6yXuiuXrkc8QPVI4XpVWrPNwUI72GTAbg1fO0TbsDz XMbExf/pLPcrRkJbdXtNKOE5BwWOx9Ad9BLpVltAnjsuYS7Hd6JEfuVle0DtD8MWk7su qvtlok5DLr7dVjRoaz/qQnmTSP+sB/XoCvq5euw9SI3G4u0k358mxeS2cL5ckq3JIbDt zNjYGVh7FYGFOqug+xy4dwdaSyJYR+1WgOpN44XCxNeGDq+VgtP2U6EH2kI5Xmhibwcq +rrw== X-Gm-Message-State: AOJu0YxGss1bii8j4M0EIZWQHI5lt82Zc0DZZoctm5JfJ+SIXfKdyFf1 cJPKRUXGM54d8Bn0roMeYPUhahoLsV1BbcoZGzKxWiX+v0kXFAuHu3qfsesc5HlG3l86Kk+Y+45 t X-Gm-Gg: ASbGncturpJGLKW/6pY5xnMbz9zIQ1huVxK2oIFqFRq16ryQDlv0iOK7oqK7k25TiwS rs5iymGAi3vigy94GYjVhAr+HLVwfbFg/LrybpuhF2QhKqkgZ7gNB1O2eiLC7vto4h8UXm7OutZ GmO6MEZIZ5WEb20T7mEd7AvD3+hNSxJHd/v1ySetisUjqEHKXDDlueyctrpTLXM4wrJGNrkM3LI n9YhR/CoXbmjFlaJV0YTHLdozwwI0iV/gbc4dyrfuTUEosezZd+6mUTFZdjTgSStDxGRU/n5qwt zdLXTvbg9xJ3nq5wy0nVOAfAtZwT7918IdGZ5Ys++rhldrp/UUS0HOg7QQ== X-Google-Smtp-Source: AGHT+IHSXXiIkz75ZZBfP8OC1KrSoU5SOYt/kWUnrqgcMzPpZS27SHBp8yWs/p2+ZenSO9nz5gdS2g== X-Received: by 2002:a05:6a20:6f8f:b0:1eb:3661:da33 with SMTP id adf61e73a8af0-1eb3661dcf1mr37223528637.30.1737652921402; Thu, 23 Jan 2025 09:22:01 -0800 (PST) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-ac495d5665csm110991a12.57.2025.01.23.09.22.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jan 2025 09:22:01 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Bruce Richardson Subject: [PATCH] build: force gcc to initialize padding bits Date: Thu, 23 Jan 2025 09:20:47 -0800 Message-ID: <20250123172048.134417-1-stephen@networkplumber.org> X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 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 the old behavior of initializing everything to zero. Signed-off-by: Stephen Hemminger --- config/meson.build | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config/meson.build b/config/meson.build index 6aaad6d8a4..5c8b5a15f5 100644 --- a/config/meson.build +++ b/config/meson.build @@ -330,6 +330,9 @@ warning_flags = [ # globally disabled warnings '-Wno-packed-not-aligned', '-Wno-missing-field-initializers', + + # guarantee that everything is zero when using initialization + '-fzero-init-padding-bits=all', ] if not dpdk_conf.get('RTE_ARCH_64') -- 2.45.2