[PATCH] warning from agpart backend

From: Stephen Hemminger
Date: Tue Sep 09 2003 - 17:56:22 EST


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@xxxxxxxxxxxxxxxxx>");
MODULE_DESCRIPTION("AGP GART driver");
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/