linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Stephen Hemminger <shemminger@osdl.org>
To: Dave Jones <davej@codemonkey.org.uk>
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] warning from agpart backend
Date: Tue, 9 Sep 2003 15:52:16 -0700	[thread overview]
Message-ID: <20030909155216.7d416728.shemminger@osdl.org> (raw)

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");

                 reply	other threads:[~2003-09-09 22:53 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030909155216.7d416728.shemminger@osdl.org \
    --to=shemminger@osdl.org \
    --cc=davej@codemonkey.org.uk \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).