mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-09 14:50:19 +00:00
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>
This commit is contained in:
parent
4a0b20be60
commit
ddd06c36bd
@ -50,7 +50,7 @@ static void show_mark_fhandle(struct seq_file *m, struct inode *inode)
|
|||||||
f.handle.handle_bytes = sizeof(f.pad);
|
f.handle.handle_bytes = sizeof(f.pad);
|
||||||
size = f.handle.handle_bytes >> 2;
|
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)) {
|
if ((ret == FILEID_INVALID) || (ret < 0)) {
|
||||||
WARN_ONCE(1, "Can't encode file handler for inotify: %d\n", ret);
|
WARN_ONCE(1, "Can't encode file handler for inotify: %d\n", ret);
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user