Skip to content

Commit c036061

Browse files
YueHaibingtyhicks
authored andcommitted
ecryptfs: Make ecryptfs_xattr_handler static
Fix sparse warning: fs/ecryptfs/inode.c:1138:28: warning: symbol 'ecryptfs_xattr_handler' was not declared. Should it be static? Reported-by: Hulk Robot <[email protected]> Signed-off-by: YueHaibing <[email protected]> Signed-off-by: Tyler Hicks <[email protected]>
1 parent 29a51df commit c036061

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/ecryptfs/inode.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1135,7 +1135,7 @@ static int ecryptfs_xattr_set(const struct xattr_handler *handler,
11351135
}
11361136
}
11371137

1138-
const struct xattr_handler ecryptfs_xattr_handler = {
1138+
static const struct xattr_handler ecryptfs_xattr_handler = {
11391139
.prefix = "", /* match anything */
11401140
.get = ecryptfs_xattr_get,
11411141
.set = ecryptfs_xattr_set,

0 commit comments

Comments
 (0)