From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from omta34.uswest2.a.cloudfilter.net (omta34.uswest2.a.cloudfilter.net [35.89.44.33]) (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 55FB72580C7 for ; Wed, 25 Jun 2025 21:43:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=35.89.44.33 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750887837; cv=none; b=FdY/Lc5aB9+HpJOC/oSAq/7kFndVKBEC9YSh+iGzTgqsdN94FVorRzDwYTfSddpxE13ElgDRqojV6S+omxe0wTjyGN3yPtKH4kgJqF6eROafDiApsRZQKGMk50Tom5BBneUaaHXkKtkvbLkpEqN8DrdAD0PHCToUm4oyMkjJWJk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750887837; c=relaxed/simple; bh=5lynVMriVClgMthsFZJ0Tvkpa1tGB9Lp6lL6aLGaCBE=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=TN3NTFjq6kJJDAGl0QFFLXpeXjIXwIjfm247RL/vphTDLCGHtnlKSluAiZ2/CdIA9XK0R4iTqk8B5Gzpljdy/ZObyt2k3UqkvKfgBrcRqcr70MyiQYKtPcTxfGRbB73cUWeGWjZn71meMTq2TDMm8eMa0hieUZUWbJEc8PYU4jU= 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=WXvUjmL4; arc=none smtp.client-ip=35.89.44.33 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="WXvUjmL4" Received: from eig-obgw-5005a.ext.cloudfilter.net ([10.0.29.234]) by cmsmtp with ESMTPS id UVvGuAf9WWuHKUXuMu6qa4; Wed, 25 Jun 2025 21:43:54 +0000 Received: from gator4166.hostgator.com ([108.167.133.22]) by cmsmtp with ESMTPS id UXuLuGzj6q3CNUXuMuoXh5; Wed, 25 Jun 2025 21:43:54 +0000 X-Authority-Analysis: v=2.4 cv=VpfoAP2n c=1 sm=1 tr=0 ts=685c6d9a a=1YbLdUo/zbTtOZ3uB5T3HA==:117 a=y7jUFFJD1EYPe7d4fIfORw==:17 a=IkcTkHD0fZMA:10 a=6IFa9wvqVegA:10 a=7T7KSl7uo7wA:10 a=QyXUC8HyAAAA:8 a=h90DJapn4poTkUJIt3kA:9 a=QEXdDO2ut3YA:10 a=xYX6OU9JNrHFPr8prv8u: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=WSgqlLPFusC6Fal/vnl5EKpDH7EySq/W8ghCEckfU5w=; b=WXvUjmL4YQUvHcCnKTe5kb8SCL rnsv9zd6wvXpCP6BdUJEdEbS31FOYKxFzF5vK8xh1+91vJAqPlhKhBaWKsraEtwzk01P9PrbHxwcq I/v7ZOHYGKSTvVY/M84F+sJ4bP7RfEjL4yLqdGRy+lQeah6WgGWd1L7sQ9J3E43eBzflxqbqqvT7k tiAPJXW+zpRgDpS3hwJgcwJjIWx8UYfPrl/b+sEBSLpn7qDUpZNXng7jeq2w5mmOxnemOTgLyJv4x zMvUMqT8j0WOX59MfgQq4dAKM5geL3mQrqWmRTk+LecokoXvh1oy6OAU35KAWqAx570X5V4+YQCIm YB8ybK4A==; Received: from [177.238.16.137] (port=49324 helo=[192.168.0.27]) by gator4166.hostgator.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.1) (envelope-from ) id 1uUXuJ-00000000LhW-3HeQ; Wed, 25 Jun 2025 16:43:51 -0500 Message-ID: Date: Wed, 25 Jun 2025 15:43:41 -0600 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 v3][next] acpi: nfit: intel: avoid multiple -Wflex-array-member-not-at-end warnings To: dan.j.williams@intel.com, Kees Cook , "Gustavo A. R. Silva" Cc: Vishal Verma , Dave Jiang , Ira Weiny , "Rafael J. Wysocki" , Len Brown , nvdimm@lists.linux.dev, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org References: <202506250950.31C8A58E@keescook> <685c5d0062f2b_1608bd10051@dwillia2-xfh.jf.intel.com.notmuch> <685c653a6fe42_1608bd100d0@dwillia2-xfh.jf.intel.com.notmuch> Content-Language: en-US From: "Gustavo A. R. Silva" In-Reply-To: <685c653a6fe42_1608bd100d0@dwillia2-xfh.jf.intel.com.notmuch> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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: 177.238.16.137 X-Source-L: No X-Exim-ID: 1uUXuJ-00000000LhW-3HeQ X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: ([192.168.0.27]) [177.238.16.137]:49324 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: MS4xfFco2aHKmAz4zRuC9VMJA+ZTkJb3NHIuzLDFPJsvCCF55RciwA0Djf6aVUUmNoXn9lZ/GO8jXiqDkVd4C9bGy/yNchniZ7PMkY2ioqPjLTiymIrF81aZ 0Xyzv0hxmbEIH2vmja1JrA1HzWpqmSLVNfhe3R7uenXhjWVXPO9tnLfXYrm+QfOlb0gPVUXeRDi+1hE6nZMJNvhfFDkOM8OVKW1mHaG0Ipwx6jPpIPE7SMCb On 25/06/25 15:08, dan.j.williams@intel.com wrote: > dan.j.williams@ wrote: >> Gustavo A. R. Silva wrote: >> [..] >>>> I think it would be a pretty small and direct replacement: >>>> >>>> TRAILING_OVERLAP(struct nd_cmd_pkg, pkg, nd_payload, >>>> struct nd_intel_get_security_state cmd; >>>> ) nd_cmd = { >>>> ... >>> >>> Yes, this works. Hopefully, maintainers will comment on this and let us >>> know what they prefer. :) >> >> Hey Gustavo, apologies for the latency here. I think TRAILING_OVERLAP() >> looks lovely for this if only because I can read that and have an idea >> what it means vs wondering what this _offset_to_fam is about and needing >> to read the comment. >> >> If you can get me that patch on top of the TRAILING_OVERLAP() branch I >> can test it out and ack it to let it do in through the KSPP tree. > > Just to move this along, I gave this conversion a try and all looks good > here. So feel free to fold this in and add: > > Acked-by: Dan Williams > Tested-by: Dan Williams > > ...and take it through the KSPP tree with the TRAILING_OVERLAP() merge. Thank you, Dan! :) -Gustavo