Messages in this thread Patch in this message | | | Date | Tue, 9 Sep 2003 15:52:16 -0700 | From | Stephen Hemminger <> | 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/
| |