Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp468838pxk; Wed, 9 Sep 2020 09:58:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz9slUOKvxLfUgT/BCy4QhAde3G4+0A6Unj9IHDlwPFM6vJQl/zUMLRSyPQ1Bk6NJ5iQPjC X-Received: by 2002:a17:906:fb8f:: with SMTP id lr15mr4492458ejb.25.1599670694954; Wed, 09 Sep 2020 09:58:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599670694; cv=none; d=google.com; s=arc-20160816; b=ngT0kaxkBTY4udwQCoz4sXTKZvvN+RCEnfkH8k1sGbWxmxoI1x9Zj1If9bbHJjJxlN aQcqhEIiCzQLvOopHmVxis3YRwVSFYf5v0+xclAghmstb2TRjwPo0cGj7PtbdTPquHhu Q8vHBx3+g0Pwzp/GjQjjJoqy9HMMt88xt8mhAN2QhAaZ6RnurN7NRjuNE+wlRjZwZAzj JxIiH8X7bfhf/6k+ps4vBfMC3pi2FkPzA20KQ/eqKHOp6clevrkbkBvPsJEzjVxcilGV U0cluiTRaqsabkZq6dnwD3/J15dtE8Qs0YSr7RddMH3935NTohEXzbYzVL0xnagW7Ts+ N57A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=YTINV8fXf0M3n9PBAJO84TZ3ZWqVa/k8IvPy7N9wgi4=; b=PIlwFxC6fWFMnnbJMdq19L5QnNutE2f1Gf587BTygOE3d49WWep3eRxL6tcDNXFNq+ aBJpb0N6RubFHEHsFMJ8eVFBQOdR+rQpZ0g3OgtzQkbcyo1ACiZvZhQnGxRIdMA12R3a sX4CAaHdVl0ZJxfF0tmdZ2loEWX2liREe1QgmV9jAvlbWMmoJt+pccZb8j0mkGBq70oj Ma+XIhQRq32LnIk1sxKziW/7Lw5ePdBHZPXsmeD3JkY1G9KZi9wK7HLIp2mnrjazLn19 aZ5Hrtvrj9iB2BY+BTpIU7MZc6eS8tbAosGmzoS79s82pUckBHEozOs6qoYChePwbOeg PVjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ISIjZ5JQ; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d6si1865309ejj.92.2020.09.09.09.57.50; Wed, 09 Sep 2020 09:58:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ISIjZ5JQ; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731072AbgIIQzl (ORCPT + 99 others); Wed, 9 Sep 2020 12:55:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50766 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730688AbgIIPwb (ORCPT ); Wed, 9 Sep 2020 11:52:31 -0400 Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 71B6BC061371 for ; Wed, 9 Sep 2020 07:17:23 -0700 (PDT) Received: by mail-wr1-x443.google.com with SMTP id j2so3159480wrx.7 for ; Wed, 09 Sep 2020 07:17:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=YTINV8fXf0M3n9PBAJO84TZ3ZWqVa/k8IvPy7N9wgi4=; b=ISIjZ5JQj4TVnnSGapFb7wbJQYYctJNyBV/BPiddD36GRemkQ2jjGJozi7ZZ/kNFgX L+a9BRRcxvMgswArV5WD4NYsCit9c2oH3aiX4oPX4bd3Jz2GsnLqByOiF29v5yx3b5iD uDbebTiq0Z5y1HyVnJZ+YOiaS2S0q+WjKtZ6Tef9eHw7YRu85EZSVkNInnykwrXTIC+n P5rhgZr4VBrBEVyX5ti/2W5iurPZAztgCxVQu0luBxCahAI/N4dSAyW9VNbxVRuO4gwp I7Snb8LSDhaMGjreOX/81es+gdR7Eb9OtmYjiXDDWcimTmOxMQjfw/bK/6V7yYEScTk0 wy+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=YTINV8fXf0M3n9PBAJO84TZ3ZWqVa/k8IvPy7N9wgi4=; b=mYsTxYE8WzbkFDt2z8J6+pfMeq+bYa3/FeokQA8qHzfOJlrfX1o5zD6ESxkQg50ziL HPy5U/+ZfSDLYnpwcWwbWNxFcs1f6OuikpemG0Meg1jNBAM/TCWU2bfH6CW9Gwt70s0f d7Qp3vLC+JVrqx5X9OiWxti3t/aVbwlVK2Ff5wABqIA+IRHlz+hnYsJ3uDZqTHGl2xEK EXTC2q1KOVcGegEn/Hx5fA96w61rgFQhyXZzELl+zA4TcHj9ZpUsnfgQ3oBeS8NGZla0 mqyp1SA2/TRsGpqXtrXdsch4EqFdPQk82aHNvgUnSEUSwRSuCgP9pWjC/KW4bIxdHOp8 D3mw== X-Gm-Message-State: AOAM533I3b4qdhSOoz76G1DTSnsixj0IexAZwE4rzXynlYyK4BVSuV7/ 6Pe8p8nKvTRbNCxr3+2opA4RoA== X-Received: by 2002:adf:82d5:: with SMTP id 79mr4682690wrc.60.1599661042100; Wed, 09 Sep 2020 07:17:22 -0700 (PDT) Received: from dell ([91.110.221.208]) by smtp.gmail.com with ESMTPSA id m3sm2774942wrs.83.2020.09.09.07.17.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Sep 2020 07:17:21 -0700 (PDT) Date: Wed, 9 Sep 2020 15:17:19 +0100 From: Lee Jones To: Kalle Valo Cc: davem@davemloft.net, kuba@kernel.org, linux-kernel@vger.kernel.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, Amitkumar Karwar , Ganapathi Bhat , Xinming Hu Subject: Re: [PATCH 01/32] wireless: marvell: mwifiex: sdio: Move 'static const struct's into their own header file Message-ID: <20200909141719.GD218742@dell> References: <20200821071644.109970-2-lee.jones@linaro.org> <20200901091541.3974FC433C6@smtp.codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200901091541.3974FC433C6@smtp.codeaurora.org> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Tue, 01 Sep 2020, Kalle Valo wrote: > Lee Jones wrote: > > > Only include these tables in the 1 source file they are used. > > > > Fixes hundreds of W=1 warnings! > > > > Fixes the following W=1 kernel build warning(s): > > > > In file included from drivers/net/wireless/marvell/mwifiex/main.h:59, > > from drivers/net/wireless/marvell/mwifiex/main.c:22: > > drivers/net/wireless/marvell/mwifiex/sdio.h:705:41: warning: ‘mwifiex_sdio_sd8801’ defined but not used [-Wunused-const-variable=] > > 705 | static const struct mwifiex_sdio_device mwifiex_sdio_sd8801 = { > > | ^~~~~~~~~~~~~~~~~~~ > > > > NB: There were 100's of these - snipped for brevity. > > > > Cc: Amitkumar Karwar > > Cc: Ganapathi Bhat > > Cc: Xinming Hu > > Cc: Kalle Valo > > Cc: "David S. Miller" > > Cc: Jakub Kicinski > > Cc: linux-wireless@vger.kernel.org > > Cc: netdev@vger.kernel.org > > Signed-off-by: Lee Jones > > I don't think static const variables should be in a .h file. Wouldn't > sdio.c be the right place for these? At least from a quick look I got > that impression. That's a bone of contention. I personally do not like to see C-files overwhelmed by a sea of structs/tables and tend to ferry them off into *-tables.h header files instead. As the gate-keeper, what you say goes. So if you insist we move these 450 lines of tables into the source file which references them, I will of course do as you ask. > Patch set to Changes Requested. -- Lee Jones [李琼斯] Senior Technical Lead - Developer Services Linaro.org │ Open source software for Arm SoCs Follow Linaro: Facebook | Twitter | Blog