From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-182.mta0.migadu.com (out-182.mta0.migadu.com [91.218.175.182]) (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 5858A2FF641 for ; Thu, 4 Dec 2025 17:49:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764870556; cv=none; b=jil971bDClIviRZoSug2TUf7p9DIhn/HAdIgjE7dUdL9r8laGTd/2yAMTUKb9tqEe5kHGbbUiZ7Tusl9B75jgU7A3s2VViDFutvcSJy1A40/It0m6Ur4nqcikAAff8uNCQYeX18EmcPmugHtTK2WY3QBSLUdmplZ6lcRw7O36Vw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764870556; c=relaxed/simple; bh=WWqGeiNVPO9/Fp6GzYFs3pCYDJOi3lGQxCNY3A3lxlU=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=u0bKUSKXjTbXQn96sLL1+eT3zysAFWVeJ6VVQbQAhAndsHCrRWkMFoZ3lzkacdp3mwttIQ3B2ZTTn2FEjmEnw34FQS0Wiw/ekxHTnKr0II+pehk4D1t1ylM33ixmV/LLKuTbNqeGwcRE9/6wmbYT2uqt4lu8+F+o62mN4MDH47s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=Wv/OQul5; arc=none smtp.client-ip=91.218.175.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="Wv/OQul5" Message-ID: <80620d09-8187-45b1-a490-07c52733ac21@linux.dev> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1764870542; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=zJf4yU0EsoB5weGrFCwtOtM8v9dAPibH72MKj1BMOlU=; b=Wv/OQul5buHvEmsn+ke04fCFNRkSqPnlsrYX7Al0SFRmAXzBAI9r24+PuDT2IiPB8TpaYX OUFwJQbHaRIBTmtr0SfLF3pPyHBOsda9HtCg1Mk2Tizi+W9A53JJD27HGu4+9b0o2xV+8V PKxfhH7WX63eEuain5/y6B0nzpXt4aw= Date: Thu, 4 Dec 2025 09:48:42 -0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Subject: Re: [PATCH][next] RDMA/rxe: Avoid -Wflex-array-member-not-at-end warnings To: Jason Gunthorpe Cc: "Gustavo A. R. Silva" , Zhu Yanjun , Leon Romanovsky , 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> Content-Language: en-US X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: "yanjun.zhu" In-Reply-To: <20251204130559.GA1219718@nvidia.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_OUT On 12/4/25 5:05 AM, Jason Gunthorpe wrote: > On Wed, Dec 03, 2025 at 09:08:45PM -0800, Zhu Yanjun wrote: >>> unsigned int res_head; >>> unsigned int res_tail; >>> struct resp_res *res; >>> + >>> + /* SRQ only. srq_wqe.dma.sge is a flex array */ >>> + struct rxe_recv_wqe srq_wqe; >> >> drivers/infiniband/sw/rxe/rxe_resp.c: In function get_srq_wqe: >> drivers/infiniband/sw/rxe/rxe_resp.c:289:41: error: struct rxe_recv_wqe has >> no member named wqe >> 289 | qp->resp.wqe = &qp->resp.srq_wqe.wqe; >> | ^ > > I didn't try to fix all the typos, you will need to do that. Exactly. I will fix this problem. This weekend, I will send out an official commit. Yanjun.Zhu > > Jason