From patchwork Fri Aug 4 04:55:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Atul Raut X-Patchwork-Id: 13341240 X-Patchwork-Delegate: johannes@sipsolutions.net Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9CE7EC04A94 for ; Fri, 4 Aug 2023 04:56:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232806AbjHDE4U (ORCPT ); Fri, 4 Aug 2023 00:56:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39156 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232443AbjHDE4S (ORCPT ); Fri, 4 Aug 2023 00:56:18 -0400 Received: from mail-pf1-x42e.google.com (mail-pf1-x42e.google.com [IPv6:2607:f8b0:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 42C244226; Thu, 3 Aug 2023 21:56:17 -0700 (PDT) Received: by mail-pf1-x42e.google.com with SMTP id d2e1a72fcca58-686c06b806cso1209054b3a.2; Thu, 03 Aug 2023 21:56:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691124977; x=1691729777; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=/eHfAQPBbBkch39+4DVNDl4OjmPDthClYpWhqWwd4JE=; b=TjBfgpSkhP8bGjYxDPmWGrhGPMznIowaeh4SWMkAGqMzsdhQUe2aigQ0Eg2SCUGh8l kPjGjo4kAAc2RCm9Us/KbQF1SkMMJT8TVIc4f/h8zs+IGawEUeCLOJFSxpEIyrptbIfB ETAiEfBqtE/H/w4H2U6ewoUAa+e+HVhWuaHToNdRA+hWi3lWo5JA+9RtAWPJpOb6mSk8 FUy7J3Er7AMgyQBK2UIfPwlbGn8f/OiWj1l044yc78tVUysSJteh7VTn0TEu8x2zT3LK tEunxS0wlCTH4C1tq8o6wWIfEHsyEk0X8pB3UaCIFFhxyFwuemyXYqsRN8Yp2nl5rNO7 mMRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691124977; x=1691729777; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=/eHfAQPBbBkch39+4DVNDl4OjmPDthClYpWhqWwd4JE=; b=HAVib4hEYEr1+TzmKxeakscbacKO3J5pecG5NcjSSuwgiiQgkoa3NjxELB/BrfPyVC vHcz+DGe7ol+cS/XfppAU4qbE5DTYuXNJPctvXv8TWDO5nluMilUqlHHd44VEc/RuphD +dA6V1zlbUJlqzj/V5j9Qlg6IhL6NQ7O5M0RyG0FRGMteMPawfL8er/59CdOP1iuAP19 etKddEZqNIp7Ei8ZH+vUdL4U11HqE5oHCnWwwPsvY5ggLBKEAtF4Tub57AcSUzylPdze uLmP9yrRjChb8OJecLPuFiEf/5XzXHOl0Ww6NcOSFSWOPYiodSHQoh/W6mQMn5ISjDyu ITUg== X-Gm-Message-State: AOJu0Yzq+7sVdIOgLyc1Dt8p6P7TTu9aH+q31zqjoTcq/u/ugqP9kw1T Ul8iw9mwIwksJanM+dHj67M= X-Google-Smtp-Source: AGHT+IENLKZYCcOhv/BWrcaX4ZEruyz71Ke6GAWDWoyw47ImxqKKmIpDnPRLxx5DXy/ng8trLzyDbg== X-Received: by 2002:a05:6a00:1488:b0:687:2d68:f30d with SMTP id v8-20020a056a00148800b006872d68f30dmr683853pfu.23.1691124976588; Thu, 03 Aug 2023 21:56:16 -0700 (PDT) Received: from rajgad.hsd1.ca.comcast.net ([2601:204:df00:9cd0:9428:7df2:aef6:7a3e]) by smtp.gmail.com with ESMTPSA id fe23-20020a056a002f1700b006875be41637sm669371pfb.145.2023.08.03.21.56.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Aug 2023 21:56:16 -0700 (PDT) From: Atul Raut To: kvalo@kernel.org Cc: linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kernel-mentees@lists.linuxfoundation.org Subject: [PATCH v2] ath6kl: replace one-element array with flexible-array member Date: Thu, 3 Aug 2023 21:55:54 -0700 Message-Id: <20230804045554.6934-1-rauji.raut@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org 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[]; } __packed; struct ath6kl_usb_ctrl_diag_cmd_read {