lkml.org 
[lkml]   [2003]   [Sep]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] warning from agpart backend
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");
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 13:48    [W:0.024 / U:0.212 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site