2007-11-07 20:22:28

by Michael Büsch

[permalink] [raw]
Subject: [PATCH] b43legacy: Fix sparse warning

Fix a sparse warning about a nonstatic function.

Signed-off-by: Michael Buesch <[email protected]>

---

Note that this patch might collide with Stefano's recently
sent patches. But it should be trivial enough to fix that.

Index: wireless-2.6/drivers/net/wireless/b43legacy/main.c
===================================================================
--- wireless-2.6.orig/drivers/net/wireless/b43legacy/main.c 2007-11-07 20:31:06.000000000 +0100
+++ wireless-2.6/drivers/net/wireless/b43legacy/main.c 2007-11-07 20:47:36.000000000 +0100
@@ -3238,7 +3238,7 @@ out_mutex_unlock:
return err;
}

-void b43legacy_stop(struct ieee80211_hw *hw)
+static void b43legacy_stop(struct ieee80211_hw *hw)
{
struct b43legacy_wl *wl = hw_to_b43legacy_wl(hw);
struct b43legacy_wldev *dev = wl->current_dev;


2007-11-07 23:31:17

by Stefano Brivio

[permalink] [raw]
Subject: Re: [PATCH] b43legacy: Fix sparse warning

On Wed, 7 Nov 2007 21:21:55 +0100
Michael Buesch <[email protected]> wrote:

> Fix a sparse warning about a nonstatic function.
>
> Signed-off-by: Michael Buesch <[email protected]>

Acked-by: Stefano Brivio <[email protected]>


--
Ciao
Stefano