Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp785946lqs; Tue, 5 Mar 2024 17:18:01 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCULJkg0vG9kA8nMHlFT8Kt1F2qkxtTbHHVEXk51N/aURvfyw49eZpPGsMLPX+hHZ3tFnJInkQkRtTBjiw1ij+KC91HzPFwAGaYGcP5HXQ== X-Google-Smtp-Source: AGHT+IHYxK4mFAXyEJ0N+Ea/Jh3HtQdwTguBDkgQ4U4mzUreb7XDUG3w1+LDBEo7qKKVzvUwKG+H X-Received: by 2002:a9d:7393:0:b0:6e4:ebca:81a3 with SMTP id j19-20020a9d7393000000b006e4ebca81a3mr3595235otk.3.1709687880929; Tue, 05 Mar 2024 17:18:00 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709687880; cv=pass; d=google.com; s=arc-20160816; b=F6PPiY5xq+o4PATjq/1ieBVHQKf9HW7YRB4Iq1pX32DR0gFFWSrVXNaZoiNI7MTOio 4SjWqRc9NiqQYR7hN2yZv0RGDTbNhzxtGiC6tCxGwP5qq98LfW2LscT+P/455lhYChR+ 5ztCJYBIeOAatiXqUBLEBlmfaUB/2oFwaZIICv/5Q1vtPUS8+rqIMKJGMke3udScRdou LjR1pYEnaSSukMy+byngQrtQNHoGuGtgYVj8B9ZpgS4lsV8sUYe/zRMi/cXxK+Y/QvSp kbjXf1MUOqQkr6xKbktURTFVZ3s2Qumh4/TH587bdwlEahcgIgiS6Ui8eNCUJCatteKD ouWg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:mail-followup-to :message-id:subject:cc:to:from:date:feedback-id:dkim-signature :dkim-signature; bh=nIgXLago0+goMoIVpizmwo89vrCawNjtqrrcg3tzX1o=; fh=r3JSKoFLUjFpg1/K9KT8ykEORD1+pO55C0336GgJ29A=; b=Qjmmu1GgkFSW0wuDqXLSgmWdHKBLPwNzywIdRh6ElyIc3C1EbHJ/pMowqABOjg7eLS HbKIYdaqRMqQ3tz2LvReXL3pygXJ7vqmdTmAqMq3KCrViViP86gz/ut9KBT1F1shLgtU PhSW64LXXOhgzCUVLTyVQPzWdDMm18LkNCqsoCGT3k9BsXr2RVm6SEde4eeN+JJN6Lpp UDdGFf5dqnz//iSo9W4KNeYMPR3C+sNJjnXkYoNjXqPSOXfpUzegKMYhtkhEy7A193FJ WHqqyOyb+YIZdMv2DERqc+pwsa5+Pm4uAwdSVvrY5FQ9H5JNQUoSxTbseYLcFNWdYA6v ImPA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sakamocchi.jp header.s=fm1 header.b=qrgdFPf6; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=VNrdu7IY; arc=pass (i=1 spf=pass spfdomain=sakamocchi.jp dkim=pass dkdomain=sakamocchi.jp dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=sakamocchi.jp); spf=pass (google.com: domain of linux-kernel+bounces-93185-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-93185-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sakamocchi.jp Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id i11-20020a63540b000000b005dc894ea130si1403165pgb.384.2024.03.05.17.18.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Mar 2024 17:18:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-93185-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@sakamocchi.jp header.s=fm1 header.b=qrgdFPf6; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=VNrdu7IY; arc=pass (i=1 spf=pass spfdomain=sakamocchi.jp dkim=pass dkdomain=sakamocchi.jp dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=sakamocchi.jp); spf=pass (google.com: domain of linux-kernel+bounces-93185-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-93185-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sakamocchi.jp Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 4F452B23173 for ; Wed, 6 Mar 2024 01:10:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DC9E76FDC; Wed, 6 Mar 2024 01:10:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sakamocchi.jp header.i=@sakamocchi.jp header.b="qrgdFPf6"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="VNrdu7IY" Received: from fhigh5-smtp.messagingengine.com (fhigh5-smtp.messagingengine.com [103.168.172.156]) (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 3E7396FAF; Wed, 6 Mar 2024 01:10:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=103.168.172.156 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709687440; cv=none; b=vD6JOhWzDqyAMe94fbWbrYcuMN9dp9MYfslHJJ3VDSzFegcnfWos56Tqq+NlXjtSqDQznFJMmenVam1CYjeyDMwKqArAfeNaTkvQ6vx/66CI+Jln18pefIMSwASLDSIwn+2dNyK1rR608yNirXwPHfFiU2tXKb5vOSwLbnQ6Wc0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709687440; c=relaxed/simple; bh=YOr/GbT9jgOAplPWvdq3W+lM+vmFTaiSh/I1Fj3fFKk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Kye0uSGBXHkXgWHiMX3ninzggzdEnoYbUp7y14NTySPtTon+3YQ1B350Kg1vPuIKF+b7knx27XCdPL37IOMlcA/4Jtg0h/dKirokpvG4RLv5+2XtMi/UqVa/A9ECZGAi01C9CxSJbkbGay30Kmj+xMwhT7s5UCehRmXY1hni/3Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sakamocchi.jp; spf=pass smtp.mailfrom=sakamocchi.jp; dkim=pass (2048-bit key) header.d=sakamocchi.jp header.i=@sakamocchi.jp header.b=qrgdFPf6; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=VNrdu7IY; arc=none smtp.client-ip=103.168.172.156 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sakamocchi.jp Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sakamocchi.jp Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailfhigh.nyi.internal (Postfix) with ESMTP id 1E23A1140138; Tue, 5 Mar 2024 20:10:37 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Tue, 05 Mar 2024 20:10:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sakamocchi.jp; h=cc:cc:content-type:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to; s=fm1; t=1709687437; x= 1709773837; bh=nIgXLago0+goMoIVpizmwo89vrCawNjtqrrcg3tzX1o=; b=q rgdFPf6B/Q7LoPmKvahlzpP6JYC84k8/nOrdLSn1SmDiWPM6SnSbBo+nylNVsnrf P9jKSmiSzMH1dkX6RW8arBUg+9/IRYB02iM4oiPU3S1asK7UVbCmJ19iDZhQDpyz eryN07pFHehUojspgvP7m9jHrtjmXU9FxtS4/Dj9XliMwMjD8ikZYPKrC3iqRfHs VpVfMjN7bSpLHtw1yOn+YWrI9MuenfsqbrNggmtXa8jfsEHyv83A3+XAfj3ydzTX /UyKA6wdmHjeVILM7CBEx9f6dDHBXldL0Ff4gYFMUs0xqpyJVkHUhCRvt7pLBzuW 8hDjitwM1dU8TluXxG+Xw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1709687437; x=1709773837; bh=nIgXLago0+goMoIVpizmwo89vrCa wNjtqrrcg3tzX1o=; b=VNrdu7IYFx1muMn62Ghnbw39NUezZAj2Rshfg0atzAc9 tEhLV48vgNaUkv9zxmpQQuhggLpZBW7P1B/zKYNlcQZMzoi/wwxzldhz0iIWB1qX kC+MR8Jy0kthJEsDBQer46phQBZ8eaesk1KGRSgehzh13NsAo83ifr3vYYyWUoa/ ED1xBwNjM6qsi4bqH3D/bONMck6kuCRKW4O9Mj7kZE2BZl/bMF1OFy31DLlzqYH3 5TsGjXSqHKp7Xg+WrHWr524t3W8c18dlrv0X0w8kfiJWfRbtJXlYl2cRaf0BgPjP uw0n4FreaAxifJxUoegKRfz9Z7xgwjf+Wr2fRDtvPQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledriedtgdefudcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvvefukfhfgggtuggjsehttdertddttddvnecuhfhrohhmpefvrghkrghs hhhiucfurghkrghmohhtohcuoehoqdhtrghkrghshhhisehsrghkrghmohgttghhihdrjh hpqeenucggtffrrghtthgvrhhnpeehhffhteetgfekvdeiueffveevueeftdelhfejieei tedvleeftdfgfeeuudekueenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmh grihhlfhhrohhmpehoqdhtrghkrghshhhisehsrghkrghmohgttghhihdrjhhp X-ME-Proxy: Feedback-ID: ie8e14432:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 5 Mar 2024 20:10:33 -0500 (EST) Date: Wed, 6 Mar 2024 10:10:30 +0900 From: Takashi Sakamoto To: "Gustavo A. R. Silva" Cc: Clemens Ladisch , Jaroslav Kysela , Takashi Iwai , Kees Cook , linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org, alsa-devel@alsa-project.org, linux-sound@vger.kernel.org, linux1394-devel@lists.sourceforge.net Subject: Re: [PATCH 0/2][next] firewire: Avoid -Wflex-array-member-not-at-end warnings Message-ID: <20240306011030.GA71684@workstation.local> Mail-Followup-To: "Gustavo A. R. Silva" , Clemens Ladisch , Jaroslav Kysela , Takashi Iwai , Kees Cook , linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org, alsa-devel@alsa-project.org, linux-sound@vger.kernel.org, linux1394-devel@lists.sourceforge.net References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Hi, On Tue, Mar 05, 2024 at 11:24:15AM -0600, Gustavo A. R. Silva wrote: > -Wflex-array-member-not-at-end is coming in GCC-14, and we are getting > ready to enable it globally. So, we are deprecating flexible-array > members in the middle of another struct. > > There are currently a couple of local structures (`u` and `template`) > that are using a flexible `struct fw_iso_packet` as header for a couple > of on-stack arrays. > > We make use of the `struct_group_tagged()` helper to separate the > flexible array from the rest of the members in the flexible structure, > and, with this, we can now declare objects of the type of the tagged > struct, without embedding the flexible array in the middle of another > struct. > > We also use `container_of()` whenever we need to retrieve a pointer to > the flexible structure, through which the flexible-array member can be > accessed. > > With these changes, we fix a couple of -Wflex-array-member-not-at-end > warnings. > > Gustavo A. R. Silva (2): > firewire: Avoid -Wflex-array-member-not-at-end warning > ALSA: firewire-lib: Avoid -Wflex-array-member-not-at-end warning > > drivers/firewire/core-cdev.c | 9 +++++---- > include/linux/firewire.h | 16 +++++++++------- > sound/firewire/amdtp-stream.c | 8 +++++--- > 3 files changed, 19 insertions(+), 14 deletions(-) Thanks for the improvements, however we are mostly at the end of development period for v6.8 kernel. Let me postpone applying the patches until closing the next merge window (for v6.9), since we need the term to evaluate the change. I mean that it goes to v6.10 kernel. If you would like me to applying the patch v6.9 kernel, please inform it to us. Thanks Takashi Sakamoto