Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp3199520rwo; Fri, 4 Aug 2023 00:32:31 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG5YlwHWXnwu2c6uVVUeqN0ctiNPUdxgl3QIl7wlsn+i80yVKeh/2L46QzPeTr0s7UDu2/A X-Received: by 2002:a05:620a:4609:b0:76c:e8fb:b6eb with SMTP id br9-20020a05620a460900b0076ce8fbb6ebmr1253624qkb.59.1691134351369; Fri, 04 Aug 2023 00:32:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691134351; cv=none; d=google.com; s=arc-20160816; b=Gw710hUKsjVU55KSqIL4h10lPMAIQUKEsigIP/AZYNXfPZsvvgiaKjRa5Ikj2gH9gt /ShUg0jklC5vSGYJ9WCo2jtUc/BT7AD7LflZBXG5rdfpx5XpInJzkIgNlZOLb4iI4okn OtNZxLauSQEAT60EruicCEhZP4EJTsvqz+I2jy8tNJFCY/dAphpzx1nhS4OxsVH6HFLC iccg7gGkWFc7fL4NzplZgA0osM/LHRlBxAljFeXb5eDwkAE+DZ3pB1aaG1QDE0dHyM0/ 3ppM5/znrL8bUp0YLonbLI7Q9xrTxFyMBZLB4P6L0BM7eFsfDwqn2jRF/6DnHesAWy89 4WMg== 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:message-id:in-reply-to :date:references:subject:cc:to:from:dkim-signature; bh=LLblOCQCNw1cdtWrMy8fgo0fai1IWvcN0Es+iu7FKUg=; fh=LdXjUbbCOyF3GxpAxijiyEcNa8JAmZkc8LAfbOSb9qI=; b=gbIcVcfgsYbDdsgZ1FOZwicDkHJchGblgX5dCgMbvy/YwKZs/X+FeliOVBUHHOUJ04 1uJHmYhAflzgELUyfjcEufK72s7sVFQLU4hr1j/mPHTy/o4Gw2m7CL+cXmH0ZW5ZWXHa cvZLKPkEMksoo00+y/ljVFYtQt5h3lMP4nLyj8hB6b8rhazkR9gt+ffv1fR4pb2JDcsR c5/+6S0yvkZzTve93k3W+V0c33fJNtA/1MSxg2fa3AvgeMdL0v8S3ETT0QX4Ts8FdQj5 PEG3e28zh18TYmXRi22mKavzL4lPIFbUWlGoCZAKa8Gf/22nEouCLxuqvj+g/a9d/i/b 75lA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=EdBv1zzb; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m8-20020a633f08000000b0056345699503si1321758pga.2.2023.08.04.00.32.23; Fri, 04 Aug 2023 00:32:31 -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=@kernel.org header.s=k20201202 header.b=EdBv1zzb; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234194AbjHDHLd (ORCPT + 58 others); Fri, 4 Aug 2023 03:11:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56306 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232518AbjHDHLS (ORCPT ); Fri, 4 Aug 2023 03:11:18 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BF13346B3; Fri, 4 Aug 2023 00:10:42 -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 2AA9861F52; Fri, 4 Aug 2023 07:10:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 612EAC433C8; Fri, 4 Aug 2023 07:10:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691133040; bh=62KxXbPq/v9mVt89IWvhNC7HqQ/Vf5hkkkSHvyM2294=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=EdBv1zzbSPBpUuAo7GeIIIR34w57JYjlIsm68aTkXnfGHjDXD+q6zFo/VqsURUKXM s+KRf43zRQR+D0PEZab22S3QFVNOeUr89tDHeOGcogDk7L1rhCCgsOBPQcIRWkASyO i0WHWZ3V2PNGKz8yOWyB4BWEJQuHvQF/trJ7JmKspmbSc3vxgRCnBppHSXNYZ5Ek8U UyRkA0bHSDDPr7lqz3ZMiqInK96cburfsTIyJcrETbV5VtCNzSO3hSLyf8+E9lMQIF ta9PAX7CUYYhZRPH0ioriboTKBfIDaMOGlWcDaDH82gfsEZL39n8Jeiu33BttOY81g P8zbObTzQDcew== From: Kalle Valo To: Greg KH 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 References: <20230804045554.6934-1-rauji.raut@gmail.com> <2023080433-patio-staining-2cfe@gregkh> Date: Fri, 04 Aug 2023 10:10:37 +0300 In-Reply-To: <2023080433-patio-staining-2cfe@gregkh> (Greg KH's message of "Fri, 4 Aug 2023 07:15:43 +0200") Message-ID: <87sf8zs2oi.fsf@kernel.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 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/ > And you just changed the size of this structure, are you sure this is > correct? This patch is not correct. Atul, ALWAYS include a changelog when submitting a new version. Please carefully read our wiki link below before submitting new patches to wireless. -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches