Commit 922f9cfa79b52c85b6002d96cb0eefd13437c58c

Authored by Denis Cheng
Committed by Linus Torvalds
1 parent b55ab616fa

fs/char_dev.c: chrdev_open marked static and removed from fs.h

There is an outdated comment in serial_core.c also fixed.

Signed-off-by: Denis Cheng <crquan@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

Showing 3 changed files with 3 additions and 4 deletions Side-by-side Diff

drivers/serial/serial_core.c
... ... @@ -1553,8 +1553,8 @@
1553 1553 }
1554 1554  
1555 1555 /*
1556   - * In 2.4.5, calls to uart_open are serialised by the BKL in
1557   - * linux/fs/devices.c:chrdev_open()
  1556 + * calls to uart_open are serialised by the BKL in
  1557 + * fs/char_dev.c:chrdev_open()
1558 1558 * Note that if this fails, then uart_close() _will_ be called.
1559 1559 *
1560 1560 * In time, we want to scrap the "opening nonpresent ports"
... ... @@ -357,7 +357,7 @@
357 357 /*
358 358 * Called every time a character special file is opened
359 359 */
360   -int chrdev_open(struct inode * inode, struct file * filp)
  360 +static int chrdev_open(struct inode *inode, struct file *filp)
361 361 {
362 362 struct cdev *p;
363 363 struct cdev *new = NULL;
... ... @@ -1624,7 +1624,6 @@
1624 1624 const struct file_operations *);
1625 1625 extern void unregister_chrdev(unsigned int, const char *);
1626 1626 extern void unregister_chrdev_region(dev_t, unsigned);
1627   -extern int chrdev_open(struct inode *, struct file *);
1628 1627 extern void chrdev_show(struct seq_file *,off_t);
1629 1628  
1630 1629 /* fs/block_dev.c */