From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2B676ECAAD1 for ; Tue, 30 Aug 2022 05:46:54 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 8FED81622; Tue, 30 Aug 2022 07:46:02 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 8FED81622 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1661838412; bh=SOTud9sUJ5W2godhwQQtGidLtHr5u9iTzMlSieTbB8k=; h=Date:From:To:Subject:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=NoyVxEROjOXY8IrOCGXcqrTGVXjWsW9+0rtEOOmGnHIkt/IyC6P9Jna0KYmtLEAJY 2jcngY1fEVXhDm2VmSSBfiTeITGcIKVTM7/Hz+jQ2X+NK4UIyMrGRXfnRY/e8NeXNy JUqgW5btOuxEy4jHzynl0xtH9KpGupwJ0rWdSGCY= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id D4B48F8016B; Tue, 30 Aug 2022 07:46:01 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id A4061F8023A; Tue, 30 Aug 2022 07:45:59 +0200 (CEST) Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 3C774F800AA for ; Tue, 30 Aug 2022 07:45:52 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 3C774F800AA Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="utjal12Z"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="PVcHLGIj" Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 39FCC1F933; Tue, 30 Aug 2022 05:45:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1661838352; 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=YqbKorGtuIS3BoLpIndm2XA4B0mkE7zTYWV5+s4iNc0=; b=utjal12Z5c+zv9kKTNeiz4jaS87QaR8lmDZh5tNRvUA4FEuWWdHjg+QJnUft3AQuqbxt/m A9ListbRCAXm+GZqXx5b677Q/lcqcTFlBk6a9C9aT+i++U10gy0TCDgLGV+NYPz4o9p2An 5d2LTPkro9vodqcXr5Ijg8iHMMLz11A= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1661838352; 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=YqbKorGtuIS3BoLpIndm2XA4B0mkE7zTYWV5+s4iNc0=; b=PVcHLGIjQ31s8tWq5tBokcK9vyIjleKtLb+YQQZ8fQNt9XImqNQ3R4uqXZnp0mqLzQRaRK n/nKVN7saTmefUCw== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 075931352A; Tue, 30 Aug 2022 05:45:52 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id qMpkABCkDWM+EgAAMHmgww (envelope-from ); Tue, 30 Aug 2022 05:45:51 +0000 Date: Tue, 30 Aug 2022 07:45:51 +0200 Message-ID: <87k06q8esw.wl-tiwai@suse.de> From: Takashi Iwai To: "Gustavo A. R. Silva" Subject: Re: [PATCH][next] ALSA: hda/hdmi: Replace zero-length array with DECLARE_FLEX_ARRAY() helper In-Reply-To: References: User-Agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/27.2 Mule/6.0 MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII Cc: linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org, linux-hardening@vger.kernel.org, Takashi Iwai X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" On Mon, 29 Aug 2022 23:52:03 +0200, Gustavo A. R. Silva wrote: > > Zero-length arrays are deprecated and we are moving towards adopting > C99 flexible-array members, instead. So, replace zero-length array > declaration in union audio_infoframe with the new DECLARE_FLEX_ARRAY() > helper macro. > > This helper allows for a flexible-array member in a union. > > Link: https://github.com/KSPP/linux/issues/193 > Link: https://gcc.gnu.org/onlinedocs/gcc/Zero-Length.html > Signed-off-by: Gustavo A. R. Silva Thanks, applied to for-next branch. Takashi From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 37AA9ECAAD5 for ; Tue, 30 Aug 2022 05:45:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229523AbiH3Fp5 (ORCPT ); Tue, 30 Aug 2022 01:45:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36420 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229808AbiH3Fpz (ORCPT ); Tue, 30 Aug 2022 01:45:55 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 97610796A7; Mon, 29 Aug 2022 22:45:53 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 39FCC1F933; Tue, 30 Aug 2022 05:45:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1661838352; 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=YqbKorGtuIS3BoLpIndm2XA4B0mkE7zTYWV5+s4iNc0=; b=utjal12Z5c+zv9kKTNeiz4jaS87QaR8lmDZh5tNRvUA4FEuWWdHjg+QJnUft3AQuqbxt/m A9ListbRCAXm+GZqXx5b677Q/lcqcTFlBk6a9C9aT+i++U10gy0TCDgLGV+NYPz4o9p2An 5d2LTPkro9vodqcXr5Ijg8iHMMLz11A= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1661838352; 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=YqbKorGtuIS3BoLpIndm2XA4B0mkE7zTYWV5+s4iNc0=; b=PVcHLGIjQ31s8tWq5tBokcK9vyIjleKtLb+YQQZ8fQNt9XImqNQ3R4uqXZnp0mqLzQRaRK n/nKVN7saTmefUCw== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 075931352A; Tue, 30 Aug 2022 05:45:52 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id qMpkABCkDWM+EgAAMHmgww (envelope-from ); Tue, 30 Aug 2022 05:45:51 +0000 Date: Tue, 30 Aug 2022 07:45:51 +0200 Message-ID: <87k06q8esw.wl-tiwai@suse.de> From: Takashi Iwai To: "Gustavo A. R. Silva" Cc: Jaroslav Kysela , Takashi Iwai , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org Subject: Re: [PATCH][next] ALSA: hda/hdmi: Replace zero-length array with DECLARE_FLEX_ARRAY() helper In-Reply-To: References: User-Agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/27.2 Mule/6.0 MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-hardening@vger.kernel.org On Mon, 29 Aug 2022 23:52:03 +0200, Gustavo A. R. Silva wrote: > > Zero-length arrays are deprecated and we are moving towards adopting > C99 flexible-array members, instead. So, replace zero-length array > declaration in union audio_infoframe with the new DECLARE_FLEX_ARRAY() > helper macro. > > This helper allows for a flexible-array member in a union. > > Link: https://github.com/KSPP/linux/issues/193 > Link: https://gcc.gnu.org/onlinedocs/gcc/Zero-Length.html > Signed-off-by: Gustavo A. R. Silva Thanks, applied to for-next branch. Takashi