staging: lustre: fld: declare internal symbols as static
authorLuca Ceresoli <luca@lucaceresoli.net>
Sun, 18 Jan 2015 14:06:51 +0000 (15:06 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 25 Jan 2015 11:59:15 +0000 (19:59 +0800)
Fixes sparse warnings like:
  warning: symbol '...' was not declared. Should it be static?

Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
Cc: Peng Tao <bergwolf@gmail.com>
Cc: Jinshan Xiong <jinshan.xiong@intel.com>
Cc: Srikrishan Malik <srikrishanmalik@gmail.com>
Cc: HPDD-discuss@lists.01.org
Cc: devel@driverdev.osuosl.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/fld/fld_cache.c
drivers/staging/lustre/lustre/fld/lproc_fld.c

index 5d95d0b358b832e83599d74f1adef0fd7f9b1458..0d0a73745065ee057b851eaa6250b3ab8059c6ac 100644 (file)
@@ -257,9 +257,9 @@ void fld_cache_flush(struct fld_cache *cache)
  * entry accordingly.
  */
 
-void fld_cache_punch_hole(struct fld_cache *cache,
-                         struct fld_cache_entry *f_curr,
-                         struct fld_cache_entry *f_new)
+static void fld_cache_punch_hole(struct fld_cache *cache,
+                                struct fld_cache_entry *f_curr,
+                                struct fld_cache_entry *f_new)
 {
        const struct lu_seq_range *range = &f_new->fce_range;
        const u64 new_start  = range->lsr_start;
index 9b26bb543f0a5bae21b9ce994155506b2c6c1848..8c5a65704a37173117c01b1f4995ef5e1ac33596 100644 (file)
@@ -154,7 +154,7 @@ static int fld_proc_cache_flush_release(struct inode *inode, struct file *file)
        return 0;
 }
 
-struct file_operations fld_proc_cache_flush_fops = {
+static struct file_operations fld_proc_cache_flush_fops = {
        .owner          = THIS_MODULE,
        .open           = fld_proc_cache_flush_open,
        .write          = fld_proc_cache_flush_write,