Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Zheng Liu and committed by
Theodore Ts'o
d4e43954 810da240

+1 -1
+1 -1
fs/ext4/dir.c
··· 334 334 * 335 335 * For non-htree, ext4_llseek already chooses the proper max offset. 336 336 */ 337 - loff_t ext4_dir_llseek(struct file *file, loff_t offset, int whence) 337 + static loff_t ext4_dir_llseek(struct file *file, loff_t offset, int whence) 338 338 { 339 339 struct inode *inode = file->f_mapping->host; 340 340 int dx_dir = is_dx_dir(inode);