All of lore.kernel.org
 help / color / mirror / Atom feed
From: Adrian Bunk <bunk@stusta.de>
To: adaplas@pol.net
Cc: sparclinux@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [2.6 patch] remove bogus con_is_present() prototypes
Date: Sat, 06 Jan 2007 20:48:52 +0000	[thread overview]
Message-ID: <20070106204852.GY20714@stusta.de> (raw)

Although gcc seems to accept "extern" prototypes after it has seen the
"static inline" function, that's not really correct.

Signed-off-by: Adrian Bunk <bunk@stusta.de>

---

 drivers/video/aty/atyfb_base.c |    2 --
 drivers/video/igafb.c          |    1 -
 2 files changed, 3 deletions(-)

--- linux-2.6.20-rc3-mm1/drivers/video/igafb.c.old	2007-01-06 19:45:32.000000000 +0100
+++ linux-2.6.20-rc3-mm1/drivers/video/igafb.c	2007-01-06 19:53:06.000000000 +0100
@@ -370,7 +370,6 @@
 
 int __init igafb_init(void)
 {
-        extern int con_is_present(void);
         struct fb_info *info;
         struct pci_dev *pdev;
         struct iga_par *par;
--- linux-2.6.20-rc3-mm1/drivers/video/aty/atyfb_base.c.old	2007-01-06 20:14:25.000000000 +0100
+++ linux-2.6.20-rc3-mm1/drivers/video/aty/atyfb_base.c	2007-01-06 20:14:32.000000000 +0100
@@ -2957,8 +2957,6 @@
 static int __devinit atyfb_setup_sparc(struct pci_dev *pdev,
 			struct fb_info *info, unsigned long addr)
 {
-	extern int con_is_present(void);
-
 	struct atyfb_par *par = info->par;
 	struct pcidev_cookie *pcp;
 	char prop[128];


WARNING: multiple messages have this Message-ID (diff)
From: Adrian Bunk <bunk@stusta.de>
To: adaplas@pol.net
Cc: sparclinux@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [2.6 patch] remove bogus con_is_present() prototypes
Date: Sat, 6 Jan 2007 21:48:52 +0100	[thread overview]
Message-ID: <20070106204852.GY20714@stusta.de> (raw)

Although gcc seems to accept "extern" prototypes after it has seen the
"static inline" function, that's not really correct.

Signed-off-by: Adrian Bunk <bunk@stusta.de>

---

 drivers/video/aty/atyfb_base.c |    2 --
 drivers/video/igafb.c          |    1 -
 2 files changed, 3 deletions(-)

--- linux-2.6.20-rc3-mm1/drivers/video/igafb.c.old	2007-01-06 19:45:32.000000000 +0100
+++ linux-2.6.20-rc3-mm1/drivers/video/igafb.c	2007-01-06 19:53:06.000000000 +0100
@@ -370,7 +370,6 @@
 
 int __init igafb_init(void)
 {
-        extern int con_is_present(void);
         struct fb_info *info;
         struct pci_dev *pdev;
         struct iga_par *par;
--- linux-2.6.20-rc3-mm1/drivers/video/aty/atyfb_base.c.old	2007-01-06 20:14:25.000000000 +0100
+++ linux-2.6.20-rc3-mm1/drivers/video/aty/atyfb_base.c	2007-01-06 20:14:32.000000000 +0100
@@ -2957,8 +2957,6 @@
 static int __devinit atyfb_setup_sparc(struct pci_dev *pdev,
 			struct fb_info *info, unsigned long addr)
 {
-	extern int con_is_present(void);
-
 	struct atyfb_par *par = info->par;
 	struct pcidev_cookie *pcp;
 	char prop[128];


             reply	other threads:[~2007-01-06 20:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-06 20:48 Adrian Bunk [this message]
2007-01-06 20:48 ` [2.6 patch] remove bogus con_is_present() prototypes Adrian Bunk

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=20070106204852.GY20714@stusta.de \
    --to=bunk@stusta.de \
    --cc=adaplas@pol.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sparclinux@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.