From: Wu Fengguang <fengguang.wu@intel.com>
To: Zhu Yi <yi.zhu@intel.com>
Cc: linux-wireless@vger.kernel.org
Subject: [PATCH] iwlwifi: fix build warning
Date: Sun, 23 Nov 2008 19:18:12 +0800 [thread overview]
Message-ID: <20081123111812.GA15611@localhost> (raw)
iwl_escape_essid() is only used in debugging code for now.
So define it only with CONFIG_IWL3945_DEBUG enabled.
Signed-off-by: Wu Fengguang <wfg@linux.intel.com>
---
diff --git a/drivers/net/wireless/iwlwifi/iwl-scan.c b/drivers/net/wireless/iwlwifi/iwl-scan.c
index c89365e..412f5d2 100644
--- a/drivers/net/wireless/iwlwifi/iwl-scan.c
+++ b/drivers/net/wireless/iwlwifi/iwl-scan.c
@@ -70,6 +70,7 @@ static int scan_tx_ant[3] = {
+#ifdef CONFIG_IWL3945_DEBUG
static int iwl_is_empty_essid(const char *essid, int essid_len)
{
/* Single white space is for Linksys APs */
@@ -111,6 +112,7 @@ static const char *iwl_escape_essid(const char *essid, u8 essid_len)
*d = '\0';
return escaped;
}
+#endif
/**
* iwl_scan_cancel - Cancel any currently executing HW scan
next reply other threads:[~2008-11-23 11:18 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-23 11:18 Wu Fengguang [this message]
2008-11-23 11:47 ` [PATCH] iwlwifi: fix build warning Johannes Berg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20081123111812.GA15611@localhost \
--to=fengguang.wu@intel.com \
--cc=linux-wireless@vger.kernel.org \
--cc=yi.zhu@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.