]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ntfs: fix pointer/integer casting warnings
authorHyunchul Lee <hyc.lee@gmail.com>
Mon, 9 Mar 2026 23:48:29 +0000 (08:48 +0900)
committerNamjae Jeon <linkinjeon@kernel.org>
Tue, 10 Mar 2026 08:46:14 +0000 (17:46 +0900)
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>
fs/ntfs/namei.c

index 62c3f5733dbef523cdec86f5aa630d9511a06cf5..ba42c566940a61e07dc1c6f421daf61b8f9925cf 100644 (file)
@@ -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);
                }