Re: [patch] 2.5.69-bk7: wireless.c must include module.h

Jean Tourrilhes (jt@bougret.hpl.hp.com)
Mon, 12 May 2003 15:24:16 -0700


On Tue, May 13, 2003 at 12:05:12AM +0200, Adrian Bunk wrote:
> <-- snip -->
>
> ...
> gcc -Wp,-MD,net/core/.wireless.o.d -D__KERNEL__ -Iinclude -Wall
> -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
> -pipe -mpreferred-stack-boundary=2 -march=k6
> -Iinclude/asm-i386/mach-default -nostdinc -iwithprefix include
> -DKBUILD_BASENAME=wireless -DKBUILD_MODNAME=wireless -c -o
> net/core/wireless.o net/core/wireless.c
> net/core/wireless.c:488: `THIS_MODULE' undeclared here (not in a function)
> net/core/wireless.c:488: initializer element is not constant
> net/core/wireless.c:488: (near initialization for `wireless_seq_fops.owner')
> make[2]: *** [net/core/wireless.o] Error 1
>
> <-- snip -->
>
>
> The fix is simple:
>
> --- linux-2.5.69-bk7/net/core/wireless.c.old 2003-05-13 00:02:06.000000000 +0200
> +++ linux-2.5.69-bk7/net/core/wireless.c 2003-05-13 00:02:42.000000000 +0200
> @@ -60,6 +60,7 @@
> #include <linux/seq_file.h>
> #include <linux/init.h> /* for __init */
> #include <linux/if_arp.h> /* ARPHRD_ETHER */
> +#include <linux/module.h>
>
> #include <linux/wireless.h> /* Pretty obvious */
> #include <net/iw_handler.h> /* New driver API */
>
>
>
> cu
> Adrian

I still managed to beat you by a few minute ;-)
http://marc.theaimsgroup.com/?l=linux-kernel&m=105276406917601&w=2

Thanks !

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