Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp543660ybi; Thu, 13 Jun 2019 22:26:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqysvVCDjblfjX5rtNd7zfC74FGEx8uMOD7T+cIzRBRDpUyeMkuZCCpbMptnt8U1ZAufCIvs X-Received: by 2002:a63:5211:: with SMTP id g17mr31684402pgb.405.1560490018379; Thu, 13 Jun 2019 22:26:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560490018; cv=none; d=google.com; s=arc-20160816; b=Chd8i1lXpULKbsGfFXDUBlOYnmRhzD1WH98DBh2Si205EbhHw6TWUUqyKrszbp+cN0 malogWAcuGW4dB9oFu63hj+4U9T1DWk3EJ+eiZuyt1VPM1Fk8mEb2xmKFs3+S2yh/XYD EYHvQjIcxYH6Eoxj8q5PZ3EIJTMC5UP/GB9GFiR71fW2GOkemyNJVXySozrP1sqE6xxy Z2mn6hPq2cUwOO8CH9kyW/zfvlWbdxx/TonMzx2bt6/sLhyA1JUwcudFbo93PHiadSG9 PfNGvBCRmZuVBGmJV10VNhAV5aRpp5rJyajooFD1tSA+RS0F0QFmBqPTPpIpe93Tvn+Z 4eyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:dmarc-filter :dkim-signature:dkim-signature; bh=ayHJe7CnrGWk68P5gTtnNqeNDT/FFgA62ZdOOPCqkpo=; b=Sg2PFRXRx0pS8kcll50j5ux7FEgyKwceT4KrZiSefY8h9L3SmWtE8PlWX6XVhhwY4l EbJM/O9y9sB/dlG61j0YMMtiuuj1sOpULUbW5aJL9lyjZKT9Vz4dJqIWaNQwEfZ5iROa 2RgqyLeANPHZtUwpl6/E0ZLTp9RE4vGJ0I9a+4AMUbxQ7JjQ36RTD3CIO9ysz11l2sxd /WD77By91EIGHl08daTinxYbgguN2A/ZHxci6Nne7p+U3tzB0DIjaw7attARBGMvnQcN Znd7GkdJPJm+DzAniLsJ9vU605WA/GTOycxCM1djH7KPT4yiMhG8V+rImMMdmV1iI8Du KMKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=UJtHg8nd; dkim=pass header.i=@codeaurora.org header.s=default header.b=BWxrc8uO; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s68si1255837pfb.39.2019.06.13.22.26.24; Thu, 13 Jun 2019 22:26: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=@codeaurora.org header.s=default header.b=UJtHg8nd; dkim=pass header.i=@codeaurora.org header.s=default header.b=BWxrc8uO; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725822AbfFNF0B (ORCPT + 99 others); Fri, 14 Jun 2019 01:26:01 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:47352 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725767AbfFNF0B (ORCPT ); Fri, 14 Jun 2019 01:26:01 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 0024660867; Fri, 14 Jun 2019 05:26:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1560489961; bh=6YXSV6HR11OJBzhjyk123lc8NA3juKrUYL/aoYkhVqw=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=UJtHg8ndaKW7/U7ES16QK9QEDr8C7y3xRlegAoE/cc0RWXSrBp785ggqJfgitsciu 5q8jZB/d4oxJ3CpuKWO0+I3nwvan1QX2pPqecfsZet9anMqW+6EkNKxx5sYyyxBHQc LLrJVKateihMYni3999PNtREpExfznTcVFVlm+KQ= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_INVALID,DKIM_SIGNED,SPF_NONE autolearn=no autolearn_force=no version=3.4.0 Received: from x230.qca.qualcomm.com (88-114-240-156.elisa-laajakaista.fi [88.114.240.156]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: kvalo@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id DF0C460213; Fri, 14 Jun 2019 05:25:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1560489960; bh=6YXSV6HR11OJBzhjyk123lc8NA3juKrUYL/aoYkhVqw=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=BWxrc8uO7ZtvrV4va+9aNXLMXXBIpnfojmvfOoCzqXrrNK8R9Tpmvn3Q7/CDK8z21 /gCAxebJ7CUSYQVxpPwg0RJXVvnTY1XeuQwrhRw74SfMi4CQAGYsP4Uv8DfwctoR2n D/Qm9rV3/k3FIuRsfbb3sgXgX9UQsB3f2fZd7iYU= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org DF0C460213 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=kvalo@codeaurora.org From: Kalle Valo To: Nathan Huckleberry Cc: eliad@wizery.com, davem@davemloft.net, netdev@vger.kernel.org, linux-wireless@vger.kernel.org, clang-built-linux@googlegroups.com Subject: Re: Cleanup of -Wunused-const-variable in drivers/net/wireless/ti/wl18xx/main.c References: Date: Fri, 14 Jun 2019 08:25:56 +0300 In-Reply-To: (Nathan Huckleberry's message of "Thu, 13 Jun 2019 11:00:33 -0700") Message-ID: <874l4slouz.fsf@codeaurora.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Nathan Huckleberry writes: > I'm looking into cleaning up ignored warnings in the kernel so we can > remove compiler flags to ignore warnings. > > There are two unused variables ('wl18xx_iface_ap_cl_limits' and > 'wl18xx_iface_ap_go_limits') in drivers/net/wireless/ti/wl18xx/main.c. > These appear to be limits when using p2p devices, yet they are never > used. > > Wanted to reach out for the best course of action to fix the warning. > > https://github.com/ClangBuiltLinux/linux/issues/530 The the variables were added in this commit: commit 7845af35e0deeb7537de759ebc69d6395d4123bf Author: Eliad Peller AuthorDate: Thu Jul 30 22:38:22 2015 +0300 Commit: Kalle Valo CommitDate: Mon Aug 10 22:16:34 2015 +0300 wlcore: add p2p device support And even that commit didn't use them, no idea why. Just send a patch removing them, if someone needs them later they can be added again. -- Kalle Valo