From mboxrd@z Thu Jan 1 00:00:00 1970 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 543B9270038; Thu, 27 Feb 2025 01:25:21 +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=1740619521; cv=none; b=gkWkyWt4M8VQJDW/CfFWHr2mpbPShLiFZdCD/O+5Yxnysmsvxm0dcwHeK0mKFtwQtwVZvTusuZl1e8Qd4LxdSs4ZFfPoPrlQuJ6bVK1d3ICdUnPqu/OAR531tVDrYNgfF43t3PItznwhMyugCbFRC0ibhIU01AqTk/KN86lLOpU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740619521; c=relaxed/simple; bh=m62/7SvmUtw757E6Jq7wZPq5s4GWXKsm4qNDnbp74IU=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=pmpByWWNv8vkiflPFAq1bSw8f9KB0k9mlZ9w5vg23fQm3zWzuQrUa3WEf2+vKXYJ3bTYYGWHpI8L3wzOJLca0VLKB8b/VKmusDIuCDU16mLBH+aJMXqITzGCpoatBY8//SUnr5KitzYIDrzzGR6PCMGH7jKdV5m1+kIoJoY/dTw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=t2vu70uD; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="t2vu70uD" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B67EAC4CEE2; Thu, 27 Feb 2025 01:25:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1740619521; bh=m62/7SvmUtw757E6Jq7wZPq5s4GWXKsm4qNDnbp74IU=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=t2vu70uDJTXI0YfIToAq3wGTPusu3xpdKEzw9GotT/k7G05qRLfVp5gSTNVv5WJa1 cJul9GlwKfq2SYLd9Aiin+EXrp/pIThCt4cY7VlJWHSorhjcQSIRyZf8E6XdIgqnFK HNyf+gypQ8D9AjzVgSkjpeGSW0f1eeWVeevo0Irs+USVjZnthYvohFWiS+ZGgqCFbi F/RN9FfPTJy5b2YW6uty5hHqGv1O/U+SaHOgpVnJPzr0/jOpnJXPms/Juecuy4QDPF XYs+V8IfEE788Os5veaxTS9Dg1pjh1nHrCKx/JGPlhNlCrN2bS0CdpLGNkVcepPIqZ lzfwMJgIStBWA== Date: Wed, 26 Feb 2025 17:25:19 -0800 From: Jakub Kicinski To: Saeed Mahameed Cc: "Gustavo A. R. Silva" , Saeed Mahameed , Leon Romanovsky , Tariq Toukan , Andrew Lunn , "David S. Miller" , Eric Dumazet , Paolo Abeni , netdev@vger.kernel.org, linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org Subject: Re: [PATCH v3][next] net/mlx5e: Avoid a hundred -Wflex-array-member-not-at-end warnings Message-ID: <20250226172519.11767ac9@kernel.org> In-Reply-To: References: Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Wed, 26 Feb 2025 10:49:35 -0800 Saeed Mahameed wrote: > On 26 Feb 13:47, Gustavo A. R. Silva wrote: > >-struct mlx5e_umr_wqe { > >+struct mlx5e_umr_wqe_hdr { > > struct mlx5_wqe_ctrl_seg ctrl; > > struct mlx5_wqe_umr_ctrl_seg uctrl; > > struct mlx5_mkey_seg mkc; > >+}; > >+ > >+struct mlx5e_umr_wqe { > >+ struct mlx5e_umr_wqe_hdr hdr; > > You missed or ignored my comment on v0, anyway: > > Can we have struct mlx5e_umr_wq_hdr defined anonymously within > mlx5e_umr_wqe? Let's avoid namespace pollution. It's also used in struct mlx5e_rq, I don't think it can be anonymous?