aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390
diff options
context:
space:
mode:
authorHeiko Carstens <heiko.carstens@de.ibm.com>2013-09-06 13:10:48 -0400
committerHeiko Carstens <heiko.carstens@de.ibm.com>2013-09-07 05:58:03 -0400
commit63df41d663fc27e96571bfea86d3f9ee81289e07 (patch)
treea6d460af08dcbaf9e4e3e8d0e46678f10f836024 /drivers/s390
parent5b512beb0f18024e32e228976e3690d349b05b6a (diff)
s390: make various functions static, add declarations to header files
Make various functions static, add declarations to header files to fix a couple of sparse findings. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Diffstat (limited to 'drivers/s390')
-rw-r--r--drivers/s390/char/fs3270.c6
-rw-r--r--drivers/s390/char/tty3270.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/drivers/s390/char/fs3270.c b/drivers/s390/char/fs3270.c
index 96e52bf75930..f93cc32eb818 100644
--- a/drivers/s390/char/fs3270.c
+++ b/drivers/s390/char/fs3270.c
@@ -524,20 +524,20 @@ static const struct file_operations fs3270_fops = {
524 .llseek = no_llseek, 524 .llseek = no_llseek,
525}; 525};
526 526
527void fs3270_create_cb(int minor) 527static void fs3270_create_cb(int minor)
528{ 528{
529 __register_chrdev(IBM_FS3270_MAJOR, minor, 1, "tub", &fs3270_fops); 529 __register_chrdev(IBM_FS3270_MAJOR, minor, 1, "tub", &fs3270_fops);
530 device_create(class3270, NULL, MKDEV(IBM_FS3270_MAJOR, minor), 530 device_create(class3270, NULL, MKDEV(IBM_FS3270_MAJOR, minor),
531 NULL, "3270/tub%d", minor); 531 NULL, "3270/tub%d", minor);
532} 532}
533 533
534void fs3270_destroy_cb(int minor) 534static void fs3270_destroy_cb(int minor)
535{ 535{
536 device_destroy(class3270, MKDEV(IBM_FS3270_MAJOR, minor)); 536 device_destroy(class3270, MKDEV(IBM_FS3270_MAJOR, minor));
537 __unregister_chrdev(IBM_FS3270_MAJOR, minor, 1, "tub"); 537 __unregister_chrdev(IBM_FS3270_MAJOR, minor, 1, "tub");
538} 538}
539 539
540struct raw3270_notifier fs3270_notifier = 540static struct raw3270_notifier fs3270_notifier =
541{ 541{
542 .create = fs3270_create_cb, 542 .create = fs3270_create_cb,
543 .destroy = fs3270_destroy_cb, 543 .destroy = fs3270_destroy_cb,
diff --git a/drivers/s390/char/tty3270.c b/drivers/s390/char/tty3270.c
index cee69dac3e18..a0f47c83fd62 100644
--- a/drivers/s390/char/tty3270.c
+++ b/drivers/s390/char/tty3270.c
@@ -1845,17 +1845,17 @@ static const struct tty_operations tty3270_ops = {
1845 .set_termios = tty3270_set_termios 1845 .set_termios = tty3270_set_termios
1846}; 1846};
1847 1847
1848void tty3270_create_cb(int minor) 1848static void tty3270_create_cb(int minor)
1849{ 1849{
1850 tty_register_device(tty3270_driver, minor - RAW3270_FIRSTMINOR, NULL); 1850 tty_register_device(tty3270_driver, minor - RAW3270_FIRSTMINOR, NULL);
1851} 1851}
1852 1852
1853void tty3270_destroy_cb(int minor) 1853static void tty3270_destroy_cb(int minor)
1854{ 1854{
1855 tty_unregister_device(tty3270_driver, minor - RAW3270_FIRSTMINOR); 1855 tty_unregister_device(tty3270_driver, minor - RAW3270_FIRSTMINOR);
1856} 1856}
1857 1857
1858struct raw3270_notifier tty3270_notifier = 1858static struct raw3270_notifier tty3270_notifier =
1859{ 1859{
1860 .create = tty3270_create_cb, 1860 .create = tty3270_create_cb,
1861 .destroy = tty3270_destroy_cb, 1861 .destroy = tty3270_destroy_cb,