From patchwork Mon Mar 22 21:51:16 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 406472 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-19.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5C87EC433E0 for ; Mon, 22 Mar 2021 21:52:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1F23C619AC for ; Mon, 22 Mar 2021 21:52:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230137AbhCVVvo (ORCPT ); Mon, 22 Mar 2021 17:51:44 -0400 Received: from mail.kernel.org ([198.145.29.99]:41710 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229467AbhCVVv3 (ORCPT ); Mon, 22 Mar 2021 17:51:29 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id D95426191D; Mon, 22 Mar 2021 21:51:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1616449888; bh=vplW57jdS3sdwY5BYxTl7rROU7sS/6x0YoCPBkEaF7s=; h=From:To:Cc:Subject:Date:From; b=NFCk5pszFaz6NRayADSr2fVS3LN+m6B5SW1UewBb2lqJngOvQ8go3ziYYlwSZ6/hW wfcDgBrl64BQuCRy3cWqPldHbMqmanTm9YQeKuk0d/SAqB3E+Q2EbHtJ+Gitm6J44v LeZRod5vnYzD4XMzDtVYeseG7IBxTOQOqq+xPRP1X/FtjaSpqSz+Mur+YFaWzQOlj4 eIps+pvMmz27xTm/XuIf6ODQI3kj0swcbV5jEh8xCBde/cVIdhNmuYJrMZmN8I2eMZ 1EnMYr0YWxEqT4eIzwd/4Eg1KmIKpczFSC7WDERFdR0bpfdlN76GSGt0p3qaMr3TbD RipEFz6+4ptQA== From: Arnd Bergmann To: netdev@vger.kernel.org, Luca Coelho , Kalle Valo , "David S. Miller" , Jakub Kicinski , Gregory Greenman Cc: Arnd Bergmann , linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH net-next] iwlwifi: fix old-style-declaration warning Date: Mon, 22 Mar 2021 22:51:16 +0100 Message-Id: <20210322215124.1078478-1-arnd@kernel.org> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: Arnd Bergmann The correct order is 'static const', not 'const static', as seen from make W=1: drivers/net/wireless/intel/iwlwifi/mvm/rfi.c:14:1: error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] Fixes: 21254908cbe9 ("iwlwifi: mvm: add RFI-M support") Signed-off-by: Arnd Bergmann --- drivers/net/wireless/intel/iwlwifi/mvm/rfi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/rfi.c b/drivers/net/wireless/intel/iwlwifi/mvm/rfi.c index 873919048143..4d5a99cbcc9d 100644 --- a/drivers/net/wireless/intel/iwlwifi/mvm/rfi.c +++ b/drivers/net/wireless/intel/iwlwifi/mvm/rfi.c @@ -11,7 +11,7 @@ * DDR needs frequency in units of 16.666MHz, so provide FW with the * frequency values in the adjusted format. */ -const static struct iwl_rfi_lut_entry iwl_rfi_table[IWL_RFI_LUT_SIZE] = { +static const struct iwl_rfi_lut_entry iwl_rfi_table[IWL_RFI_LUT_SIZE] = { /* LPDDR4 */ /* frequency 3733MHz */