From patchwork Fri May 10 18:45:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Cooper X-Patchwork-Id: 13661826 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3D97AC25B10 for ; Fri, 10 May 2024 18:45:54 +0000 (UTC) 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 X-Outflank-Mailman: Message body and most headers restored to incoming version 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-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 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 well. 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 += -nostdinc -fno-builtin -fno-common CFLAGS += -Werror -Wredundant-decls -Wwrite-strings -Wno-pointer-arith CFLAGS += -Wdeclaration-after-statement $(call cc-option-add,CFLAGS,CC,-Wvla) +$(call cc-option-add,CFLAGS,CC,-Wflex-array-member-not-at-end) CFLAGS += -pipe -D__XEN__ -include $(srctree)/include/xen/config.h CFLAGS-$(CONFIG_DEBUG_INFO) += -g