linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: [patch] 2.5.69-bk7: wireless.c must include module.h
  2003-05-12 22:05 [patch] 2.5.69-bk7: wireless.c must include module.h Adrian Bunk
@ 2003-05-12 21:12 ` David S. Miller
  2003-05-12 22:24 ` Jean Tourrilhes
  1 sibling, 0 replies; 3+ messages in thread
From: David S. Miller @ 2003-05-12 21:12 UTC (permalink / raw)
  To: bunk; +Cc: yoshfuji, jt, linux-kernel


Applied, thanks.

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

* [patch] 2.5.69-bk7: wireless.c must include module.h
@ 2003-05-12 22:05 Adrian Bunk
  2003-05-12 21:12 ` David S. Miller
  2003-05-12 22:24 ` Jean Tourrilhes
  0 siblings, 2 replies; 3+ messages in thread
From: Adrian Bunk @ 2003-05-12 22:05 UTC (permalink / raw)
  To: yoshfuji; +Cc: David S. Miller, jt, linux-kernel

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

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed


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

* Re: [patch] 2.5.69-bk7: wireless.c must include module.h
  2003-05-12 22:05 [patch] 2.5.69-bk7: wireless.c must include module.h Adrian Bunk
  2003-05-12 21:12 ` David S. Miller
@ 2003-05-12 22:24 ` Jean Tourrilhes
  1 sibling, 0 replies; 3+ messages in thread
From: Jean Tourrilhes @ 2003-05-12 22:24 UTC (permalink / raw)
  To: Adrian Bunk; +Cc: yoshfuji, David S. Miller, linux-kernel

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

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

end of thread, other threads:[~2003-05-12 22:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-12 22:05 [patch] 2.5.69-bk7: wireless.c must include module.h Adrian Bunk
2003-05-12 21:12 ` David S. Miller
2003-05-12 22:24 ` Jean Tourrilhes

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