Skip to contentSkip to conversation

warning from agpart backend

PATCH New Stephen Hemminger 1 participant 1 message Sep 9, 2003 Agpgart driver

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 warning from agpart backend

Get rid of warning about unused function if agp is built as a module.

drivers/char/agp/backend.c +3 -1
diff -Nru a/drivers/char/agp/backend.c b/drivers/char/agp/backend.c
@@ -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 <[email protected]>");
 MODULE_DESCRIPTION("AGP GART driver");