From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from omta040.useast.a.cloudfilter.net (omta040.useast.a.cloudfilter.net [44.202.169.39]) (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 C96513431EF for ; Fri, 30 Jan 2026 21:41:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=44.202.169.39 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769809304; cv=none; b=XoAgnm1RnnZI8DGhc4iLbnmPkFmQeF4K17srJce8Zp78rzlJWkBX1OdPwqKKG8XaY1/F6m/JS7FzoCHy97phC4fGxNcim8iDrWGM8Qhpg+bJHFjLt4c3IKnwKvs37ktnplEkVUNy1RflTMOy5UAaxeZ6pRUQ1F9jYKXx35Y3SDQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769809304; c=relaxed/simple; bh=d151nPhV/og8GP7fl9WfBTcaZ8tdSVrTU+4LsAva8ak=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=ATPrK7HMERI6TI5JomRLxVJqE+NaA8dCGbvFXcRmXMJwdG7wglVGi1T7RS5oTvU7O+lqGa5nzkkEJCOZ8iElbE3PPhs8ZyT8ULWWLm4SsoL25hYQzOXyqe9TtyAkGZhQiw0rK4yVMz0vFqlkJZtmd4Boio8ztvRmM78nGAFdHyc= 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=unRIMCNu; arc=none smtp.client-ip=44.202.169.39 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="unRIMCNu" Received: from eig-obgw-5004b.ext.cloudfilter.net ([10.0.29.208]) by cmsmtp with ESMTPS id lvISvsaotCxrGlwFEvWpc3; Fri, 30 Jan 2026 21:41:36 +0000 Received: from gator4166.hostgator.com ([108.167.133.22]) by cmsmtp with ESMTPS id lwFDvvsGSqfpWlwFEvbFft; Fri, 30 Jan 2026 21:41:36 +0000 X-Authority-Analysis: v=2.4 cv=A55sP7WG c=1 sm=1 tr=0 ts=697d2590 a=1YbLdUo/zbTtOZ3uB5T3HA==:117 a=boSZjC74iCM+AjoU0vq/6A==:17 a=IkcTkHD0fZMA:10 a=vUbySO9Y5rIA:10 a=7T7KSl7uo7wA:10 a=VwQbUJbxAAAA:8 a=ajYwpdcRSMJ5fXWETOcA:9 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=FVdo6peTxUwsOnHuBQDXdxvyZZx91dKKbw9Za1mv6Ec=; b=unRIMCNutEWq0yx4wXSCP4FwKL Ks/LLSb25eea1AJhVAICnn8hTljrasodhMJ9PRpQ68h2+T98XnU/FbtDtrkESL3cPN7yuQugt/F6p 9zCwH1ov4SOGBj1md5ILytxogOP5EJYXoixu+AMfTDDvcHYXMcZ0k1zyOPm1VmPDMM+aZtkdcSm3c yhnLF+QoOkkAtT6gvRvIAFEB69AVaXJNGyFRTZ2km7RLPZo4/HCnBd5TVUzD00JgTq7Ruio1/23kx vxfXObHJ4Jx/+21FHxpzEu5BMrfmhrM9KhznVqU6lu4jQVmq6/wSmStHod30MZQ5kb+/yEfFUd2N1 4jqERDww==; Received: from [177.238.18.27] (port=38706 helo=[192.168.0.104]) by gator4166.hostgator.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.99.1) (envelope-from ) id 1vlwFD-00000004Kr6-0wMJ; Fri, 30 Jan 2026 15:41:35 -0600 Message-ID: <7d712992-e006-4787-95ee-e82cfa25f8ff@embeddedor.com> Date: Fri, 30 Jan 2026 15:40:57 +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] dlm: Avoid -Wflex-array-member-not-at-end warning To: "Gustavo A. R. Silva" , Alexander Aring , David Teigland Cc: gfs2@lists.linux.dev, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org References: Content-Language: en-US From: "Gustavo A. R. Silva" In-Reply-To: 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.18.27 X-Source-L: No X-Exim-ID: 1vlwFD-00000004Kr6-0wMJ X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: ([192.168.0.104]) [177.238.18.27]:38706 X-Source-Auth: gustavo@embeddedor.com X-Email-Count: 10 X-Org: HG=hgshared;ORG=hostgator; X-Source-Cap: Z3V6aWRpbmU7Z3V6aWRpbmU7Z2F0b3I0MTY2Lmhvc3RnYXRvci5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfKsATwPobV01aby8lDSYtwnqL+EopZg+xIDT921Y1tVjAErwNUKQNoDfVg7GiuKqb6ct2L/Jp/2kGD/dGIofgqoLMh3/4ue4Q9nV8FFNx4m+UuTjCL1O N+ufxaNGDCiLXCyeMkQjzMHkRscBxkilfe63cYor6ZicQQk05+CCH0h2QTRULbzW5CY9tYi2KTPj4TJPOhp68Y2EVRH/0vPaTHJI86jKCNTsgF1Lx638RycJ Hi all, Who can take this, please? Thanks -Gustavo On 9/22/25 23:20, Gustavo A. R. Silva wrote: > -Wflex-array-member-not-at-end was introduced in GCC-14, and we are > getting ready to enable it, globally. > > Move the conflicting declaration to the end of the corresponding > structure. Notice that `struct dlm_message` is a flexible > structure, this is a structure that contains a flexible-array > member. > > Fix the following warning: > > fs/dlm/dlm_internal.h:609:33: warning: structure containing a flexible array member is not at the end of another structure [-Wflex-array-member-not-at-end] > > Signed-off-by: Gustavo A. R. Silva > --- > fs/dlm/dlm_internal.h | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/fs/dlm/dlm_internal.h b/fs/dlm/dlm_internal.h > index d534a4bc162b..9df842421ae0 100644 > --- a/fs/dlm/dlm_internal.h > +++ b/fs/dlm/dlm_internal.h > @@ -606,7 +606,6 @@ struct dlm_ls { > > struct dlm_rsb ls_local_rsb; /* for returning errors */ > struct dlm_lkb ls_local_lkb; /* for returning errors */ > - struct dlm_message ls_local_ms; /* for faking a reply */ > > struct dentry *ls_debug_rsb_dentry; /* debugfs */ > struct dentry *ls_debug_waiters_dentry; /* debugfs */ > @@ -665,6 +664,9 @@ struct dlm_ls { > > int ls_namelen; > char ls_name[DLM_LOCKSPACE_LEN + 1]; > + > + /* Must be last --ends in a flexible-array member.*/ > + struct dlm_message ls_local_ms; /* for faking a reply */ > }; > > /*