diff options
author | 2013-09-06 19:10:48 +0200 | |
---|---|---|
committer | 2013-09-07 11:58:03 +0200 | |
commit | 63df41d663fc27e96571bfea86d3f9ee81289e07 (patch) | |
tree | a6d460af08dcbaf9e4e3e8d0e46678f10f836024 /drivers/s390/char/fs3270.c | |
parent | s390/compat signal: add couple of __force annotations (diff) | |
download | linux-63df41d663fc27e96571bfea86d3f9ee81289e07.tar.gz linux-63df41d663fc27e96571bfea86d3f9ee81289e07.tar.bz2 linux-63df41d663fc27e96571bfea86d3f9ee81289e07.zip |
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/char/fs3270.c')
-rw-r--r-- | drivers/s390/char/fs3270.c | 6 |
1 files changed, 3 insertions, 3 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 = { .llseek = no_llseek, }; -void fs3270_create_cb(int minor) +static void fs3270_create_cb(int minor) { __register_chrdev(IBM_FS3270_MAJOR, minor, 1, "tub", &fs3270_fops); device_create(class3270, NULL, MKDEV(IBM_FS3270_MAJOR, minor), NULL, "3270/tub%d", minor); } -void fs3270_destroy_cb(int minor) +static void fs3270_destroy_cb(int minor) { device_destroy(class3270, MKDEV(IBM_FS3270_MAJOR, minor)); __unregister_chrdev(IBM_FS3270_MAJOR, minor, 1, "tub"); } -struct raw3270_notifier fs3270_notifier = +static struct raw3270_notifier fs3270_notifier = { .create = fs3270_create_cb, .destroy = fs3270_destroy_cb, |