Skip to contentSkip to conversation

UML: Make a function static

PATCH New WANG Cong 1 participant 1 message Apr 12, 2008 User-mode Linux (UML)

lore
Share & tools
lore

WANG Cong

author
#0 lore raw

PATCH 1/1 UML: Make a function static

arch/um/drivers/chan_kern.c::open_chan() can become static.

Compile testing passed.

---
 arch/um/drivers/chan_kern.c |    2 +-
 arch/um/include/chan_kern.h |    1 -
 2 files changed, 1 insertions(+), 2 deletions(-)
arch/um/drivers/chan_kern.c +1 -1
index db3082b..de22a10 100644
@@ -125,7 +125,7 @@ static int open_one_chan(struct chan *chan)
 	return 0;
 }
 
-int open_chan(struct list_head *chans)
+static int open_chan(struct list_head *chans)
 {
 	struct list_head *ele;
 	struct chan *chan;
arch/um/include/chan_kern.h +0 -1
index 624b510..de5f697 100644
@@ -31,7 +31,6 @@ extern void chan_interrupt(struct list_head *chans, struct delayed_work *task,
 			   struct tty_struct *tty, int irq);
 extern int parse_chan_pair(char *str, struct line *line, int device,
 			   const struct chan_opts *opts, char **error_out);
-extern int open_chan(struct list_head *chans);
 extern int write_chan(struct list_head *chans, const char *buf, int len,
 			     int write_irq);
 extern int console_write_chan(struct list_head *chans, const char *buf, 
Signature · 12 lines
1.5.2.4


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
User-mode-linux-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel