Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp1334823lqg; Sun, 3 Mar 2024 05:42:14 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCW4vhgJlBO6hXcaXJvXCAhaksc7+BGZmv3+86WScrzDHeuhUuK0cppuREPhQLU9YoTyy2alLYj1TLL41w3vehWTeSQ3xkUBxXMo6FwQYw== X-Google-Smtp-Source: AGHT+IG29KumvFe5azKZJggfj/pwhu/m2oQxImCGNALBXfq6NZwb5JQl6XcKFRUe/n98MRbGpuOL X-Received: by 2002:a17:906:d156:b0:a41:392d:e11c with SMTP id br22-20020a170906d15600b00a41392de11cmr5884834ejb.26.1709473334158; Sun, 03 Mar 2024 05:42:14 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709473334; cv=pass; d=google.com; s=arc-20160816; b=Ov9KbGFZLWZ/gYw25MWvJVYay3U9KxrO0e8m684d9iLyomyf5bA5HA49EnM3Bh6zdc 4HUm5rpNq7wqgvWWGhnN7mYfjYi9YXWGKlF0qVseQ16pzRtcq0rnjl1h3zKxy9rlXqYJ R1Tx9yHkUgR19BrNRPvNe6yOGOacixRWNljtk4+/Ea8Savwpdw0wtt4nRmHWBa3FFGA2 S/GojyLvI90+Nf0mdbyoJsXGES8+1q5vhMjI85NyUT+oR8FWLazTO6NVkTzHBY05VXD4 1bO4qh8NxJs8Arcs3I4I+LyKwqg4dLWqnLNpeov3cmsOgVSFr2z7tNmetLYUz38L/rer QYJA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:subject :references:in-reply-to:cc:to:from:dkim-signature; bh=yr/aSk9e4+t3eZZV1C9IHvcNZE2F0kvWDJEC17wF2TU=; fh=8jNvKK4LKr3jNIHK8CkBB4PG0mfvwnIaWaZbvO4ass8=; b=QVNRs9aoz+B5ETtDYDY5T0/o4B17H2KGN7mB2aYixr1eMfF/FzUjcibUFNrPIHcyxV FXlTEfle0WfWctgvdCUEtgl/a5qlKB/zuSnz9NCrcikXN5A9M84PJoYT0KDl4o2umvt2 vM5ofY5ffF3u1z3Zz2k7BE28iHNRJU3pmxsDBsl70KA1UD+N9dTXGoZxuVxWcy/gDIyj AGNEMlekGctG5/QRigC4SAkQDR01ReFeMFJ4mcCUvGaGKJRDWodpcuJRgcspPOCQkE0O KKH7HJeR7mJ/sFx2214o9AsH4LGKbOFrhyhDcC5jtRtwYGYPyuPf4KsdCWCyDbZVhjdl XK2w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AVromr9A; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-89759-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-89759-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id dc19-20020a170906c7d300b00a445ca4baa0si2758273ejb.951.2024.03.03.05.42.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Mar 2024 05:42:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-89759-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AVromr9A; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-89759-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-89759-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 864DD1F22738 for ; Sun, 3 Mar 2024 13:42:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D491059B60; Sun, 3 Mar 2024 13:41:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="AVromr9A" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EF75B58212; Sun, 3 Mar 2024 13:41:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709473314; cv=none; b=mUh7Bv6l8SayoNzkaXHsEDIDl5ReueKOCQnE1y6hOGW8Bd/RoK/HZRJ8Az2c0NB5XeXUyW/JdCrqIXuF4O7/9LgZVVetaQYnccqzXc9ejsHNVuQDnvsRf7nO3w6mzk/1wc3BakxMbtn4RXnnX5Dr9hQwTJBn7jML0QIg/VTHWCs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709473314; c=relaxed/simple; bh=/LKK/gSvDJcHii+LVnHZWh4p11aKw93bUXQ3iuGv9zQ=; h=From:To:Cc:In-Reply-To:References:Subject:Message-Id:Date: MIME-Version:Content-Type; b=WtsUEMOTN5DMnOpErkSF8XpuwVW2tnFE71MZpJFUc9H1XmwiPzV2Uni0O9MZPBQkCvvuaWufYPogjDFyj79AdgYeS5goJwPnBIdzQkT7guKu1hLTw1pVlB8NalhyTqbKYCMB+Wty57l/tMWEoauh1xOPHNZ7XHat41C5V34F8P0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=AVromr9A; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id D1455C433F1; Sun, 3 Mar 2024 13:41:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709473313; bh=/LKK/gSvDJcHii+LVnHZWh4p11aKw93bUXQ3iuGv9zQ=; h=From:To:Cc:In-Reply-To:References:Subject:Date:From; b=AVromr9AMGyhj+dSFI14InpyvyGVbtwDGr0IJuwaB6u8c7LhbyePuwStKyqLwqW7I T0EW5OmAF3ZJ2B7iDB8BfIdGLnBaR0b5JwkNVpXASrx8S/kwRZu6IYbEYTbW+UGLf0 IfjvJlt6ma8Nr2QxJEsKos7gMVF0vhNLUNVSHG+aP0De3bmRdBYciCGXXQXBXOkWwl sqFKJDpPTmVZaAKq+DSjABefp00LL70juMKXQCsS3PN4+6ka98zrBzvhPSjIScTOUa V0AbGBLlBD+4Lqp0fnFGqV0D6p7YWrQ2Ds3ej0PJDbCILmF2O3XosMVCYD8vR7eLtI YHXWxdUD0uEhA== From: Leon Romanovsky To: Jason Gunthorpe , "Gustavo A. R. Silva" Cc: linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org, Kees Cook In-Reply-To: References: Subject: Re: [PATCH][next] RDMA/uverbs: Avoid -Wflex-array-member-not-at-end warnings Message-Id: <170947330942.248794.6765878456401516827.b4-ty@kernel.org> Date: Sun, 03 Mar 2024 15:41:49 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Mailer: b4 0.12-dev-a055d On Fri, 01 Mar 2024 12:37:45 -0600, Gustavo A. R. Silva wrote: > -Wflex-array-member-not-at-end is coming in GCC-14, and we are getting > ready to enable it globally. > > There are currently a couple of objects (`alloc_head` and `bundle`) in > `struct bundle_priv` that contain a couple of flexible structures: > > struct bundle_priv { > /* Must be first */ > struct bundle_alloc_head alloc_head; > > [...] Applied, thanks! [1/1] RDMA/uverbs: Avoid -Wflex-array-member-not-at-end warnings https://git.kernel.org/rdma/rdma/c/155f04366e3cad Best regards, -- Leon Romanovsky