From nobody Mon Nov 25 05:26:04 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass(p=reject dis=none) header.from=citrix.com ARC-Seal: i=1; a=rsa-sha256; t=1715366760; cv=none; d=zohomail.com; s=zohoarc; b=BJw7F3o509GhL9KZP9NW5X7KcsI5Tz15mAEhJlm8o4bxeQbS5ZXHJ+QnjzCgjT4Z/0lLV86iuDjLJcQzAifY/rhpLtXEEadkjl/vfWGcxhm8MlwRq8CbryrMxMRvc9sJ1qQbeXa/8Twr1fjJl8NjKJWJQINHZWY2SllsiQt8X8o= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1715366760; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=SKpaY5WU7UHJhmw5XT4Z3i9Z6X0mzfzZ8gQ458pu6SA=; b=kYC31k3hhmb+Sc+CuABVN4tHZWBBFTLYDFkd/2n030UKn+rwz2Jpm6lhj1yr9fsFzEHRKGnxi6d2TzVM4sCXIwBcY2i6XenEqvDrFrpj6so/Dr4aysvS23SgPwZsW7vpu8TDQoG8uf7RFmjQzczVOQq5w/t9SjvkOL/27pfdS/8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass header.from= (p=reject dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1715366760874261.0295202041759; Fri, 10 May 2024 11:46:00 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.720025.1122946 (Exim 4.92) (envelope-from ) id 1s5VFO-0002KC-Ai; Fri, 10 May 2024 18:45:34 +0000 Received: by outflank-mailman (output) from mailman id 720025.1122946; Fri, 10 May 2024 18:45:34 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1s5VFO-0002K5-7u; Fri, 10 May 2024 18:45:34 +0000 Received: by outflank-mailman (input) for mailman id 720025; Fri, 10 May 2024 18:45:32 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1s5VFM-0002Jz-GH for xen-devel@lists.xenproject.org; Fri, 10 May 2024 18:45:32 +0000 Received: from mail-lj1-x22a.google.com (mail-lj1-x22a.google.com [2a00:1450:4864:20::22a]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id 79b3457d-0efd-11ef-b4bb-af5377834399; Fri, 10 May 2024 20:45:30 +0200 (CEST) Received: by mail-lj1-x22a.google.com with SMTP id 38308e7fff4ca-2db13ca0363so36704481fa.3 for ; Fri, 10 May 2024 11:45:30 -0700 (PDT) Received: from andrewcoop.citrite.net (default-46-102-197-194.interdsl.co.uk. [46.102.197.194]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a5a1787c699sm211206566b.53.2024.05.10.11.45.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 11:45:29 -0700 (PDT) X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 79b3457d-0efd-11ef-b4bb-af5377834399 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=citrix.com; s=google; t=1715366729; x=1715971529; darn=lists.xenproject.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=SKpaY5WU7UHJhmw5XT4Z3i9Z6X0mzfzZ8gQ458pu6SA=; b=PuX9oRmlt7MSiIPKJlLi1dB2WK9S2HkfZ+/n1V73Dl85xv49OsZ7btWxgLYxNDkTmC Ap7Q5qyaH34ZkUYrOdWJB4rojlUNuBLMZ22Tbli2r1kisLpJ1UyqnFxqm3GFP+q46z+u Sv86g9nReKnlR8ZnhmN1k8ucA5VHK/0EdbrC0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715366729; x=1715971529; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=SKpaY5WU7UHJhmw5XT4Z3i9Z6X0mzfzZ8gQ458pu6SA=; b=oIWGf1usXkBCebN0UyeG8VFhKis4CerqK0a4uioJrd1pSSJeCH7D+Oax/w0TQYuOyA deh/Z4J+Q+Ek1J5tU6OFVfi1lNjCO2kZZpzMQ/UaIXcerz7DtYTtpO8IlEmkYLW5sjuX msmjmc6R+VEDu5TinCsRoXO2ABOgEGCes5Uq7a+O617+iJ5ql9JP20TIsjLCcL9x/lbE 3xNJDKb6pDeSFpDNvW+IIu+jOUcTX6XU6HEikLeucnda8qiZmUsyUVy8xhqplhrqiKHu M1c9FcFjnHyo/APIgY3uf5rhreip82PSJwv782uqdMqL8J6bXviBQ1hmz/aHOQHeGfvO KyyA== X-Gm-Message-State: AOJu0YzIrt8I8rxAEO9OcTXYs+M2lv4mSF3bOOXMUT1aE4bKN5bFhGhk bv0MezBp6vr5JmbC1pZxuXeuB6byIjnKf7O3LVbEGbIfixhWYnpRIiw/jv+bgRIehuJ+0oYAVwP T X-Google-Smtp-Source: AGHT+IFqcW7azKlpdKNF1stCeXPIMc8sFgQJijxbq8hsukoFN3xRc9RG79AaxqKQplbx5DtHevvd/g== X-Received: by 2002:ac2:51a1:0:b0:521:f39d:1a8 with SMTP id 2adb3069b0e04-5220fc7cd5cmr2531479e87.8.1715366729521; Fri, 10 May 2024 11:45:29 -0700 (PDT) From: Andrew Cooper To: Xen-devel Cc: Andrew Cooper , Stefano Stabellini , Nicola Vetrini , Simone Ballarin , "consulting @ bugseng . com" Subject: [PATCH] xen/build: Use -Wflex-array-member-not-at-end when available Date: Fri, 10 May 2024 19:45:28 +0100 Message-Id: <20240510184528.2272560-1-andrew.cooper3@citrix.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @citrix.com) X-ZM-MESSAGEID: 1715366762783100001 Content-Type: text/plain; charset="utf-8" This option is new in GCC-14, and maps to MISRA Rule 1.1. The codebase is clean to it, and Eclair is blocking. Signed-off-by: Andrew Cooper Acked-by: Stefano Stabellini --- CC: Stefano Stabellini CC: Nicola Vetrini CC: Simone Ballarin CC: consulting@bugseng.com I really ought to have posted this before we regressed the tree, but oh wel= l. Better late than never. --- xen/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/xen/Makefile b/xen/Makefile index b6c39fc6aefb..71f0cb5071b3 100644 --- a/xen/Makefile +++ b/xen/Makefile @@ -396,6 +396,7 @@ CFLAGS +=3D -nostdinc -fno-builtin -fno-common CFLAGS +=3D -Werror -Wredundant-decls -Wwrite-strings -Wno-pointer-arith CFLAGS +=3D -Wdeclaration-after-statement $(call cc-option-add,CFLAGS,CC,-Wvla) +$(call cc-option-add,CFLAGS,CC,-Wflex-array-member-not-at-end) CFLAGS +=3D -pipe -D__XEN__ -include $(srctree)/include/xen/config.h CFLAGS-$(CONFIG_DEBUG_INFO) +=3D -g =20 --=20 2.30.2