Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp276311pxa; Wed, 19 Aug 2020 00:30:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxrP4LYDb51ae1BeoJjr5JbWRQ0jKKtYBEF5VWCMfZYACj54fu6D7Au/enKA7ajH/0bjKM3 X-Received: by 2002:a17:906:f14f:: with SMTP id gw15mr23033874ejb.245.1597822252085; Wed, 19 Aug 2020 00:30:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597822252; cv=none; d=google.com; s=arc-20160816; b=ZC5IxB9u0MsBND27Pll+poCAHj0B6czFLtXVx8STx/ZBrJuTzWnVLdCK9BfbERJ0cG S17vfxoV6b+pAj8hByladgltAU7yhsfSNqKAPkwPgDyMLWHPnYw0tj+mdfJgrvTNQSxJ 08Oa9fyCqJ73Tv+LyAXWoxn2EzO95XctYYz1EZfmAByzJ8qlpGzAz4lMr8gHwFKkJXmT 0Ue9pMToLxFniJdID0v2hItDdt4f43CvDoWUypx7pzuPbk1meqOqvGttyU1EGpvgIc6x HFmBuBro+ur4rQahyZBx/PZxVqA+44GMwRGoEU8EXeZJHaB6kOsriECPaNDj1whO26yp oCRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=KXYENBinaCN+ks7DBcWZinXSV9BpT8CW1RxXg+imR4I=; b=eMg/AzIpoHidDs5EAGtLlt//kPSWasIcTRw1Av4MKZ59Y8oB7496HonYW2eR28rJk5 TiBehvE8xKMi3W/K5yAxFC8Y7RDkBc9Lq7ELaYkgG8zAqUWFyKDVNk7e0bnaEneK0+cm hqHXntLps/KEwm6sewTW6ZBkwiczOCtIERA7NEWu2SM062FK9VV97dVjFkCEH4hmlSvP YKeQGEJi/LctZ361ILtoDidpicPwt5O9qJMGa1+VMZOTPGtC+ngQWhKy5Z25xpQx2Ukt 3Hsr/Y3bJrUFgiGitglrzR3PxsyATf+mzd0H2mzW113QA8ZMTFot5iDhZ4ICUOmXtlGt Hx3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=e6I2zUm3; 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 v19si14698303edx.39.2020.08.19.00.30.27; Wed, 19 Aug 2020 00:30:52 -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=e6I2zUm3; 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 S1727016AbgHSH3Y (ORCPT + 99 others); Wed, 19 Aug 2020 03:29:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40948 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726809AbgHSHYc (ORCPT ); Wed, 19 Aug 2020 03:24:32 -0400 Received: from mail-wm1-x343.google.com (mail-wm1-x343.google.com [IPv6:2a00:1450:4864:20::343]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C5231C061389 for ; Wed, 19 Aug 2020 00:24:20 -0700 (PDT) Received: by mail-wm1-x343.google.com with SMTP id 184so1132391wmb.0 for ; Wed, 19 Aug 2020 00:24:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=KXYENBinaCN+ks7DBcWZinXSV9BpT8CW1RxXg+imR4I=; b=e6I2zUm35cVi9dFGr/2WyrNR16/nLWhQxMYyQnM9+Z5wU7CzwJA0K2RlxVhx7Ow7XN c3yC3PFP/6F5WKaEP3sVw27CfQb0nBA8277d1UuXQyd/tk4VFU+ZzTvpKA/eNkC83idm fEKJZqjA98IDAup4I3XLkAzw/qkLZmDNMoO0kXPeNA38j7TaY9BCvnJFweNqB3nwvepT YbWU6enSU37CbsDkYj9Xz/zo+4Zicz9E73yZsyB9Y1YOB1Uo601HfHNkY99OvfvvabdI 0lSqKO3ntZmlUMcF6OdQnKZmcOkvXFMUQb+09mfkNMJZwPSHbNtkm2L9rRkapqgiMyFc U3Sw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=KXYENBinaCN+ks7DBcWZinXSV9BpT8CW1RxXg+imR4I=; b=eHLR6d7jUVwVgw3r/GOl9A8A5iUtdUmSZwyWtd4RCkn3RZJVhE3WDDApK2Prdq1bLH 3cxQ5q5aSniTXOaJ+gXATCtL6HOFuOM36ZeRjAPjs4tl9SbItWmkXcfFi6kcY7fWMjUp 9VCcm5EEDkBkCr/4+V57IVZNtHHlMgsqMC+xwXHyGNvl48SwoXcqWD6EiQ2QHnAidKDg xZRCV7nP27H0M7NrYhG4dAslTZZr/7dIstMR0XXykPjJM4aZvb8+Y79R9WwAqX93jN0Y YOXWCD0UId/iBzHvXo4DGB10RUXn+ZSRu88uJlPYs63beNvotmfIgN0lYhCOD2eIaY88 0dtg== X-Gm-Message-State: AOAM530gIXyBWqUtzr8Nz4KfS/DFFQXJc/J6OkDFcbmP9wQRL5rGN9kL WBk0zzTfZ/GXmnqXot6s+JCX1Q== X-Received: by 2002:a1c:c913:: with SMTP id f19mr3380282wmb.173.1597821859109; Wed, 19 Aug 2020 00:24:19 -0700 (PDT) Received: from dell.default ([95.149.164.62]) by smtp.gmail.com with ESMTPSA id c145sm3795808wmd.7.2020.08.19.00.24.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Aug 2020 00:24:18 -0700 (PDT) From: Lee Jones To: kvalo@codeaurora.org, davem@davemloft.net, kuba@kernel.org Cc: linux-kernel@vger.kernel.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, Lee Jones , Jouni Malinen , Nathan Chancellor , Nick Desaulniers Subject: [PATCH 11/28] wireless: intersil: hostap: hostap_ap: Mark 'txt' as __always_unused Date: Wed, 19 Aug 2020 08:23:45 +0100 Message-Id: <20200819072402.3085022-12-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200819072402.3085022-1-lee.jones@linaro.org> References: <20200819072402.3085022-1-lee.jones@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Keeping this around to act as documentation, since its use is currently #if'ed out at the end of the function. Fixes the following W=1 kernel build warning(s): drivers/net/wireless/intersil/hostap/hostap_ap.c: In function ‘handle_assoc’: drivers/net/wireless/intersil/hostap/hostap_ap.c:1507:8: warning: variable ‘txt’ set but not used [-Wunused-but-set-variable] Cc: Jouni Malinen Cc: Kalle Valo Cc: "David S. Miller" Cc: Jakub Kicinski Cc: Nathan Chancellor Cc: Nick Desaulniers Cc: linux-wireless@vger.kernel.org Cc: netdev@vger.kernel.org Signed-off-by: Lee Jones --- drivers/net/wireless/intersil/hostap/hostap_ap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/intersil/hostap/hostap_ap.c b/drivers/net/wireless/intersil/hostap/hostap_ap.c index 3ec46f48cfde1..8bcc1cdcb75b0 100644 --- a/drivers/net/wireless/intersil/hostap/hostap_ap.c +++ b/drivers/net/wireless/intersil/hostap/hostap_ap.c @@ -1504,7 +1504,7 @@ static void handle_assoc(local_info_t *local, struct sk_buff *skb, u16 resp = WLAN_STATUS_SUCCESS; struct sta_info *sta = NULL; int send_deauth = 0; - char *txt = ""; + char __always_unused *txt = ""; u8 prev_ap[ETH_ALEN]; left = len = skb->len - IEEE80211_MGMT_HDR_LEN; -- 2.25.1