Use uintptr_t for both conversion paths to fix the warnings.
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Hyunchul Lee <hyc.lee@gmail.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
static int ntfs_test_inode_attr(struct inode *vi, void *data)
{
struct ntfs_inode *ni = NTFS_I(vi);
- u64 mft_no = (u64)data;
+ u64 mft_no = (u64)(uintptr_t)data;
if (ni->mft_no != mft_no)
return 0;
struct inode *attr_vi;
while ((attr_vi = ilookup5(sb, ni->mft_no, ntfs_test_inode_attr,
- (void *)ni->mft_no)) != NULL) {
+ (void *)(uintptr_t)ni->mft_no)) != NULL) {
clear_nlink(attr_vi);
iput(attr_vi);
}