summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorZheng Liu <wenqing.lz@taobao.com>2013-03-02 17:24:05 -0500
committerTheodore Ts'o <tytso@mit.edu>2013-03-02 17:24:05 -0500
commitd4e439549127d3ca544482551f5f1af4f114debd (patch)
treeb0c16bce8e6b6273cedf0df32ad7ceea85053060 /fs
parent810da240f221d64bf90020f25941b05b378186fe (diff)
downloadtalos-obmc-linux-d4e439549127d3ca544482551f5f1af4f114debd.tar.gz
talos-obmc-linux-d4e439549127d3ca544482551f5f1af4f114debd.zip
ext4: fix a warning from sparse check for ext4_dir_llseek
ext4_dir_llseek is only used as a callback function, and no one calls it directly. So make it as a static function in order to remove a warning message from sparse check. Signed-off-by: Zheng Liu <wenqing.lz@taobao.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs')
-rw-r--r--fs/ext4/dir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/dir.c b/fs/ext4/dir.c
index 3882fbc5e215..b8eeaf15b034 100644
--- a/fs/ext4/dir.c
+++ b/fs/ext4/dir.c
@@ -334,7 +334,7 @@ static inline loff_t ext4_get_htree_eof(struct file *filp)
*
* For non-htree, ext4_llseek already chooses the proper max offset.
*/
-loff_t ext4_dir_llseek(struct file *file, loff_t offset, int whence)
+static loff_t ext4_dir_llseek(struct file *file, loff_t offset, int whence)
{
struct inode *inode = file->f_mapping->host;
int dx_dir = is_dx_dir(inode);
OpenPOWER on IntegriCloud