]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
fs/hugetlbfs/inode.c: add static to hugetlbfs_i_mmap_mutex_key
authorFabian Frederick <fabf@skynet.be>
Thu, 22 May 2014 00:43:24 +0000 (10:43 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 22 May 2014 00:43:24 +0000 (10:43 +1000)
hugetlbfs_i_mmap_mutex_key is only used in inode.c

Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/hugetlbfs/inode.c

index a20021fec74bba8edca3195ce6422e2c730953cf..bcc0c095b722217ba2c1ae19f731dc477c9a22cb 100644 (file)
@@ -477,7 +477,7 @@ static struct inode *hugetlbfs_get_root(struct super_block *sb,
  * annotation because huge_pmd_share() does an allocation under
  * i_mmap_mutex.
  */
-struct lock_class_key hugetlbfs_i_mmap_mutex_key;
+static struct lock_class_key hugetlbfs_i_mmap_mutex_key;
 
 static struct inode *hugetlbfs_get_inode(struct super_block *sb,
                                        struct inode *dir,