Skip to content

Commit 8907547

Browse files
Randy DunlapAntonAltaparmakov
authored andcommitted
NTFS: Fix printk format warnings on ia64. (Randy Dunlap)
Signed-off-by: Randy Dunlap <rddunlap@osdl.org> Signed-off-by: Anton Altaparmakov <aia21@cantab.net>
1 parent 5ae9fcf commit 8907547

6 files changed

Lines changed: 20 additions & 15 deletions

File tree

‎fs/ntfs/ChangeLog‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ ToDo/Notes:
2929
compiled without debug. This avoids a possible denial of service
3030
attack. Thanks to Carl-Daniel Hailfinger from SuSE for pointing this
3131
out.
32+
- Fix compilation warnings on ia64. (Randy Dunlap)
3233
- Use i_size_read() in fs/ntfs/attrib.c::ntfs_attr_set().
3334
- Use i_size_read() in fs/ntfs/logfile.c::ntfs_{check,empty}_logfile().
3435
- Use i_size_read() once and then use the cached value in

‎fs/ntfs/aops.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -965,7 +965,8 @@ static int ntfs_write_mst_block(struct page *page,
965965
"attribute type 0x%x) because "
966966
"its location on disk could "
967967
"not be determined (error "
968-
"code %lli).", (s64)block <<
968+
"code %lli).",
969+
(long long)block <<
969970
bh_size_bits >>
970971
vol->mft_record_size_bits,
971972
ni->mft_no, ni->type,

‎fs/ntfs/debug.c‎

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -164,14 +164,17 @@ void ntfs_debug_dump_runlist(const runlist_element *rl)
164164
if (index > -LCN_ENOENT - 1)
165165
index = 3;
166166
printk(KERN_DEBUG "%-16Lx %s %-16Lx%s\n",
167-
(rl + i)->vcn, lcn_str[index],
168-
(rl + i)->length, (rl + i)->length ?
169-
"" : " (runlist end)");
167+
(long long)(rl + i)->vcn, lcn_str[index],
168+
(long long)(rl + i)->length,
169+
(rl + i)->length ? "" :
170+
" (runlist end)");
170171
} else
171172
printk(KERN_DEBUG "%-16Lx %-16Lx %-16Lx%s\n",
172-
(rl + i)->vcn, (rl + i)->lcn,
173-
(rl + i)->length, (rl + i)->length ?
174-
"" : " (runlist end)");
173+
(long long)(rl + i)->vcn,
174+
(long long)(rl + i)->lcn,
175+
(long long)(rl + i)->length,
176+
(rl + i)->length ? "" :
177+
" (runlist end)");
175178
if (!(rl + i)->length)
176179
break;
177180
}

‎fs/ntfs/inode.c‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2518,27 +2518,27 @@ int ntfs_write_inode(struct inode *vi, int sync)
25182518
nt = utc2ntfs(vi->i_mtime);
25192519
if (si->last_data_change_time != nt) {
25202520
ntfs_debug("Updating mtime for inode 0x%lx: old = 0x%llx, "
2521-
"new = 0x%llx", vi->i_ino,
2521+
"new = 0x%llx", vi->i_ino, (long long)
25222522
sle64_to_cpu(si->last_data_change_time),
2523-
sle64_to_cpu(nt));
2523+
(long long)sle64_to_cpu(nt));
25242524
si->last_data_change_time = nt;
25252525
modified = TRUE;
25262526
}
25272527
nt = utc2ntfs(vi->i_ctime);
25282528
if (si->last_mft_change_time != nt) {
25292529
ntfs_debug("Updating ctime for inode 0x%lx: old = 0x%llx, "
2530-
"new = 0x%llx", vi->i_ino,
2530+
"new = 0x%llx", vi->i_ino, (long long)
25312531
sle64_to_cpu(si->last_mft_change_time),
2532-
sle64_to_cpu(nt));
2532+
(long long)sle64_to_cpu(nt));
25332533
si->last_mft_change_time = nt;
25342534
modified = TRUE;
25352535
}
25362536
nt = utc2ntfs(vi->i_atime);
25372537
if (si->last_access_time != nt) {
25382538
ntfs_debug("Updating atime for inode 0x%lx: old = 0x%llx, "
25392539
"new = 0x%llx", vi->i_ino,
2540-
sle64_to_cpu(si->last_access_time),
2541-
sle64_to_cpu(nt));
2540+
(long long)sle64_to_cpu(si->last_access_time),
2541+
(long long)sle64_to_cpu(nt));
25422542
si->last_access_time = nt;
25432543
modified = TRUE;
25442544
}

‎fs/ntfs/lcnalloc.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -763,7 +763,7 @@ switch_to_data1_zone: search_zone = 2;
763763
"could allocate up to 0x%llx "
764764
"clusters.",
765765
(unsigned long long)rl[0].lcn,
766-
(unsigned long long)count - clusters);
766+
(unsigned long long)(count - clusters));
767767
/* Deallocate all allocated clusters. */
768768
ntfs_debug("Attempting rollback...");
769769
err2 = ntfs_cluster_free_from_rl_nolock(vol, rl);

‎fs/ntfs/mft.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1802,7 +1802,7 @@ static int ntfs_mft_data_extend_allocation_nolock(ntfs_volume *vol)
18021802
return PTR_ERR(rl);
18031803
}
18041804
mft_ni->runlist.rl = rl;
1805-
ntfs_debug("Allocated %lli clusters.", nr);
1805+
ntfs_debug("Allocated %lli clusters.", (long long)nr);
18061806
/* Find the last run in the new runlist. */
18071807
for (; rl[1].length; rl++)
18081808
;

0 commit comments

Comments
 (0)