From d7bf74c94f11dedde59a16d9c94e6c1aec32e1f5 Mon Sep 17 00:00:00 2001 From: Hyunchul Lee Date: Tue, 10 Mar 2026 08:48:29 +0900 Subject: [PATCH] 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 --- fs/ntfs/namei.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } -- 2.47.3