Skip to contentSkip to conversation

make drivers/isdn/capi/capiutil.c:cdebbuf_alloc()

PATCH New Adrian Bunk 1 participant 1 message Mar 5, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 make drivers/isdn/capi/capiutil.c:cdebbuf_alloc()

This patch makes the needlessly global cdebbuf_alloc() static.

---

 drivers/isdn/capi/capiutil.c  |    8 +-------
 include/linux/isdn/capiutil.h |    1 -
 2 files changed, 1 insertion(+), 8 deletions(-)
include/linux/isdn/capiutil.h renamed from include/linux/isdn/capiutil.h.old +0 -1
@@ -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);
drivers/isdn/capi/capiutil.c renamed from drivers/isdn/capi/capiutil.c.old +1 -7
@@ -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);