[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <9bb02ed75e099a2bba8fb53069b955cfe60ce622.1480487321.git.geliangtang@gmail.com>
Date: Fri, 9 Dec 2016 22:27:58 +0800
From: Geliang Tang <geliangtang@...il.com>
To: Tyler Hicks <tyhicks@...onical.com>
Cc: Geliang Tang <geliangtang@...il.com>, ecryptfs@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: [PATCH] ecryptfs: fix non static symbol warning
Fixes sparse warning:
fs/ecryptfs/inode.c:1142:28: warning: symbol 'ecryptfs_xattr_handler'
was not declared. Should it be static?
Signed-off-by: Geliang Tang <geliangtang@...il.com>
---
fs/ecryptfs/inode.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/ecryptfs/inode.c b/fs/ecryptfs/inode.c
index cf390dc..a483ca1 100644
--- a/fs/ecryptfs/inode.c
+++ b/fs/ecryptfs/inode.c
@@ -1139,7 +1139,7 @@ static int ecryptfs_xattr_set(const struct xattr_handler *handler,
}
}
-const struct xattr_handler ecryptfs_xattr_handler = {
+static const struct xattr_handler ecryptfs_xattr_handler = {
.prefix = "", /* match anything */
.get = ecryptfs_xattr_get,
.set = ecryptfs_xattr_set,
--
2.9.3
Powered by blists - more mailing lists