[linux-yocto] [PATCH 22/23] fs/hugetlbfs/inode.c: use static const for dentry_operations
Yang Shi
yang.shi at windriver.com
Wed Jul 30 19:16:26 PDT 2014
From: Fabian Frederick <fabf at skynet.be>
commit be1d2cf5e36b1de3c8e17428885dcad4ca929886 upstream
...like other filesystems.
Signed-off-by: Fabian Frederick <fabf at skynet.be>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
Signed-off-by: Yang Shi <yang.shi at windriver.com>
---
fs/hugetlbfs/inode.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/hugetlbfs/inode.c b/fs/hugetlbfs/inode.c
index b242759..cc81d25 100644
--- a/fs/hugetlbfs/inode.c
+++ b/fs/hugetlbfs/inode.c
@@ -938,7 +938,7 @@ static int get_hstate_idx(int page_size_log)
return h - hstates;
}
-static struct dentry_operations anon_ops = {
+static const struct dentry_operations anon_ops = {
.d_dname = simple_dname
};
--
2.0.2
More information about the linux-yocto
mailing list