From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from omta034.useast.a.cloudfilter.net (omta034.useast.a.cloudfilter.net [44.202.169.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 D1D1B237705 for ; Thu, 6 Feb 2025 23:23:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=44.202.169.33 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738884226; cv=none; b=JwXNYXnBOlQftmyl0weWjLrnZd6VUZ279STe8vDrRTB0G7hdCVL5Rfyszm26bRyzymaxv0DW0wjiRYXSQ5ZTd6GSiNyeZRDegs4taTDrsfYkguWjQS/OUzK0V+3S4rVmfbtSXMKyTve03lRdl0EoOQe5lzVQzESWsCE6rl+W0kE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738884226; c=relaxed/simple; bh=V2hDQVZfXi10myODsQHJDr1PrZbrGGSvhhbd4aHROEI=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=OMJbadq3Cpsmx1Uo2X1p9Zb96sFWCIfuNlQbApAq9vnYuIgksFVa02r/UOiN4XTq3N72Wetn0H/KNBuTZWeIBMKnRC/Pa/5HCWDSTIDsPcuA8JXhiOd4RTGB9RDSRikKiPo+Pw2Y/ebmOdCewTj4tes7lvFzmK5BAB/hicp3Di0= 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=oUlCs0qD; arc=none smtp.client-ip=44.202.169.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="oUlCs0qD" Received: from eig-obgw-6007a.ext.cloudfilter.net ([10.0.30.247]) by cmsmtp with ESMTPS id g08rtjExRXshwgBDjtRJMd; Thu, 06 Feb 2025 23:23:44 +0000 Received: from gator4166.hostgator.com ([108.167.133.22]) by cmsmtp with ESMTPS id gBDitaicLs5XHgBDitHRyt; Thu, 06 Feb 2025 23:23:42 +0000 X-Authority-Analysis: v=2.4 cv=avG0CzZV c=1 sm=1 tr=0 ts=67a5447e a=1YbLdUo/zbTtOZ3uB5T3HA==:117 a=6Vi/Wpy7sgpXGMLew8oZcg==:17 a=IkcTkHD0fZMA:10 a=T2h4t0Lz3GQA:10 a=7T7KSl7uo7wA:10 a=KZ9MsSxUvLdQbKA6SOoA:9 a=QEXdDO2ut3YA:10 a=Xt_RvD8W3m28Mn_h3AK8: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=mfsvnhoslxgxndnAvhSW95+TCDLQ1GuITfG+HDlgT28=; b=oUlCs0qDbMdKAYj2+6uqMqJRrx MsZZvofjojXYWNPk8Z9owrj4Z14wf5sSw7Qkb7NTbyTQkcGkiIJB7o/f8MoSaoJcPVRUkF4qf0ayz EFlEHL9GgxMa+g6NQQlRFlEcgv771zEKpm1Ec3LerlutSiy3FhhR0SNtxY5TlMB4aJUwrcNBZqH5S XM/unbiol57DAa9ErB4zxTiA8rBEV+WvffsFtnrg11k1GbHmrTGVMvKeoXSyEYv0EHrp+NOQnimQH FTXrnEi42x9+5lxm6g52j5Dhf9S5R6jFnXxmfqiq2e67gDhZLU099ELKkF/TdUs1rErgH0lQ8bUso z3eaR1GA==; Received: from [45.124.203.140] (port=54722 helo=[192.168.0.152]) by gator4166.hostgator.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96.2) (envelope-from ) id 1tgBDg-0025YQ-2y; Thu, 06 Feb 2025 17:23:41 -0600 Message-ID: <7c396d56-a2ea-4cb5-8a10-a2b78cebfaeb@embeddedor.com> Date: Fri, 7 Feb 2025 09:53:30 +1030 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] tty: tty_buffer: Avoid hundreds of -Wflex-array-member-not-at-end warnings To: Greg Kroah-Hartman , "Gustavo A. R. Silva" Cc: Jiri Slaby , linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, linux-hardening@vger.kernel.org References: <2025020633-irritate-boogieman-4c35@gregkh> Content-Language: en-US From: "Gustavo A. R. Silva" In-Reply-To: <2025020633-irritate-boogieman-4c35@gregkh> 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: 45.124.203.140 X-Source-L: No X-Exim-ID: 1tgBDg-0025YQ-2y X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: ([192.168.0.152]) [45.124.203.140]:54722 X-Source-Auth: gustavo@embeddedor.com X-Email-Count: 9 X-Org: HG=hgshared;ORG=hostgator; X-Source-Cap: Z3V6aWRpbmU7Z3V6aWRpbmU7Z2F0b3I0MTY2Lmhvc3RnYXRvci5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfJLOVolIAMxpNl2tGqm+YeKVlCiFpWnWpxXwPjRlUK2qExiOxZEb67qJsL9sTkZJ8hsZHGppfsCKHbLpzMDVLvr0W18hdtKMM5I/KqA3kLk0dhTKySmq RU0efIMG2D5dNOpUdrC9gSCU1Q8YZvpXwALxOfm4xdG+tQtHl1bzR28iPkGaWJWnI0erSPFyT4H6cPtSKUMK76Xlo5SGQUaiiqNA77ejc94+/EUMNb+e2Hhm >> unsigned int used; >> unsigned int size; >> unsigned int commit; >> - unsigned int lookahead; /* Lazy update on recv, can become less than "read" */ >> + unsigned int lookahead; /* Lazy update on recv, can become less than "read" */ > > Coding style change? (Whaa? for some reason your response didn't reach my inbox until today) It seems I got a bit too proactive. What do you think about the rest of the patch? Thanks! -Gustavo