Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1200839ybi; Fri, 14 Jun 2019 10:17:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqw/wgpNhLp8kozYCvT7Jm4bs6+JloXkCXBePIDHJc/9Kah1KDICHxnQ+uL49SQSj1htmJ3d X-Received: by 2002:a17:90a:30aa:: with SMTP id h39mr12279060pjb.32.1560532678901; Fri, 14 Jun 2019 10:17:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560532678; cv=none; d=google.com; s=arc-20160816; b=CVoeAYjOGvJCcBQDs0P4ZzXrepJCxQ4GTvrmJjiGHpGWhlIMcsqxsmq73lIxUttOHy kE3yIHOThjMgHBziB+L7ySg4uhiZKMSj1ah3qDVMUpCIYKBT7iGy8D7P5SsLVFGEsDvT MaypFWQQqVL+8xRfa1FhQWseU7TKPwlBZoJ1oYlh587Wjcct9DlcylPxn9kkwi0tCMd9 5lTM1lU3pNDB4gRSyp0jmnTSMl4KBYTZtoEspypVQWTkerwJlJ5r5NAUEXxTl166TBHl ZGBYBBgcatAEgBcT4f0SLsxa1dfYt6HwSYGX3YyZgLOiihPk7pMux2Mk1nK2JYU0G1LN GoWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:from:subject:mime-version :message-id:date:dkim-signature; bh=PfqzR6OCJuShUbiIZxhM7dStAsUG2Yzxrzdg+ytHsmg=; b=TGbNN+pAKxDSht7hwKvo1/bf0+yhVUuPgyd34jcyIO6uYjMxqeZlBGhwxlS4SRiEid qanGKqyRw3ijmfHCPQjvLGww0EegFVpvkB7xjwyjGj0hErtQ4keL73osknd0As5tSUip 9j6QLxMzXjLy3bovd+t0LU72TQZrqurs2Z3b6GWzrW9ghNjFYV4Lhom2Pa4ZtO3SZrK8 9fe6xVP8D0lkjHrYt1G+Eet1RluSIRNniize9vd+tvuYG5w8Qxp9J7x6Nj8rUXeN6hlB XF4Vb76a89ydN8MIHx9RGa7aiOICJxmOcZkZr8FwzxwywSmFzPocLzD+chljxwEHbC4R PSbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=SdJx5Sno; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 38si3079574pgw.383.2019.06.14.10.17.43; Fri, 14 Jun 2019 10:17:58 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=SdJx5Sno; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726338AbfFNRRU (ORCPT + 99 others); Fri, 14 Jun 2019 13:17:20 -0400 Received: from mail-yb1-f201.google.com ([209.85.219.201]:45090 "EHLO mail-yb1-f201.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725837AbfFNRRT (ORCPT ); Fri, 14 Jun 2019 13:17:19 -0400 Received: by mail-yb1-f201.google.com with SMTP id y3so3391585ybg.12 for ; Fri, 14 Jun 2019 10:17:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:message-id:mime-version:subject:from:to:cc; bh=PfqzR6OCJuShUbiIZxhM7dStAsUG2Yzxrzdg+ytHsmg=; b=SdJx5Sno739AYIvhyoAQWdwlLaTV0qZ/Z8oxt8cXTHYNWosTV5yjnKAP5MXP4Q7zp6 DM7EC/z7zMR71UIi6pm2oe5mPZVGCApReiP2mmd22fHXYk8gpVinxY7T0/OewUrpRIP7 5kTOlYELQyNI9ZrZDdZDStoQt5s+y87UCMlVAIpbv2o4DqZSg9JTMggBGK6+G3eoTxfr 274X9YibUaw1b2NYWuRwMcE5v1cWAa3LQKWZ7GmBfipWWHTM54oKOKSaSxbBuYJn3nlx tcfUlgc+OohLEv6JHJMljgg9ICqHAlKxo9HRrmsEcCVDEZcmwqx6FJXMxkEfI4DYs9BX pIng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:message-id:mime-version:subject:from:to:cc; bh=PfqzR6OCJuShUbiIZxhM7dStAsUG2Yzxrzdg+ytHsmg=; b=GEzPT3vST2MxF+9razsSRUyZ4tNR+c4cFJmoGEuGG/1VTXfq5Q31qhoIfGJK9nx+09 7kGb7CZV06TpoMLsGTC2D3TrVIT/7p2TeSpqQIB4iUJx6zelw01E/BhMmn2W6M3lu1g3 QOrU/hqwNhlHdw0eddd7XXixpNp7MUT9GxbyK70eVjlKEDkq0FbtNk15WRiHBRvVsOd9 zQMP1LW+zKHIbscLkeRzaOyvzSNrZtZRMvhwDIV1Uye1S03D94ltZ2udiEMjE3NC03Mx tVk3V9vkUvx/Pyb1oeS15bmGE76YwcrysNnnQcOU1hif6dGcD4QnrJ56njBleFSfHzdV 6sMA== X-Gm-Message-State: APjAAAV8sICs7Dy6rU22oBJjmcr1VQZTKVhcVNS7suIDAxYoKH5W32/6 e4SUSF0VTeyeTMSNAuKR2Pikg6fZJw== X-Received: by 2002:a0d:da84:: with SMTP id c126mr11206949ywe.133.1560532637768; Fri, 14 Jun 2019 10:17:17 -0700 (PDT) Date: Fri, 14 Jun 2019 10:17:13 -0700 Message-Id: <20190614171713.89262-1-nhuck@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.22.0.rc2.383.gf4fbbf30c2-goog Subject: [PATCH] wl18xx: Fix Wunused-const-variable From: Nathan Huckleberry To: kvalo@codeaurora.org, davem@davemloft.net Cc: linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Nathan Huckleberry , clang-built-linux@googlegroups.com Content-Type: text/plain; charset="UTF-8" Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Clang produces the following warning drivers/net/wireless/ti/wl18xx/main.c:1850:43: warning: unused variable 'wl18xx_iface_ap_cl_limits' [-Wunused-const-variable] static const struct ieee80211_iface_limit wl18xx_iface_ap_cl_limits[] = { ^ drivers/net/wireless/ti/wl18xx/main.c:1869:43: warning: unused variable 'wl18xx_iface_ap_go_limits' [-Wunused-const-variable] static const struct ieee80211_iface_limit wl18xx_iface_ap_go_limits[] = { ^ The commit that added these variables never used them. Removing them. Cc: clang-built-linux@googlegroups.com Link: https://github.com/ClangBuiltLinux/linux/issues/530 Signed-off-by: Nathan Huckleberry --- drivers/net/wireless/ti/wl18xx/main.c | 38 --------------------------- 1 file changed, 38 deletions(-) diff --git a/drivers/net/wireless/ti/wl18xx/main.c b/drivers/net/wireless/ti/wl18xx/main.c index a5e0604d3009..0b3cf8477c6c 100644 --- a/drivers/net/wireless/ti/wl18xx/main.c +++ b/drivers/net/wireless/ti/wl18xx/main.c @@ -1847,44 +1847,6 @@ static const struct ieee80211_iface_limit wl18xx_iface_ap_limits[] = { }, }; -static const struct ieee80211_iface_limit wl18xx_iface_ap_cl_limits[] = { - { - .max = 1, - .types = BIT(NL80211_IFTYPE_STATION), - }, - { - .max = 1, - .types = BIT(NL80211_IFTYPE_AP), - }, - { - .max = 1, - .types = BIT(NL80211_IFTYPE_P2P_CLIENT), - }, - { - .max = 1, - .types = BIT(NL80211_IFTYPE_P2P_DEVICE), - }, -}; - -static const struct ieee80211_iface_limit wl18xx_iface_ap_go_limits[] = { - { - .max = 1, - .types = BIT(NL80211_IFTYPE_STATION), - }, - { - .max = 1, - .types = BIT(NL80211_IFTYPE_AP), - }, - { - .max = 1, - .types = BIT(NL80211_IFTYPE_P2P_GO), - }, - { - .max = 1, - .types = BIT(NL80211_IFTYPE_P2P_DEVICE), - }, -}; - static const struct ieee80211_iface_combination wl18xx_iface_combinations[] = { { -- 2.22.0.rc2.383.gf4fbbf30c2-goog