linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Andreas Schwab <schwab@suse.de>
To: linux-wireless@vger.kernel.org
Cc: ipw3945-devel@lists.sourceforge.net
Subject: Fix iwlwifi compilation without CONFIG_IWLWIFI_DEBUG
Date: Tue, 29 Jul 2008 21:03:24 +0200	[thread overview]
Message-ID: <jebq0g8qdf.fsf@sykes.suse.de> (raw)

drivers/net/wireless/iwlwifi/iwl-led.c: In function =E2=80=98iwl_led_br=
ightness_set=E2=80=99:
drivers/net/wireless/iwlwifi/iwl-led.c:198: error: =E2=80=98led_type_st=
r=E2=80=99 undeclared (first use in this function)
drivers/net/wireless/iwlwifi/iwl-led.c:198: error: (Each undeclared ide=
ntifier is reported only once
drivers/net/wireless/iwlwifi/iwl-led.c:198: error: for each function it=
 appears in.)

Signed-off-by: Andreas Schwab <schwab@suse.de>
---
diff --git a/drivers/net/wireless/iwlwifi/iwl-led.c b/drivers/net/wirel=
ess/iwlwifi/iwl-led.c
index 899d7a2..a58571c 100644
--- a/drivers/net/wireless/iwlwifi/iwl-led.c
+++ b/drivers/net/wireless/iwlwifi/iwl-led.c
@@ -195,8 +195,10 @@ static void iwl_led_brightness_set(struct led_clas=
sdev *led_cdev,
 		return;
=20
=20
+#ifdef CONFIG_IWLWIFI_DEBUG
 	IWL_DEBUG_LED("Led type =3D %s brightness =3D %d\n",
 			led_type_str[led->type], brightness);
+#endif
 	switch (brightness) {
 	case LED_FULL:
 		if (led->type =3D=3D IWL_LED_TRG_ASSOC)

--=20
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstra=C3=9Fe 5, 90409 N=C3=BCrnberg, Ge=
rmany
PGP key fingerprint =3D 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4=
ED5
"And now for something completely different."
--
To unsubscribe from this list: send the line "unsubscribe linux-wireles=
s" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

             reply	other threads:[~2008-07-29 19:03 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-29 19:03 Andreas Schwab [this message]
2008-07-29 20:50 ` Fix iwlwifi compilation without CONFIG_IWLWIFI_DEBUG Tomas Winkler
2008-07-29 20:55   ` Randy Dunlap
2008-07-29 21:11     ` Tomas Winkler
2008-07-29 21:21       ` John W. Linville

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=jebq0g8qdf.fsf@sykes.suse.de \
    --to=schwab@suse.de \
    --cc=ipw3945-devel@lists.sourceforge.net \
    --cc=linux-wireless@vger.kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).