Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp1609614pxp; Mon, 21 Mar 2022 00:19:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw//qsRYuyvwk/ARAbgSckyUSA78bDzgJGZvPsvT5laT9MeMLEdjOzTfwJqY96tHzZlYwqy X-Received: by 2002:a05:6402:35c5:b0:419:2c72:66c3 with SMTP id z5-20020a05640235c500b004192c7266c3mr7089592edc.343.1647847163792; Mon, 21 Mar 2022 00:19:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647847163; cv=none; d=google.com; s=arc-20160816; b=g3ySlC/SwPiUvIlp8lnbTzVofby07o09ELFXrKoPkI4pXk/pA2vLqYx0d1uz4QBkPY OWwuaHtRtEYK1v88QoFCQIAtyg0EfwvZNUumNH+m3xdLmW7equ7astwCJ+KHQStMPKMY THV2lyD6t5CMRKBJvJ+5Uq0ACu+/NNVLPJMQ45YI/cS6S2InT5XyiBpteODSTDbUfLHG 8A63rvEZaRMTtazPruiKtxnlkRdbEYDs9Y26RAq5OFmb2dPyH+5t7561kTsqboWunDFP vF7cZAJpT+ru93bPCp6RwZdRfV9OM0o/ops377uOmzC7C2kk07wrztmWf0rUtBOdlyIP X7rg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:subject:user-agent:mime-version:date:message-id :dkim-signature; bh=R3xvPyH2LO2SeAjGMqviHKQ0YssFVFGDLalsy+a32Pc=; b=aVxSP1ZfG3/H8QHHXc6Sp1uTdOCEX6PVn5+q/bpHcztarIKlApWP/Ir7TrHQ4Bei24 SQIlB5YVbTo3hv0Cxr6xKxgf8lyFkpMyQRybU4hbgGEEHCtzVKvGZ6VwdTjlceeDLRL7 QVcnd98/Tn+P7OoXfyP5H3DXMyz9nQdXTw8nsHuSQPS6qJpRDwjvgIDn0lCUFw9aZaa2 dWS6EazlNFnageLeiuJPwPuK3yMj3QjSeOYYqyrbOyHViuW9m1cgh8Hb++JPXoxRxrOd qxD7MC63OWpKJ6dgZLfC/55G6eGK2PFqVoLLLeODVs8vH0olF79ilGwfjuPTu+5bzuIl 3eNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@newmedia-net.de header.s=mikd header.b=kDB5vFIR; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=newmedia-net.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jz8-20020a170906bb0800b006df76385df2si6229178ejb.658.2022.03.21.00.19.02; Mon, 21 Mar 2022 00:19:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-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=@newmedia-net.de header.s=mikd header.b=kDB5vFIR; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=newmedia-net.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245707AbiCTRVg (ORCPT + 70 others); Sun, 20 Mar 2022 13:21:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54170 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245698AbiCTRVf (ORCPT ); Sun, 20 Mar 2022 13:21:35 -0400 X-Greylist: delayed 179 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Sun, 20 Mar 2022 10:20:11 PDT Received: from mail.as201155.net (mail.as201155.net [185.84.6.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DF1A0ECC7B for ; Sun, 20 Mar 2022 10:20:11 -0700 (PDT) Received: from smtps.newmedia-net.de ([2a05:a1c0:0:de::167]:44818 helo=webmail.newmedia-net.de) by mail.as201155.net with esmtps (TLS1) tls TLS_DHE_RSA_WITH_AES_256_CBC_SHA (Exim 4.94.2) (envelope-from ) id 1nVzAs-0002wx-2w; Sun, 20 Mar 2022 18:17:02 +0100 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=newmedia-net.de; s=mikd; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date:Message-ID; bh=R3xvPyH2LO2SeAjGMqviHKQ0YssFVFGDLalsy+a32Pc=; b=kDB5vFIRFcO7i37wsDvKCkiJyqObUP5nPcTw0GVON66/JXSOUrL0ehd80CczxceYFi3y7rSMxitanR3VrD21zhptzBwaxfUHv1L5GuAHAZFEA8UhiRP/2C/WxzICmHQB9hiXnlAq2A/96bMs2T5kz4ZtiNGebiotv6dOy+J++Ag=; Message-ID: <233074c3-03dc-cf8b-a597-da0fb5d98be0@newmedia-net.de> Date: Sun, 20 Mar 2022 18:17:01 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:99.0) Gecko/20100101 Thunderbird/99.0 Subject: Re: [PATCH] ath9k: initialize arrays at compile time To: John Crispin , trix@redhat.com, toke@toke.dk, kvalo@kernel.org, davem@davemloft.net, kuba@kernel.org, pabeni@redhat.com Cc: linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org References: <20220320152028.2263518-1-trix@redhat.com> From: Sebastian Gottschall In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Received: from [81.201.155.134] (helo=[172.21.254.4]) by webmail.newmedia-net.de with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.72) (envelope-from ) id 1nVzAs-0005Nq-NN; Sun, 20 Mar 2022 18:17:02 +0100 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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-wireless@vger.kernel.org Am 20.03.2022 um 17:48 schrieb John Crispin: > > > On 20.03.22 16:20, trix@redhat.com wrote: >> array[size] = { 0 }; > > should this not be array[size] = { }; ?! > > If I recall correctly { 0 } will only set the first element of the > struct/array to 0 and leave random data in all others elements > >     John You are right, john Sebastian