Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp3256637lqp; Tue, 26 Mar 2024 04:27:29 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVPquoalf450FV7XzW8OqX3I9fQkTSGkHVJsdHmcWzPbW0NA6oxNenC/Mx/H6aRvGZjcYrW0xJuVqh10JEl1YSiK66i1dg7zbQYzK4gbA== X-Google-Smtp-Source: AGHT+IHeMRb4oND+W7Wu803sEMztTMIUTBeHxrXn1A75ybHwBGwp+eLF3WAM0c1TBcHbLLHZ0jCC X-Received: by 2002:a05:6358:5e9d:b0:17f:591e:e4 with SMTP id z29-20020a0563585e9d00b0017f591e00e4mr11891621rwn.25.1711452448899; Tue, 26 Mar 2024 04:27:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711452448; cv=pass; d=google.com; s=arc-20160816; b=L+Hn5i6/pvi810dwl4z5IxWmFd8/9O7aJt81+kmZSmqNbQmjcbdiI0ZyxlC2hLPFew W58WWwkKAxgyoRSJKYMgaH3RwYuAfoA0lFtirsxMKSKX3XzXy9jYQKJ3uS7sx3hNER6f esOxxh/HbvIyo3eWo2sJv8mKQ4DEaQJ380i3bVOG6cqmw+fbiEFoSIZR7bEwjlAFOH5v zYr2SscNEHth22fWKu1obfn6/JDGzsxLH3cMJ5iFbeDZIHBYOzqgbzpI53ciCUiBkLuS /huFmf9LeeHUYzgr8Mmnve8t/NqRKanAvaFV/A3/37yEc/IywrbU1Rn5m5L4uKwl/fY0 44iw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:references:in-reply-to:subject:cc:to:from:message-id :date:dkim-signature:dkim-signature:dkim-signature:dkim-signature; bh=tUTUfOoY+2SogT+OaWxxDe3rJC42MpmS4UtIqhLd8AA=; fh=Scmvh7U2IELGda5Cktzw6bITTZvld1T6eMe99nmb+tI=; b=l3SfPuYYf7ulKiRMQ5ysFJrLFonDyhdcEz4V6Z14JwLRvfJV4MUT6UyKqdQyCN7itk ahZ/b8O0JEGgRG8Wa4p4Hpow8L9oi2GpBfLeCntcK+j78o6F3t701ASBDbqRQB93BjOv HXFja+mRoPmU07tdzarabj+flrb7CInObi1554jpiJZKVGD/6OMFC1rAFnZHm6y8cGlO GOCPSI7eEmzBmeJBv6qbLRPfX/Nk2b7kfB6DSvuJgjKjiCKg1HTBCJoF33+MVBYGUaUw YI/fgcHJKSgj41ID6uhgyCWi9ll//7+qWMLYd/f+VQk/W6YzdXShaenTrkP+1HGb3Vn4 ro8Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=qFWDvUdh; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=qFWDvUdh; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; arc=pass (i=1 spf=pass spfdomain=suse.de dkim=pass dkdomain=suse.de dkim=pass dkdomain=suse.de dmarc=pass fromdomain=suse.de); spf=pass (google.com: domain of linux-kernel+bounces-118872-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-118872-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id l68-20020a633e47000000b005dc071d13c7si9283880pga.273.2024.03.26.04.27.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Mar 2024 04:27:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-118872-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=qFWDvUdh; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=qFWDvUdh; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; arc=pass (i=1 spf=pass spfdomain=suse.de dkim=pass dkdomain=suse.de dkim=pass dkdomain=suse.de dmarc=pass fromdomain=suse.de); spf=pass (google.com: domain of linux-kernel+bounces-118872-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-118872-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de 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 50690B253F1 for ; Tue, 26 Mar 2024 11:20:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5101467C53; Tue, 26 Mar 2024 11:20:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="qFWDvUdh"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="RGiqrTXZ"; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="qFWDvUdh"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="RGiqrTXZ" Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.223.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 52F8152F9A; Tue, 26 Mar 2024 11:20:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.130 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711452012; cv=none; b=bWIXRkLEK8Ahx95scb1H/GiKu+Wwqd9F26sScc32GiYYHzI04fRxRM52gPBg4nWAfGSjfm2JoEs0vNzl5gYqiVvuzunsIor6RRtdyUklCGcmTwwaihpPn96hzprsL9/cI+Xk1cdkHBZVMMy0pJGNnH2gp6uw6pHas6j+8YYN+r0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711452012; c=relaxed/simple; bh=JZJYfdkOEfrBChAlxdomlE/FMRCLxwEMSTjs1gzQjmI=; h=Date:Message-ID:From:To:Cc:Subject:In-Reply-To:References: MIME-Version:Content-Type; b=DIWrA1tsvzfq/ZGLVKfIeucb57xB972ia22tQYHGCo/DtQ3QRgGjRrDid3REZrsR/gJSUH7UXChIAL20yar4Lt/Qvij7im5u8V5DooNu8oCD21lO9AS0tZ5djNcxBhufxGNmHf0qgR3GPvudS+5vdcQpPt47cciUyJxowhz7o2s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de; spf=pass smtp.mailfrom=suse.de; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=qFWDvUdh; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=RGiqrTXZ; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=qFWDvUdh; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=RGiqrTXZ; arc=none smtp.client-ip=195.135.223.130 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.de Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [10.150.64.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 7E50037AD9; Tue, 26 Mar 2024 11:20:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1711452007; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=tUTUfOoY+2SogT+OaWxxDe3rJC42MpmS4UtIqhLd8AA=; b=qFWDvUdhEw+1w/36ez/ULmEshiSbU5BLtgbDEF5s7BImFrCk9b0FDVTJDah6rEIFcP+GDv 1tKvqWfah85kRk1vM3jHpa66iHIuxUF0xWPPxWdWbTDHPxRbl4bYf6kuD+FcICqI/jIQdT LFo/4EeF93yBxknPJXIF9twrAR84Y0s= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1711452007; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=tUTUfOoY+2SogT+OaWxxDe3rJC42MpmS4UtIqhLd8AA=; b=RGiqrTXZMmGKLYf71hZOyClLQLEXPh5KTBTWeJIWdVc50zMD57PT2M/+RVnKyF8BAcKIus hrKfijCK98fmQMAg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1711452007; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=tUTUfOoY+2SogT+OaWxxDe3rJC42MpmS4UtIqhLd8AA=; b=qFWDvUdhEw+1w/36ez/ULmEshiSbU5BLtgbDEF5s7BImFrCk9b0FDVTJDah6rEIFcP+GDv 1tKvqWfah85kRk1vM3jHpa66iHIuxUF0xWPPxWdWbTDHPxRbl4bYf6kuD+FcICqI/jIQdT LFo/4EeF93yBxknPJXIF9twrAR84Y0s= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1711452007; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=tUTUfOoY+2SogT+OaWxxDe3rJC42MpmS4UtIqhLd8AA=; b=RGiqrTXZMmGKLYf71hZOyClLQLEXPh5KTBTWeJIWdVc50zMD57PT2M/+RVnKyF8BAcKIus hrKfijCK98fmQMAg== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 2737D13306; Tue, 26 Mar 2024 11:20:07 +0000 (UTC) Received: from dovecot-director2.suse.de ([10.150.64.162]) by imap1.dmz-prg2.suse.org with ESMTPSA id n7DQB2evAmb6DgAAD6G6ig (envelope-from ); Tue, 26 Mar 2024 11:20:07 +0000 Date: Tue, 26 Mar 2024 12:20:08 +0100 Message-ID: <87le65utnb.wl-tiwai@suse.de> From: Takashi Iwai To: "Gustavo A. R. Silva" Cc: Clemens Ladisch , Takashi Sakamoto , Jaroslav Kysela , Takashi Iwai , alsa-devel@alsa-project.org, linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org Subject: Re: [PATCH v2][next] ALSA: firewire-lib: Avoid -Wflex-array-member-not-at-end warning In-Reply-To: References: User-Agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/27.2 Mule/6.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII Authentication-Results: smtp-out1.suse.de; none X-Spam-Level: X-Spam-Score: -3.29 X-Spamd-Result: default: False [-3.29 / 50.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; RCVD_COUNT_THREE(0.00)[3]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; NEURAL_HAM_SHORT(-0.20)[-1.000]; RCPT_COUNT_SEVEN(0.00)[9]; MID_CONTAINS_FROM(1.00)[]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_ALL(0.00)[]; BAYES_HAM(-2.99)[99.97%] X-Spam-Flag: NO On Tue, 26 Mar 2024 02:59:34 +0100, Gustavo A. R. Silva wrote: > > Use the `DEFINE_FLEX()` helper for an on-stack definition of a > flexible structure where the size of the flexible-array member > is known at compile-time, and refactor the rest of the code, > accordingly. > > So, with these changes, fix the following warning: > sound/firewire/amdtp-stream.c:1184:46: warning: structure containing a flexible array member is not at the end of another structure [-Wflex-array-member-not-at-end] > > Link: https://github.com/KSPP/linux/issues/202 > Signed-off-by: Gustavo A. R. Silva > --- > Changes in v2: > - Use DEFINE_FLEX() helper instead of a new tagged struct. > > v1: > - Link: https://lore.kernel.org/linux-hardening/d3a764eb76909b16b8a22d9ff530e5edf0e59e6b.1709658886.git.gustavoars@kernel.org/ Applied now. Thanks. Takashi