Browse Source

NTFS: Fix two compiler warnings on Alpha. Thanks to Andrew Morton for
reporting them.

Signed-off-by: Anton Altaparmakov <aia21@cantab.net>

Anton Altaparmakov 19 years ago
parent
commit
bb8047d354
2 changed files with 3 additions and 2 deletions
  1. 1 1
      fs/ntfs/dir.c
  2. 2 1
      fs/ntfs/file.c

+ 1 - 1
fs/ntfs/dir.c

@@ -1136,7 +1136,7 @@ static int ntfs_readdir(struct file *filp, void *dirent, filldir_t filldir)
 	if (fpos == 1) {
 	if (fpos == 1) {
 		ntfs_debug("Calling filldir for .. with len 2, fpos 0x1, "
 		ntfs_debug("Calling filldir for .. with len 2, fpos 0x1, "
 				"inode 0x%lx, DT_DIR.",
 				"inode 0x%lx, DT_DIR.",
-				parent_ino(filp->f_dentry));
+				(unsigned long)parent_ino(filp->f_dentry));
 		rc = filldir(dirent, "..", 2, fpos,
 		rc = filldir(dirent, "..", 2, fpos,
 				parent_ino(filp->f_dentry), DT_DIR);
 				parent_ino(filp->f_dentry), DT_DIR);
 		if (rc)
 		if (rc)

+ 2 - 1
fs/ntfs/file.c

@@ -943,7 +943,8 @@ rl_not_mapped_enoent:
 		}
 		}
 		ni->runlist.rl = rl;
 		ni->runlist.rl = rl;
 		status.runlist_merged = 1;
 		status.runlist_merged = 1;
-		ntfs_debug("Allocated cluster, lcn 0x%llx.", lcn);
+		ntfs_debug("Allocated cluster, lcn 0x%llx.",
+				(unsigned long long)lcn);
 		/* Map and lock the mft record and get the attribute record. */
 		/* Map and lock the mft record and get the attribute record. */
 		if (!NInoAttr(ni))
 		if (!NInoAttr(ni))
 			base_ni = ni;
 			base_ni = ni;