From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from omta036.useast.a.cloudfilter.net (omta036.useast.a.cloudfilter.net [44.202.169.35]) (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 A1E5F26B971 for ; Fri, 19 Dec 2025 05:48:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=44.202.169.35 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766123327; cv=none; b=r3DInD5rbtVL+UY/e5pSeOgc0GXd12xScTlVgBtSdkEho7GZa6qcIhEZkkSb6KHeQz/GLuS0Cf/JTXgs1wTlp5X9EcYSQ9WKMrhTnk7U/3aDgd8vNk0EnzKfu0xkTw1tYXsvh2UkSXXEeFnSji8jj6yD4BeDT7MQ8hTzBzf/vC0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766123327; c=relaxed/simple; bh=f4tJcY0zeyT2kIqUw9BwvcPuvmg7ZanfgE/69b1zWdk=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=Pkl2FymLUZwutxYCufYzJP539Y6Lzwp2Ycyy6gxyW2cH0A5FRkDl3jTJF9aVaMvjzk+S/YSfrkMV0WQGz59PM98tfCLvjIy1Lq49D/Q9uyNpOWkczkBfq0nQdhK+/5V2eMVZOqV/cpjnRhnaf8WsDCWr0KI5s8f5T4wIpiEg4tI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=embeddedor.com; spf=pass smtp.mailfrom=embeddedor.com; dkim=pass (2048-bit key) header.d=embeddedor.com header.i=@embeddedor.com header.b=XEiNg+fp; arc=none smtp.client-ip=44.202.169.35 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=embeddedor.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=embeddedor.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=embeddedor.com header.i=@embeddedor.com header.b="XEiNg+fp" Received: from eig-obgw-5001b.ext.cloudfilter.net ([10.0.29.181]) by cmsmtp with ESMTPS id WPmovHZ6oKXDJWTM4vCM3g; Fri, 19 Dec 2025 05:48:44 +0000 Received: from gator4166.hostgator.com ([108.167.133.22]) by cmsmtp with ESMTPS id WTM4vKXcQMvWIWTM4vl385; Fri, 19 Dec 2025 05:48:44 +0000 X-Authority-Analysis: v=2.4 cv=Ud5RSLSN c=1 sm=1 tr=0 ts=6944e73c a=1YbLdUo/zbTtOZ3uB5T3HA==:117 a=ujWNxKVE5dX343uAl30YYw==:17 a=IkcTkHD0fZMA:10 a=wP3pNCr1ah4A:10 a=7T7KSl7uo7wA:10 a=sCnCf3pnyfLPVqDf7dUA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=2aFnImwKRvkU0tJ3nQRT:22 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=embeddedor.com; s=default; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date:Message-ID:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=Q1TkFPTfRwhSUh6QMJT32hEY62qRYKxTLZnluHvILIE=; b=XEiNg+fpj/bPghrBO1Oqyh9XsO vdukHCfqYd/iItoXJgXHnTCnNEJKrkorP8ue621UdPVLkGMQMIPJgJFuXqmo/OXqXmviN4tZ01mq3 bQYmn+r6/UPdXwaCpd4FJyOM2Njxr+YxS16iiIjDupznV9DtKSgw9DsoSPlHDKaP+DTPNoazKTv5h +TRK3+aTRNVEq03KH+1qIa/TvHQpf78FNbn7MHlU5//2PMR9fcDiu6L6ngRSGAVmow0wQ64spe0g+ KGx08W74oUGHMNAy2IrzxCrxB45lRo5xfWnXbNSDLSTpmQ4uTO9C4QQR8STWOrvwHyG30z1+D4TRF 8H+KiC+g==; Received: from i118-18-233-1.s41.a027.ap.plala.or.jp ([118.18.233.1]:61583 helo=[10.83.24.44]) by gator4166.hostgator.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.1) (envelope-from ) id 1vWTM3-00000002JVZ-1XmM; Thu, 18 Dec 2025 23:48:43 -0600 Message-ID: <8470c362-8c41-4b99-8c05-0903285c1b6c@embeddedor.com> Date: Fri, 19 Dec 2025 14:48:31 +0900 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH][next] RDMA/rxe: Avoid -Wflex-array-member-not-at-end warnings To: Zhu Yanjun , Leon Romanovsky Cc: Jason Gunthorpe , "Gustavo A. R. Silva" , Zhu Yanjun , linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org References: <20251202181334.GA1162842@nvidia.com> <5ac954bb-ad4d-4b4c-b23b-47350b428404@linux.dev> <20251204130559.GA1219718@nvidia.com> <80620d09-8187-45b1-a490-07c52733ac21@linux.dev> <2191ee0f-a528-4187-ae5b-5aba18741701@linux.dev> <7e3a294f-5dc2-4e8c-aacc-0286c1592038@linux.dev> <20251218155623.GC400630@unreal> <5d950681-7f16-4b1e-a512-b118c747ffd7@linux.dev> <6f15e334-8902-4d1d-adab-aa9ab8f009d6@linux.dev> <01b419f6-264e-4faa-b4df-480fdf952d14@linux.dev> Content-Language: en-US From: "Gustavo A. R. Silva" In-Reply-To: <01b419f6-264e-4faa-b4df-480fdf952d14@linux.dev> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator4166.hostgator.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - embeddedor.com X-BWhitelist: no X-Source-IP: 118.18.233.1 X-Source-L: No X-Exim-ID: 1vWTM3-00000002JVZ-1XmM X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: i118-18-233-1.s41.a027.ap.plala.or.jp ([10.83.24.44]) [118.18.233.1]:61583 X-Source-Auth: gustavo@embeddedor.com X-Email-Count: 2 X-Org: HG=hgshared;ORG=hostgator; X-Source-Cap: Z3V6aWRpbmU7Z3V6aWRpbmU7Z2F0b3I0MTY2Lmhvc3RnYXRvci5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfKm1NeykZjKikPdYHYGk9bwSotLk64Qo88cj19Nxjf8nY7j7cunE20aRIlAufmvCYVtjJFbGXTktyIcboHeYh9kuHgXXRFIY+ggDIuyPMks7KkAK15Hq EsbV45M6yrwVrTCO/Pj79ukXI7abAfmhXzTZrApEmxUIPGKxcfEXGmh9rtz/GRv2ROYP6uIth+buwI6UtC78JCHA13kqpzxwil2yH8eLo999Pc6um6/D75Uh > The struct rxe_recv_wqe is as below. > > struct rxe_recv_wqe { >     __aligned_u64       wr_id; >     __u32           reserved; >     __u32           padding; >     struct rxe_dma_info dma; Expand struct rxe_dma_info here. > }; > > But I can not find dma.sge in the above struct. Can you explain it? > > To be honest, I read your original commit for several times, but I can not get it.  Can you explain the MACRO TRAILING_OVERLAP? And how can it replace the > following struct? This is clearly explained in the changelog text. I think what you're missing will be clear once you understand how nested structures work. See my comment above. -Gustavo