linux-next.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* wlcore.ko undefined symbols
@ 2012-05-28 17:54 Geert Uytterhoeven
  2012-05-29  7:15 ` [PATCH] wlcore: fix undefined symbols when CONFIG_PM is not defined Eyal Shapira
  0 siblings, 1 reply; 5+ messages in thread
From: Geert Uytterhoeven @ 2012-05-28 17:54 UTC (permalink / raw)
  To: Eyal Shapira, Luciano Coelho, John W. Linville
  Cc: linux-kernel, linux-wireless, Linux-Next

m68k allmodconfig:

ERROR: "wl1271_rx_filter_get_fields_size"
[drivers/net/wireless/ti/wlcore/wlcore.ko] undefined!
ERROR: "wl1271_rx_filter_flatten_fields"
[drivers/net/wireless/ti/wlcore/wlcore.ko] undefined!

drivers/net/wireless/ti/wlcore/acx.c needs both functions unconditionally, but
drivers/net/wireless/ti/wlcore/main.c has both functions inside #ifdef
CONFIG_PM.

This is in -next, but I believe all relevant code was merged in
mainline in the mean time.
Sorry for not noticing earlier, due to a longstanding unrelated build
issue in -next.

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH] wlcore: fix undefined symbols when CONFIG_PM is not defined
  2012-05-28 17:54 wlcore.ko undefined symbols Geert Uytterhoeven
@ 2012-05-29  7:15 ` Eyal Shapira
  2012-05-29  7:21   ` Luciano Coelho
  2012-05-29  7:54   ` Stephen Rothwell
  0 siblings, 2 replies; 5+ messages in thread
From: Eyal Shapira @ 2012-05-29  7:15 UTC (permalink / raw)
  To: John W. Linville
  Cc: linux-wireless, linux-kernel, linux-next, Luciano Coelho,
	Geert Uytterhoeven

commit 5063c201d7b799d6cb36d3edfc2c2c3db3b400e5
"wl12xx: add RX filters ACX commands" breaks the build
when CONFIG_PM isn't defined:

ERROR: "wl1271_rx_filter_get_fields_size"
[drivers/net/wireless/ti/wlcore/wlcore.ko] undefined!
ERROR: "wl1271_rx_filter_flatten_fields"
[drivers/net/wireless/ti/wlcore/wlcore.ko] undefined!

code in drivers/net/wireless/ti/wlcore/acx.c is using these
functions unconditionally while they are #ifdefed CONFIG_PM.
Fix it by ifdefing all relevant RX filters code with CONFIG_PM.

Reported-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Eyal Shapira <eyal@wizery.com>
---
Geert - Thanks!

 drivers/net/wireless/ti/wlcore/acx.c |    2 ++
 drivers/net/wireless/ti/wlcore/acx.h |    4 +++-
 drivers/net/wireless/ti/wlcore/rx.c  |    2 ++
 3 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/drivers/net/wireless/ti/wlcore/acx.c b/drivers/net/wireless/ti/wlcore/acx.c
index 0fd78a0..755b225 100644
--- a/drivers/net/wireless/ti/wlcore/acx.c
+++ b/drivers/net/wireless/ti/wlcore/acx.c
@@ -1715,6 +1715,7 @@ out:
 
 }
 
+#ifdef CONFIG_PM
 /* Set the global behaviour of RX filters - On/Off + default action */
 int wl1271_acx_default_rx_filter_enable(struct wl1271 *wl, bool enable,
 					enum rx_filter_action action)
@@ -1793,3 +1794,4 @@ out:
 	kfree(acx);
 	return ret;
 }
+#endif /* CONFIG_PM */
diff --git a/drivers/net/wireless/ti/wlcore/acx.h b/drivers/net/wireless/ti/wlcore/acx.h
index 8106b2e..e6a7486 100644
--- a/drivers/net/wireless/ti/wlcore/acx.h
+++ b/drivers/net/wireless/ti/wlcore/acx.h
@@ -1330,9 +1330,11 @@ int wl1271_acx_set_inconnection_sta(struct wl1271 *wl, u8 *addr);
 int wl1271_acx_fm_coex(struct wl1271 *wl);
 int wl12xx_acx_set_rate_mgmt_params(struct wl1271 *wl);
 int wl12xx_acx_config_hangover(struct wl1271 *wl);
+
+#ifdef CONFIG_PM
 int wl1271_acx_default_rx_filter_enable(struct wl1271 *wl, bool enable,
 					enum rx_filter_action action);
 int wl1271_acx_set_rx_filter(struct wl1271 *wl, u8 index, bool enable,
 			     struct wl12xx_rx_filter *filter);
-
+#endif /* CONFIG_PM */
 #endif /* __WL1271_ACX_H__ */
diff --git a/drivers/net/wireless/ti/wlcore/rx.c b/drivers/net/wireless/ti/wlcore/rx.c
index 1f1d948..d6a3c6b 100644
--- a/drivers/net/wireless/ti/wlcore/rx.c
+++ b/drivers/net/wireless/ti/wlcore/rx.c
@@ -279,6 +279,7 @@ void wl12xx_rx(struct wl1271 *wl, struct wl_fw_status *status)
 	wl12xx_rearm_rx_streaming(wl, active_hlids);
 }
 
+#ifdef CONFIG_PM
 int wl1271_rx_filter_enable(struct wl1271 *wl,
 			    int index, bool enable,
 			    struct wl12xx_rx_filter *filter)
@@ -314,3 +315,4 @@ void wl1271_rx_filter_clear_all(struct wl1271 *wl)
 		wl1271_rx_filter_enable(wl, i, 0, NULL);
 	}
 }
