]> git.baikalelectronics.ru Git - kernel.git/commit
fsnotify/fdinfo: exportfs_encode_inode_fh() takes pointer as 4th argument
authorBen Dooks (Codethink) <ben.dooks@codethink.co.uk>
Wed, 16 Oct 2019 09:59:55 +0000 (10:59 +0100)
committerJan Kara <jack@suse.cz>
Thu, 17 Oct 2019 08:32:59 +0000 (10:32 +0200)
commited16c3675b5ae909a5fcb1f713a5c31ddfbaf283
treee8fd42cbc63453090ba6c2d1cc0c06a3e5a97dbf
parent149e8191ff5c9937e57e94a03b39aa71b0abee95
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>
fs/notify/fdinfo.c