Message ID | 20200819072402.3085022-12-lee.jones@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:522:0:0:0:0 with SMTP id h2csp241675ils; Wed, 19 Aug 2020 00:25:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxzEOriTofXCzkxVOLSDEnk38puZbv64xtSrvnVnk54F1hHiG19DCtL+fcqG24+JEB40xv1 X-Received: by 2002:a50:d74b:: with SMTP id i11mr24500541edj.136.1597821923138; Wed, 19 Aug 2020 00:25:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597821923; cv=none; d=google.com; s=arc-20160816; b=eJ/lOfY+19rVOe2nIsIZhOa6Y/cKbAkbi25wcGvVgTMxGfB3CVOCoQcbDxP9VLizCd 0ZyqYrSqswbMOVDhTbmWK1ZzLLosi+GMShwfGzHvzImImbj14uTKpvLrRICSTsUXPbwk 06D1ZBwk3VWWGXOcK71OTiB3fZXTurWt1kODTiDaQraN+D0G1aw9xb/tnZHJd5fTCQ6a +WpFPMKv7tMmlQYBjl/DvdovWqFm6cOcmqHcAbXmbP+CXeopzZxWBEmYohtrdK3hr9u4 hhxzsEkCQemSMKYR44u2scxwUI/nCQPNUBJBaEH9jljIkVf/m4bvybOnJYk618csLE78 8vGg== 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=urYQowu7KzWlpQZDtzwcyVHlVPObh3e4PfLc+hUnXXW0iYlAPfOiyN7iJKw++j12Hk nqbCNOry/TuTgHcp5RAkRgDvYWQNvqC8ZXgOXfAXFkw6rPtfeMnDcPT7vWsPSgRjyi+w G4NoLHVt74371RGkXVHqHdDs38CWG/9/B2T1gII/xc1qB1lZoif489LgK0f8Yftx9RJr 96/zyG0DbOrF4LBo8IvJmamXWwESESsV3HkFDZHeIg6DD2yYBaa+GmkOM0iraAKzqXnf rz5FYaEHjDEfMNOSLZDNC6OdeskJMmT36XctypkSqmRLOscdTeKE0KR9QIGujyipnUrZ xoaQ== 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 netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <netdev-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id df1si14689098edb.78.2020.08.19.00.25.22; Wed, 19 Aug 2020 00:25:23 -0700 (PDT) Received-SPF: pass (google.com: domain of netdev-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 netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-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 S1727798AbgHSHZV (ORCPT <rfc822;patch@linaro.org> + 9 others); Wed, 19 Aug 2020 03:25:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40956 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727055AbgHSHYk (ORCPT <rfc822;netdev@vger.kernel.org>); Wed, 19 Aug 2020 03:24:40 -0400 Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CA318C061360 for <netdev@vger.kernel.org>; Wed, 19 Aug 2020 00:24:20 -0700 (PDT) Received: by mail-wm1-x342.google.com with SMTP id c80so1088736wme.0 for <netdev@vger.kernel.org>; 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=Xa9v1MbWOmdWi3TXyXW3nPUxWUfx66ytGclmYj0XEE7holfjeat/MF+iSvOrzkocJD i7LinOWCjWm2UBN9waIwa4FcqLnFofHn0+Foie+j72E2Z4Egjio8VARK4v19tt4LrBGS wGgobwpvsrJc4PcIOI8znByEP77btWPDWY72wLDzZUQzg2e2udHGHxCRg0bylERcgOxm n6tC4Y7PY1Aymtreecm2Kn0+Cg7bCD+wCZWssv8zkZmiOL0bioTkmv37f4hPuAfSMxFK oub2bzEReZDo2BxkFpZokLgIOQR3bFlhkPfGPrTBg+cOYKjMAm+Bi5w/RAcl/41E+nNr 9bwA== X-Gm-Message-State: AOAM532k/TVTlNcG1OF6m69f9qTdvcZ8xSWLCwjo/UhgJu6c6qsFDzO0 xEJ+CyjjrVF5tPrPuRj7Ycm5cw== 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 <lee.jones@linaro.org> 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 <lee.jones@linaro.org>, Jouni Malinen <j@w1.fi>, Nathan Chancellor <natechancellor@gmail.com>, Nick Desaulniers <ndesaulniers@google.com> 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: netdev-owner@vger.kernel.org Precedence: bulk List-ID: <netdev.vger.kernel.org> X-Mailing-List: netdev@vger.kernel.org |
Series |
[01/28] wireless: intersil: hostap: Mark 'freq_list' as __maybe_unused
|
expand
|
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;
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 <j@w1.fi> Cc: Kalle Valo <kvalo@codeaurora.org> Cc: "David S. Miller" <davem@davemloft.net> Cc: Jakub Kicinski <kuba@kernel.org> Cc: Nathan Chancellor <natechancellor@gmail.com> Cc: Nick Desaulniers <ndesaulniers@google.com> Cc: linux-wireless@vger.kernel.org Cc: netdev@vger.kernel.org Signed-off-by: Lee Jones <lee.jones@linaro.org> --- drivers/net/wireless/intersil/hostap/hostap_ap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.25.1