+#endif /* CONFIG_PM */
-- 
1.7.4.1

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] wlcore: fix undefined symbols when CONFIG_PM is not defined
  2012-05-29  7:15 ` [PATCH] wlcore: fix undefined symbols when CONFIG_PM is not defined Eyal Shapira
@ 2012-05-29  7:21   ` Luciano Coelho
  2012-05-29  7:54   ` Stephen Rothwell
  1 sibling, 0 replies; 5+ messages in thread
From: Luciano Coelho @ 2012-05-29  7:21 UTC (permalink / raw)
  To: Eyal Shapira, John W. Linville
  Cc: linux-wireless, linux-kernel, linux-next, Geert Uytterhoeven

On Tue, 2012-05-29 at 00:15 -0700, Eyal Shapira wrote:
> commit 5063c201d7b799d6cb36d3edfc2c2c3db3b400e5
> "wl12xx: add RX filters ACX commands" breaks the build
> when CONFIG_PM isn't defined:
> 
> ERROR: "wl1271_rx_filter_get_fields_size"
> [drivers/net/wireless/ti/wlcore/wlcore.ko] undefined!
> ERROR: "wl1271_rx_filter_flatten_fields"
> [drivers/net/wireless/ti/wlcore/wlcore.ko] undefined!
> 
> code in drivers/net/wireless/ti/wlcore/acx.c is using these
> functions unconditionally while they are #ifdefed CONFIG_PM.
> Fix it by ifdefing all relevant RX filters code with CONFIG_PM.
> 
> Reported-by: Geert Uytterhoeven <geert@linux-m68k.org>
> Signed-off-by: Eyal Shapira <eyal@wizery.com>
> ---

Acked-by: Luciano Coelho <coelho@ti.com>

Thanks, Eyal!

John, can you push this up so it gets applied for 3.5?

-- 
Cheers,
Luca.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] wlcore: fix undefined symbols when CONFIG_PM is not defined
  2012-05-29  7:15 ` [PATCH] wlcore: fix undefined symbols when CONFIG_PM is not defined Eyal Shapira
  2012-05-29  7:21   ` Luciano Coelho
@ 2012-05-29  7:54   ` Stephen Rothwell
       [not found]     ` <20120529175438.0e68273020662870497d8201-3FnU+UHB4dNDw9hX6IcOSA@public.gmane.org>
  1 sibling, 1 reply; 5+ messages in thread
From: Stephen Rothwell @ 2012-05-29  7:54 UTC (permalink / raw)
  To: Eyal Shapira
  Cc: John W. Linville, linux-wireless, linux-kernel, linux-next,
	Luciano Coelho, Geert Uytterhoeven

[-- Attachment #1: Type: text/plain, Size: 452 bytes --]

Hi Eyal,

On Tue, 29 May 2012 00:15:03 -0700 Eyal Shapira <eyal@wizery.com> wrote:
>
> commit 5063c201d7b799d6cb36d3edfc2c2c3db3b400e5
> "wl12xx: add RX filters ACX commands" breaks the build
> when CONFIG_PM isn't defined:

Just wondering what this applies to as there is no such commit (SHA1) in
linux-next.  Ah, actually this is commit c21eebb50379 in Linus' tree.

-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au

[-- Attachment #2: Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] wlcore: fix undefined symbols when CONFIG_PM is not defined
       [not found]     ` <20120529175438.0e68273020662870497d8201-3FnU+UHB4dNDw9hX6IcOSA@public.gmane.org>
@ 2012-05-29  8:16       ` Eyal Shapira
  0 siblings, 0 replies; 5+ messages in thread
From: Eyal Shapira @ 2012-05-29  8:16 UTC (permalink / raw)
  To: Stephen Rothwell
  Cc: John W. Linville, linux-wireless-u79uwXL29TY76Z2rM5mHXA,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA,
	linux-next-u79uwXL29TY76Z2rM5mHXA, Luciano Coelho,
	Geert Uytterhoeven

On 29 May 2012 00:54, Stephen Rothwell <sfr-3FnU+UHB4dNDw9hX6IcOSA@public.gmane.org> wrote:
> Hi Eyal,
>
> On Tue, 29 May 2012 00:15:03 -0700 Eyal Shapira <eyal-Ix1uc/W3ht7QT0dZR+AlfA@public.gmane.org> wrote:
>>
>> commit 5063c201d7b799d6cb36d3edfc2c2c3db3b400e5
>> "wl12xx: add RX filters ACX commands" breaks the build
>> when CONFIG_PM isn't defined:
>
> Just wondering what this applies to as there is no such commit (SHA1) in
> linux-next.  Ah, actually this is commit c21eebb50379 in Linus' tree.

Stephen - you're right. The commit I've referenced refers to Luca's repo
and not linux-next. I'll send a v2 with the correct commit.
Thanks

>
> --
> Cheers,
> Stephen Rothwell                    sfr-3FnU+UHB4dPYtjvyW6yDsg@public.gmane.org.org.au
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-05-29  8:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-28 17:54 wlcore.ko undefined symbols Geert Uytterhoeven
2012-05-29  7:15 ` [PATCH] wlcore: fix undefined symbols when CONFIG_PM is not defined Eyal Shapira
2012-05-29  7:21   ` Luciano Coelho
2012-05-29  7:54   ` Stephen Rothwell
     [not found]     ` <20120529175438.0e68273020662870497d8201-3FnU+UHB4dNDw9hX6IcOSA@public.gmane.org>
2012-05-29  8:16       ` Eyal Shapira

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).