Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp3304233rwo; Fri, 4 Aug 2023 02:46:39 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFZK/IZfIP/xs51cVHxPSp0a9rrQ1qzR7Hzw9We40ZX6G86eHPb8qmdNyISpQN03xXLwEhP X-Received: by 2002:a17:906:2112:b0:99c:4ea0:ed18 with SMTP id 18-20020a170906211200b0099c4ea0ed18mr1055093ejt.8.1691142399065; Fri, 04 Aug 2023 02:46:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691142399; cv=none; d=google.com; s=arc-20160816; b=cYagOMDaSvnJRrtS1H7lXYkAcMckM/Jo+7aotHBOjeGsoNQYpaW4mtAPgOA8WHRfz7 An7BiMqi/6AJd75BxFE5OzbetRTX7Dqbu/DYLy87nq46de+5TlvBGTWCsPDb3LXt8j19 qRvcpm9YnNF0zAcK5rVDvkyv00TTiXXSLSlcrJjFC5araY5XIoKaB6odTShYmlXxG5Xs caRwTRXOnl4ZXWmW7/moiJJtqSVy62MW+yr7ZH2bChcST4X84Q1nGTWPZdHnqETWx3Ju eirCemuTbejerBwQYahYr3X6cCHGI3GLAgV5mBZQCIt1PTrBm/1RhvpUU4dDpVxtY2BX l7KQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=RiL9XqWTSiLs+1wRC8ZLMmskwUXKYTTvLk7A8o675Fg=; fh=gg+h+yx7Co/bObAdNTwX44r7CYgnWI/YnAbhMy3VDM4=; b=anIyIJ8DBX9py0ZCKaooZRnRQWIjkRVCKNtrVR8dDngWgwmoaeR/V42iv3DrIqQxSr l3Zi6xJHuZ2iXQDNarv3gw3zWpO49hSPZe2fWYXZWkkGaWhcJN427ie4DsUgQCvMDkaK bQDHonEU6jasOcTC2ZzAwOzpHL7Z+3L2igTn/Mb85Ub5yJRXu1hs9C4qae6eJCqwLMJX FASvS1z3plj1LkFFDc7rq6NkS1UwIqp06Glhis3vGCytiqec/aLjA2K05P7Ut9YdpUx5 OGCc0FTvqNkjJn6i1FOZKBJlp6/zOCk+DAffS1c86aE+PeZADotzQznmHAspJ4+kyKR3 264w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=KfAgx545; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g2-20020a17090670c200b0099325564b77si1223937ejk.548.2023.08.04.02.46.25; Fri, 04 Aug 2023 02:46:39 -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=@linuxfoundation.org header.s=korg header.b=KfAgx545; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230364AbjHDJbR (ORCPT + 56 others); Fri, 4 Aug 2023 05:31:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41316 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230407AbjHDJbH (ORCPT ); Fri, 4 Aug 2023 05:31:07 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9BAB249FA; Fri, 4 Aug 2023 02:31:01 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id D976861F11; Fri, 4 Aug 2023 09:31:00 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C7CEBC433C8; Fri, 4 Aug 2023 09:30:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1691141460; bh=ytIilxh+58GrQ8OHf133q4mTeWcJ92IHYhytXiXB5rU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=KfAgx545kZ70EWgy/+Qb+hWmMEmrKZQ4cXGMJdY2hV7euni4BE1fHneZEIwQoT2tD kpG95qee0OZIpoJNWQtYz1004mw5SxWuamuq9N27z25x+G+x6dXM5smrmEkqP9liQ4 R+uXXT2TpN7giDd+y24XYCNJWdLQvZl/EkhLcNWE= Date: Fri, 4 Aug 2023 11:30:57 +0200 From: Greg KH To: Kalle Valo Cc: Atul Raut , linux-kernel-mentees@lists.linuxfoundation.org, linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] ath6kl: replace one-element array with flexible-array member Message-ID: <2023080410-unadorned-vertigo-c0b8@gregkh> References: <20230804045554.6934-1-rauji.raut@gmail.com> <2023080433-patio-staining-2cfe@gregkh> <87sf8zs2oi.fsf@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87sf8zs2oi.fsf@kernel.org> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 On Fri, Aug 04, 2023 at 10:10:37AM +0300, Kalle Valo wrote: > Greg KH writes: > > > On Thu, Aug 03, 2023 at 09:55:54PM -0700, Atul Raut wrote: > > > >> One-element arrays are no longer relevant, and their > >> place has been taken by flexible array members thus, > >> use a flexible-array member to replace the one-element > >> array in struct ath6kl_usb_ctrl_diag_cmd_write > >> > >> This fixes warnings such as: > >> ./drivers/net/wireless/ath/ath6kl/usb.c:109:8-12: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays) > >> > >> Signed-off-by: Atul Raut > >> --- > >> drivers/net/wireless/ath/ath6kl/usb.c | 2 +- > >> 1 file changed, 1 insertion(+), 1 deletion(-) > >> > >> diff --git a/drivers/net/wireless/ath/ath6kl/usb.c b/drivers/net/wireless/ath/ath6kl/usb.c > >> index 5220809841a6..c8ecc9e85897 100644 > >> --- a/drivers/net/wireless/ath/ath6kl/usb.c > >> +++ b/drivers/net/wireless/ath/ath6kl/usb.c > >> @@ -106,7 +106,7 @@ struct ath6kl_usb_ctrl_diag_cmd_write { > >> __le32 cmd; > >> __le32 address; > >> __le32 value; > >> - __le32 _pad[1]; > >> + __le32 _pad[]; > > > > Are you sure this is actually a variable length array? > > It's not, it's just padding. We both told this in v1: > > https://patchwork.kernel.org/project/linux-wireless/patch/20230731012941.21875-1-rauji.raut@gmail.com/ Hey, I'm consistent, nice! :) But Atul, that's not good to ignore our review comments. Usually that ends up meaning that everyone will then just ignore your submissions, generally a not-good resolution. thanks, greg k-h