]> git.karo-electronics.de Git - linux-beck.git/commitdiff
[media] rc-core: fix various sparse warnings
authorDavid Härdeman <david@hardeman.nu>
Thu, 3 Apr 2014 23:34:53 +0000 (20:34 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Fri, 25 Jul 2014 23:07:39 +0000 (20:07 -0300)
Fix various sparse warnings under drivers/media/rc/*.c, mostly
by making functions static.

Signed-off-by: David Härdeman <david@hardeman.nu>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/rc/fintek-cir.c
drivers/media/rc/imon.c
drivers/media/rc/ite-cir.c
drivers/media/rc/nuvoton-cir.c

index f000faf7340bcf74f683cc591b691e3f7edd880e..f0a1f7d31ee6578925308b9be608f762c5b37fde 100644 (file)
@@ -686,12 +686,12 @@ static struct pnp_driver fintek_driver = {
        .shutdown       = fintek_shutdown,
 };
 
-static int fintek_init(void)
+static int __init fintek_init(void)
 {
        return pnp_register_driver(&fintek_driver);
 }
 
-static void fintek_exit(void)
+static void __exit fintek_exit(void)
 {
        pnp_unregister_driver(&fintek_driver);
 }
index ac05c364f66384e7ffecb8bd49655ecf2747c7c0..7115e68ba6978d36689e96ac0d32628646fc9664 100644 (file)
@@ -78,11 +78,11 @@ static int display_open(struct inode *inode, struct file *file);
 static int display_close(struct inode *inode, struct file *file);
 
 /* VFD write operation */
-static ssize_t vfd_write(struct file *file, const char *buf,
+static ssize_t vfd_write(struct file *file, const char __user *buf,
                         size_t n_bytes, loff_t *pos);
 
 /* LCD file_operations override function prototypes */
-static ssize_t lcd_write(struct file *file, const char *buf,
+static ssize_t lcd_write(struct file *file, const char __user *buf,
                         size_t n_bytes, loff_t *pos);
 
 /*** G L O B A L S ***/
@@ -825,7 +825,7 @@ static struct attribute_group imon_rf_attr_group = {
  * than 32 bytes are provided spaces will be appended to
  * generate a full screen.
  */
-static ssize_t vfd_write(struct file *file, const char *buf,
+static ssize_t vfd_write(struct file *file, const char __user *buf,
                         size_t n_bytes, loff_t *pos)
 {
        int i;
@@ -912,7 +912,7 @@ exit:
  * display whatever diacritics you need, and so on), but it's also
  * a lot more complicated than most LCDs...
  */
-static ssize_t lcd_write(struct file *file, const char *buf,
+static ssize_t lcd_write(struct file *file, const char __user *buf,
                         size_t n_bytes, loff_t *pos)
 {
        int retval = 0;
index 32fd5f4614c835d780e34ea3f285c138d4981837..447fe35862dc2d5ad00cce91eb7fd61edaf9e4b5 100644 (file)
@@ -1709,12 +1709,12 @@ static struct pnp_driver ite_driver = {
        .shutdown       = ite_shutdown,
 };
 
-static int ite_init(void)
+static int __init ite_init(void)
 {
        return pnp_register_driver(&ite_driver);
 }
 
-static void ite_exit(void)
+static void __exit ite_exit(void)
 {
        pnp_unregister_driver(&ite_driver);
 }
index 8c6008f81332c9c09ff7056ee3a5bfb0f359942f..7f4fd859bba5795e209a2c778de94be479e3b1c8 100644 (file)
@@ -1221,12 +1221,12 @@ static struct pnp_driver nvt_driver = {
        .shutdown       = nvt_shutdown,
 };
 
-static int nvt_init(void)
+static int __init nvt_init(void)
 {
        return pnp_register_driver(&nvt_driver);
 }
 
-static void nvt_exit(void)
+static void __exit nvt_exit(void)
 {
        pnp_unregister_driver(&nvt_driver);
 }