Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ntfs: fix pointer/integer casting warnings

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>

authored by

Hyunchul Lee and committed by
Namjae Jeon
d7bf74c9 e7d82353

+2 -2
+2 -2
fs/ntfs/namei.c
··· 810 810 static int ntfs_test_inode_attr(struct inode *vi, void *data) 811 811 { 812 812 struct ntfs_inode *ni = NTFS_I(vi); 813 - u64 mft_no = (u64)data; 813 + u64 mft_no = (u64)(uintptr_t)data; 814 814 815 815 if (ni->mft_no != mft_no) 816 816 return 0; ··· 990 990 struct inode *attr_vi; 991 991 992 992 while ((attr_vi = ilookup5(sb, ni->mft_no, ntfs_test_inode_attr, 993 - (void *)ni->mft_no)) != NULL) { 993 + (void *)(uintptr_t)ni->mft_no)) != NULL) { 994 994 clear_nlink(attr_vi); 995 995 iput(attr_vi); 996 996 }