From: H Hartley Sweeten Date: Tue, 18 Oct 2011 15:01:51 +0000 (-0400) Subject: ext4: quiet sparse noise about plain integer as NULL pointer X-Git-Tag: MMI-PSA29.97-13-9~18150^2~42 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ee90d57e20bd4749dda3b14397392b18b89dc3ef;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git ext4: quiet sparse noise about plain integer as NULL pointer The third parameter to ext4_free_blocks is a struct buffer_head *. This parameter should be NULL not 0. This quiets the sparse noise: warning: Using plain integer as NULL pointer Signed-off-by: H Hartley Sweeten Signed-off-by: "Theodore Ts'o" --- diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c index 5c4861210d4c..2fc6cc0a51ca 100644 --- a/fs/ext4/extents.c +++ b/fs/ext4/extents.c @@ -2291,7 +2291,7 @@ static int ext4_remove_blocks(handle_t *handle, struct inode *inode, start = ext4_ext_pblock(ex); ext_debug("free first %u blocks starting %llu\n", num, start); - ext4_free_blocks(handle, inode, 0, start, num, flags); + ext4_free_blocks(handle, inode, NULL, start, num, flags); } else { printk(KERN_INFO "strange request: removal(2) "