Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp3853700rwe; Mon, 29 Aug 2022 22:59:33 -0700 (PDT) X-Google-Smtp-Source: AA6agR6LjuuUnB4rxp2U78PM7AB1Qtd27q3kusLqKhp2X7r3qiNcPfjKvM1+WPvenbFdFZmtL4Ct X-Received: by 2002:a63:4b5e:0:b0:41d:e04b:4515 with SMTP id k30-20020a634b5e000000b0041de04b4515mr16534006pgl.100.1661839173246; Mon, 29 Aug 2022 22:59:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661839173; cv=none; d=google.com; s=arc-20160816; b=tf7FsEVXQCTAxzPPIT4Yt6caXhfLVs1iZcFiYUQ3CjM/qo2UyPvKY2CA8sF2utSq+6 +szC2yKZkhVHnKmJE5RnhPdzqlQ8GCaD9PV36ebxGDBrpUkTwegivL0aSZF5LI96PxW3 y0yrfVtea4zkIvsBIV0CFeiSSY9Umcit1L6oTqQ54LjI5qK7VNTEZMFanp49AApupvCG FIDwjqEzhUnpCzCh5NaXe35y0utOKNbbrd474jmQ5FvzmBXa1S6WDWBIbBPxmcQS4PGC Ncgb76qiSswBZnMFQN2l+pei+QKhvijKZFVCp1uzOrmFVwF97oJaXV8fE4D3pE/29f2G DnIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:in-reply-to :subject:cc:to:from:message-id:date:dkim-signature:dkim-signature; bh=YqbKorGtuIS3BoLpIndm2XA4B0mkE7zTYWV5+s4iNc0=; b=ZVIEpU+R5Eb3dPKUxV3gXubsjLmbGdRpiXm1pWvL0ruzJ7V2wn8YcmtoNp9bI3KWA1 74nKPw3HX7kNUgTprnNOavnPzrQGZEIyVHCv+B+AKQ5XWA2ExiUhdmOEGRqm+A790As/ yJAqQa35/X0+xXdPRu4/uscyzPYajZR5J6pFtcywhssMpvj8HA4576Iwpn70YD8V6ogd Jh/8js9j9/ba7BKbwWtOZ9xb4CfQ/5kEBhdDbGTW1APSPSrxThkV2y0jIdYv0bfUATLS 5QbwS8e3kEqOr3PoAI3NfoIfWogz9tU8HKhiXmFsw72uxJqS3GC2sebRWaxF8nHe1d2M kbIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=utjal12Z; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=PVcHLGIj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 6-20020a631546000000b0042c87a10af7si1309478pgv.400.2022.08.29.22.59.22; Mon, 29 Aug 2022 22:59:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=utjal12Z; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=PVcHLGIj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230002AbiH3Fp6 (ORCPT + 99 others); Tue, 30 Aug 2022 01:45:58 -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 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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