* [PATCH] warning from agpart backend
@ 2003-09-09 22:52 Stephen Hemminger
0 siblings, 0 replies; only message in thread
From: Stephen Hemminger @ 2003-09-09 22:52 UTC (permalink / raw)
To: Dave Jones; +Cc: linux-kernel
Get rid of warning about unused function if agp is built as a module.
diff -Nru a/drivers/char/agp/backend.c b/drivers/char/agp/backend.c
--- a/drivers/char/agp/backend.c Tue Sep 9 15:50:51 2003
+++ b/drivers/char/agp/backend.c Tue Sep 9 15:50:51 2003
@@ -318,7 +318,8 @@
{
}
-static __init int agp_setup(char *s)
+#ifndef MODULE
+static int __init agp_setup(char *s)
{
if (!strcmp(s,"off"))
agp_off = 1;
@@ -327,6 +328,7 @@
return 1;
}
__setup("agp=", agp_setup);
+#endif
MODULE_AUTHOR("Dave Jones <davej@codemonkey.org.uk>");
MODULE_DESCRIPTION("AGP GART driver");
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-09-09 22:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-09 22:52 [PATCH] warning from agpart backend Stephen Hemminger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®