Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[PATCH] Fixed bug in Wireless Extension Code (CONFIG_WEXT_CORE).

10 views
Skip to first unread message

mi...@mspradling.com

unread,
Nov 22, 2009, 8:50:01 PM11/22/09
to
From: Michael Spradling <mi...@mspradling.com>

When CONFIG_WEXT_CORE is not enabled and CONFIG_WEXT_PRIV is enabled
there currently is a few build errors. This is because several
functions call function call_commit_handler which is currently only
defined when CONFIG_WEXT_CORE is enabled.

Signed-off-by: Michael Spradling <mi...@mspradling.com>
---
include/net/wext.h | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/include/net/wext.h b/include/net/wext.h
index 4f6e742..773c8c6 100644
--- a/include/net/wext.h
+++ b/include/net/wext.h
@@ -24,6 +24,10 @@ static inline int compat_wext_handle_ioctl(struct net *net, unsigned int cmd,
{
return -EINVAL;
}
+static inline int call_commit_handler(struct net_device *dev)
+{
+ return -EINVAL;
+}
#endif

#ifdef CONFIG_WEXT_PROC
--
1.6.5.2


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majo...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

Johannes Berg

unread,
Nov 23, 2009, 4:50:02 AM11/23/09
to
Hi,

Please send wireless patches to the correct list (linux-wireless) in the
future.

On Sun, 2009-11-22 at 19:36 -0500, mi...@mspradling.com wrote:

> When CONFIG_WEXT_CORE is not enabled and CONFIG_WEXT_PRIV is enabled
> there currently is a few build errors.

This should never happen unless there's as bug in Kconfig, please
provide the config that creates this problem so we can fix that issue
rather than work around it. When PRIV is enabled but not CORE, this
patch may fix compilation but it doesn't fix that the configuration
makes no sense at all.

johannes

signature.asc

Michael Spradling

unread,
Nov 23, 2009, 10:50:02 AM11/23/09
to
I don't think its a Kconfig issue, see notes below. However,
I have included my config file just in case I may be wrong.

Thank you

I at first assumed there was a bug in Kconfig and looked into this.
However, I found this solution is not a hack. PRIV does not depend
on CORE. Some header files in "PRIV CODE" check and see if CORE is
defined. If it is not defined it appears to impliment dummy functions
that return an error code. All but one of these dummy functions are
implimented. This patch just implements one that was forgoten.

Michael Spradling


config

Johannes Berg

unread,
Nov 23, 2009, 11:00:01 AM11/23/09
to
On Mon, 2009-11-23 at 10:42 -0500, Michael Spradling wrote:
> I don't think its a Kconfig issue, see notes below. However,
> I have included my config file just in case I may be wrong.

You config file doesn't have _any_ wireless options set. Not even
CONFIG_NET.

johannes

signature.asc

Michael Spradling

unread,
Nov 23, 2009, 8:20:02 PM11/23/09
to
Sorry, I lost my config file and haven't been able to reproduce it.
If I come across this again I will email you directly.

--
Mike Spradling

--

Randy Dunlap

unread,
Dec 1, 2009, 12:50:03 PM12/1/09
to
Michael Spradling wrote:
> Sorry, I lost my config file and haven't been able to reproduce it.
> If I come across this again I will email you directly.


> --
> Mike Spradling
>
> On Mon, Nov 23, 2009 at 04:53:46PM +0100, Johannes Berg wrote:
>> On Mon, 2009-11-23 at 10:42 -0500, Michael Spradling wrote:
>>> I don't think its a Kconfig issue, see notes below. However,
>>> I have included my config file just in case I may be wrong.
>> You config file doesn't have _any_ wireless options set. Not even
>> CONFIG_NET.
>>
>> johannes

All of the cases that I have seen where call_commit_handler() is undefined
have been kconfig errors -- mostly in drivers/staging/.

If you do have this problem again, please be sure to send the problem
.config file.

--
~Randy

0 new messages