From: Hyunchul Lee Date: Mon, 9 Mar 2026 23:48:29 +0000 (+0900) Subject: ntfs: fix pointer/integer casting warnings X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d7bf74c94f11dedde59a16d9c94e6c1aec32e1f5;p=thirdparty%2Fkernel%2Flinux.git ntfs: fix pointer/integer casting warnings Use uintptr_t for both conversion paths to fix the warnings. Reported-by: kernel test robot Reported-by: Randy Dunlap Signed-off-by: Hyunchul Lee Signed-off-by: Namjae Jeon --- diff --git a/fs/ntfs/namei.c b/fs/ntfs/namei.c index 62c3f5733dbef..ba42c566940a6 100644 --- a/fs/ntfs/namei.c +++ b/fs/ntfs/namei.c @@ -810,7 +810,7 @@ no_hardlink: 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; @@ -990,7 +990,7 @@ search: 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); }