Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp1880133pxp; Mon, 21 Mar 2022 06:59:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxUk4TsxQPY7l95g6NvNBhJ5hXM6saL1NLuQEZJT7wDWBnxcPmr33htD+XyS6fedUgVzUvh X-Received: by 2002:a17:906:58cb:b0:6df:f696:9b32 with SMTP id e11-20020a17090658cb00b006dff6969b32mr7697402ejs.384.1647871194337; Mon, 21 Mar 2022 06:59:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647871194; cv=none; d=google.com; s=arc-20160816; b=t1m6nRSHpfBpbpcX0w0FJUfFmhA+69OjylMZXLhmmRMVqKKjEcNmSGfI/2B6+Up6PP 59KMi+/6Ud42Rh1POPMXkaw0R3jlIpr+VUPPY+c0qQMLGGdGbjXOe8ZrgIYJZCe/sTzx oq9d44N1/1yCCrG2N50ES93tk6f1VfIrp8sz1dScn/I4uUCotk0N1cxnbZ+5fFaAU2RW 2ZlEoV/IzoBA9nK9psSESRgwTX4aWHWd9Qos0iTOmijbYbA9GFwR2V7MUX0ompwawfaa WBP76azf8kDRM28+6p0BnUagFUK9J7Dq+7BOqEGR0WcZGeCLdUKIk4U8WpyMHgmvA9vZ 19NA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:from; bh=binKQXnygUeDIwX85AeWniJcFHJbbpE5qFWskAw4UEA=; b=MeU7CoHYaWm+bara2VlEnDuAXuF7CaqhKPcdetUGraK6AQiv3LWuOAlkxE4OWn/H91 x1wpoyAWUYB79RJKjLf95cUnogRKvB5Cvu774+VVfuBgm5pU7IHhCrBwXsLW4uFoqevV sUgLIECTu89K2G5GWfvqpT+VbSU+Z4lQbLgeVmhH+9pdH6R6XeNI+224mEoU+Gw5befO jXdg4hVk6EnhDZjH2cbkqPXV7maqRV72pGPAd2ErqSoN6H46hU3JUA3JRyRSs7AwSAvB wnYTiFxylHUff2Kt65i4raTWHLBHsDvZxhCg0ST2ARtzc4yPqHKu0gpiHnJ7l+/m1mix E9HA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@toke.dk header.s=20161023 header.b=FGmkdVLC; 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=REJECT sp=REJECT dis=NONE) header.from=toke.dk Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v2-20020a50f082000000b00418e8805cdfsi9300339edl.112.2022.03.21.06.59.36; Mon, 21 Mar 2022 06:59:54 -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=@toke.dk header.s=20161023 header.b=FGmkdVLC; 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=REJECT sp=REJECT dis=NONE) header.from=toke.dk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347855AbiCUNcm (ORCPT + 70 others); Mon, 21 Mar 2022 09:32:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43484 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347852AbiCUNcj (ORCPT ); Mon, 21 Mar 2022 09:32:39 -0400 Received: from mail.toke.dk (mail.toke.dk [IPv6:2a0c:4d80:42:2001::664]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2DF9A39813; Mon, 21 Mar 2022 06:31:10 -0700 (PDT) From: Toke =?utf-8?Q?H=C3=B8iland-J=C3=B8rgensen?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=toke.dk; s=20161023; t=1647869468; bh=binKQXnygUeDIwX85AeWniJcFHJbbpE5qFWskAw4UEA=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=FGmkdVLCp4kjXzO/AhH5ezD7Y/9s+M5P9+NISWPTjdGHWK2bzXQNvo6slsgkrZmcq dRh+jcOZhweKWLHzee4L7r5ZlOslGWPWNqZOcd6CqsYglIgs4TaouRyIp7C4sJT23Y JA6JxiUQmTBixY7egzwckMpp8ljYpxn9Olt2Hqmuss8evmwTTi+qFf23EgMPSM00bH 7uQyZm3DI39v34DoO5cGxCB8SE0vS3PteQC5SqsfyGeVeWATYATjk2I8O0l+v/we1N itmuWnkfvKJDGeLCDXQoH0elMdqAELbBlStxZw18Sf33xQ2BpmKhCZ7oWn8k57j6jg EERbjsnMmmn8A== To: trix@redhat.com, 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, Tom Rix Subject: Re: [PATCH] ath9k: initialize arrays at compile time In-Reply-To: <20220320152028.2263518-1-trix@redhat.com> References: <20220320152028.2263518-1-trix@redhat.com> Date: Mon, 21 Mar 2022 14:31:08 +0100 X-Clacks-Overhead: GNU Terry Pratchett Message-ID: <87ee2va0v7.fsf@toke.dk> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,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-wireless@vger.kernel.org trix@redhat.com writes: > From: Tom Rix > > Early clearing of arrays with > memset(array, 0, size); > is equivilent to initializing the array in its decl with > array[size] = { 0 }; > > Since compile time is preferred over runtime, > convert the memsets to initializations. > > Signed-off-by: Tom Rix Cf the discussion in the replies, please resubmit with empty initialisers ({}), and fix up the commit message. -Toke