summaryrefslogtreecommitdiffstats
path: root/fs/notify
diff options
context:
space:
mode:
authorBen Dooks (Codethink) <ben.dooks@codethink.co.uk>2019-10-16 10:59:55 +0100
committerJan Kara <jack@suse.cz>2019-10-17 10:32:59 +0200
commitddd06c36bdb3ceed09c5fee3c8cf5ef7d1d9f6c9 (patch)
treee8fd42cbc63453090ba6c2d1cc0c06a3e5a97dbf /fs/notify
parent4a0b20be60bf387a1e4f989ff9953c0d1e0858aa (diff)
downloadlinux-ddd06c36bdb3ceed09c5fee3c8cf5ef7d1d9f6c9.tar.gz
linux-ddd06c36bdb3ceed09c5fee3c8cf5ef7d1d9f6c9.tar.bz2
linux-ddd06c36bdb3ceed09c5fee3c8cf5ef7d1d9f6c9.zip
fsnotify/fdinfo: exportfs_encode_inode_fh() takes pointer as 4th argument
The call to exportfs_encode_inode_fh() takes an pointer as the 4th argument, so replace the integer 0 with the NULL pointer. This fixes the following sparse warning: fs/notify/fdinfo.c:53:87: warning: Using plain integer as NULL pointer Link: https://lore.kernel.org/r/20191016095955.3347-1-ben.dooks@codethink.co.uk Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk> Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/notify')
-rw-r--r--fs/notify/fdinfo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/notify/fdinfo.c b/fs/notify/fdinfo.c
index 1e2bfd26b352..ef83f4020554 100644
--- a/fs/notify/fdinfo.c
+++ b/fs/notify/fdinfo.c
@@ -50,7 +50,7 @@ static void show_mark_fhandle(struct seq_file *m, struct inode *inode)
f.handle.handle_bytes = sizeof(f.pad);
size = f.handle.handle_bytes >> 2;
- ret = exportfs_encode_inode_fh(inode, (struct fid *)f.handle.f_handle, &size, 0);
+ ret = exportfs_encode_inode_fh(inode, (struct fid *)f.handle.f_handle, &size, NULL);
if ((ret == FILEID_INVALID) || (ret < 0)) {
WARN_ONCE(1, "Can't encode file handler for inotify: %d\n", ret);
return;