All of lore.kernel.org
 help / color / mirror / Atom feed
From: Adrian Bunk <bunk@stusta.de>
To: Karsten Keil <kkeil@suse.de>
Cc: kai.germaschewski@gmx.de, isdn4linux@listserv.isdn4linux.de,
	linux-kernel@vger.kernel.org
Subject: [2.6 patch] make drivers/isdn/capi/capiutil.c:cdebbuf_alloc()
Date: Mon, 5 Mar 2007 02:48:55 +0100	[thread overview]
Message-ID: <20070305014854.GU3441@stusta.de> (raw)

This patch makes the needlessly global cdebbuf_alloc() static.

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

---

 drivers/isdn/capi/capiutil.c  |    8 +-------
 include/linux/isdn/capiutil.h |    1 -
 2 files changed, 1 insertion(+), 8 deletions(-)

--- linux-2.6.21-rc2-mm1/include/linux/isdn/capiutil.h.old	2007-03-04 20:49:17.000000000 +0100
+++ linux-2.6.21-rc2-mm1/include/linux/isdn/capiutil.h	2007-03-04 20:49:25.000000000 +0100
@@ -187,7 +187,6 @@
 #define	CDEBUG_SIZE	1024
 #define	CDEBUG_GSIZE	4096
 
-_cdebbuf *cdebbuf_alloc(void);
 void cdebbuf_free(_cdebbuf *cdb);
 int cdebug_init(void);
 void cdebug_exit(void);
--- linux-2.6.21-rc2-mm1/drivers/isdn/capi/capiutil.c.old	2007-03-04 20:49:33.000000000 +0100
+++ linux-2.6.21-rc2-mm1/drivers/isdn/capi/capiutil.c	2007-03-04 20:50:19.000000000 +0100
@@ -855,7 +855,7 @@
 static u_long g_debbuf_lock;
 static _cmsg *g_cmsg;
 
-_cdebbuf *cdebbuf_alloc(void)
+static _cdebbuf *cdebbuf_alloc(void)
 {
 	_cdebbuf *cdb;
 
@@ -989,11 +989,6 @@
 	return &g_debbuf;
 }
 
-_cdebbuf *cdebbuf_alloc(void)
-{
-	return &g_debbuf;
-}
-
 void cdebbuf_free(_cdebbuf *cdb)
 {
 }
@@ -1009,7 +1004,6 @@
 
 #endif
 
-EXPORT_SYMBOL(cdebbuf_alloc);
 EXPORT_SYMBOL(cdebbuf_free);
 EXPORT_SYMBOL(capi_cmsg2message);
 EXPORT_SYMBOL(capi_message2cmsg);


                 reply	other threads:[~2007-03-05  1:49 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=20070305014854.GU3441@stusta.de \
    --to=bunk@stusta.de \
    --cc=isdn4linux@listserv.isdn4linux.de \
    --cc=kai.germaschewski@gmx.de \
    --cc=kkeil@suse.de \
    --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 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.