Skip to contentSkip to conversation

CONFIG_UNIX98_PTY=n warning fix

PATCH New Yoshinori Sato 1 participant 1 message Nov 12, 2004 Char and misc drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 CONFIG_UNIX98_PTY=n warning fix

drivers/char/tty_io.c +1 -1
diff -Nru a/drivers/char/tty_io.c b/drivers/char/tty_io.c
@@ -136,6 +136,7 @@
 extern int pty_limit;		/* Config limit on Unix98 ptys */
 static DEFINE_IDR(allocated_ptys);
 static DECLARE_MUTEX(allocated_ptys_lock);
+static int ptmx_open(struct inode *, struct file *);
 #endif
 
 extern void disable_early_printk(void);
@@ -147,7 +148,6 @@
 ssize_t redirected_tty_write(struct file *, const char __user *, size_t, loff_t *);
 static unsigned int tty_poll(struct file *, poll_table *);
 static int tty_open(struct inode *, struct file *);
-static int ptmx_open(struct inode *, struct file *);
 static int tty_release(struct inode *, struct file *);
 int tty_ioctl(struct inode * inode, struct file * file,
 	      unsigned int cmd, unsigned long arg);
Signature · 2 lines
Yoshinori Sato
<[email protected]>