linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* test12-pre5 does not compile
@ 2000-12-05 23:11 mkloppstech
  2000-12-05 23:25 ` Peter Samuelson
  0 siblings, 1 reply; 2+ messages in thread
From: mkloppstech @ 2000-12-05 23:11 UTC (permalink / raw)
  To: linux-kernel

I compile dummy.c into the kernel; make bzImage stops with:
gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe  -march=i686 -malign-functions=4     -c -o dummy.o dummy.c
dummy.c: In function `dummy_init_module':
dummy.c:103: invalid type argument of `->'
make[3]: *** [dummy.o] Error 1
make[3]: Leaving directory `/usr/src/linux-2.4.0-test12-pre5/drivers/net'
make[2]: *** [first_rule] Error 2
make[2]: Leaving directory `/usr/src/linux-2.4.0-test12-pre5/drivers/net'
make[1]: *** [_subdir_net] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.0-test12-pre5/drivers'
make: *** [_dir_drivers] Error 2

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

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

* Re: test12-pre5 does not compile
  2000-12-05 23:11 test12-pre5 does not compile mkloppstech
@ 2000-12-05 23:25 ` Peter Samuelson
  0 siblings, 0 replies; 2+ messages in thread
From: Peter Samuelson @ 2000-12-05 23:25 UTC (permalink / raw)
  To: mkloppstech; +Cc: linux-kernel

[mkloppstech@freenet.de]
> dummy.c: In function `dummy_init_module':
> dummy.c:103: invalid type argument of `->'

Known bug.  They say the fix is in Linus's patch queue.

--- include/linux/module.h~	Tue Dec  5 00:53:23 2000
+++ include/linux/module.h	Tue Dec  5 17:24:47 2000
@@ -345,7 +345,7 @@
 #endif /* MODULE */
 
 #ifdef CONFIG_MODULES
-#define SET_MODULE_OWNER(some_struct) do { some_struct->owner = THIS_MODULE; } while (0)
+#define SET_MODULE_OWNER(some_struct) do { (some_struct)->owner = THIS_MODULE; } while (0)
 #else
 #define SET_MODULE_OWNER(some_struct) do { } while (0)
 #endif
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

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

end of thread, other threads:[~2000-12-05 23:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-12-05 23:11 test12-pre5 does not compile mkloppstech
2000-12-05 23:25 ` Peter Samuelson

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