From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-186.mta0.migadu.com (out-186.mta0.migadu.com [91.218.175.186]) (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 5E8CF3612C0 for ; Thu, 4 Dec 2025 17:49:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.186 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764870548; cv=none; b=obtzPZmJZqwCQf3mc8m5MTOzzu4GMlry3Hjxr42cJBFD+zK9LLOGIvwK/WVtTzYd+IvJqC9wlTcLcXp1mxzeQMMzAzZ9Bpk6CHw1YhD+54mh5GHoReg8IuGuNHrXuX3p5PllpgQIlCca3eRgeTwH2Sk7LuF+zmif+g9Y/O2b1EQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764870548; c=relaxed/simple; bh=WWqGeiNVPO9/Fp6GzYFs3pCYDJOi3lGQxCNY3A3lxlU=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=KFALUoY63t8IKrTkWLjha2JO1lXu6szJa+8HbzIAXUaqx9iq/vKWkbE0cDAk2827zU+k5eLBH4thesVJyYssRR+hNVvL3cnRSZQ/Ir7miwrBvW3CJlpboLpc21AV5G+6fpeF47JehNBl6xFEkE6r37k/aDSxYDSKCayoobuvkpI= 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.186 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-hardening@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