The patch titled FS-Cache: CacheFiles: Fix up warnings has been added to the -mm tree. Its filename is fs-cache-cachefiles-a-cache-that-backs-onto-a-mounted-filesystem-warning-fixes.patch See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: FS-Cache: CacheFiles: Fix up warnings From: David Howells <dhowells@xxxxxxxxxx> Fix up warnings in the CacheFiles patch. Signed-off-by: David Howells <dhowells@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxx> --- fs/cachefiles/cf-bind.c | 10 ++++++---- fs/cachefiles/cf-interface.c | 15 +++++++++++---- fs/cachefiles/cf-proc.c | 6 +++--- 3 files changed, 20 insertions(+), 11 deletions(-) diff -puN fs/cachefiles/cf-bind.c~fs-cache-cachefiles-a-cache-that-backs-onto-a-mounted-filesystem-warning-fixes fs/cachefiles/cf-bind.c --- a/fs/cachefiles/cf-bind.c~fs-cache-cachefiles-a-cache-that-backs-onto-a-mounted-filesystem-warning-fixes +++ a/fs/cachefiles/cf-bind.c @@ -173,7 +173,9 @@ static int cachefiles_proc_add_cache(str _debug("blksize %u (shift %u)", cache->bsize, cache->bshift); - _debug("size %llu, avail %llu", stats.f_blocks, stats.f_bavail); + _debug("size %llu, avail %llu", + (unsigned long long) stats.f_blocks, + (unsigned long long) stats.f_bavail); /* set up caching limits */ stats.f_blocks >>= cache->bshift; @@ -183,9 +185,9 @@ static int cachefiles_proc_add_cache(str cache->brun = stats.f_blocks * cache->brun_percent; _debug("limits {%llu,%llu,%llu}", - cache->brun, - cache->bcull, - cache->bstop); + (unsigned long long) cache->brun, + (unsigned long long) cache->bcull, + (unsigned long long) cache->bstop); /* get the cache directory and check its type */ cachedir = cachefiles_get_directory(cache, root, "cache"); diff -puN fs/cachefiles/cf-interface.c~fs-cache-cachefiles-a-cache-that-backs-onto-a-mounted-filesystem-warning-fixes fs/cachefiles/cf-interface.c --- a/fs/cachefiles/cf-interface.c~fs-cache-cachefiles-a-cache-that-backs-onto-a-mounted-filesystem-warning-fixes +++ a/fs/cachefiles/cf-interface.c @@ -323,7 +323,10 @@ int cachefiles_has_space(struct cachefil int ret; _enter("{%llu,%llu,%llu},%d", - cache->brun, cache->bcull, cache->bstop, nr); + (unsigned long long) cache->brun, + (unsigned long long) cache->bcull, + (unsigned long long) cache->bstop, + nr); /* find out how many pages of blockdev are available */ memset(&stats, 0, sizeof(stats)); @@ -337,7 +340,7 @@ int cachefiles_has_space(struct cachefil stats.f_bavail >>= cache->bshift; - _debug("avail %llu", stats.f_bavail); + _debug("avail %llu", (unsigned long long) stats.f_bavail); /* see if there is sufficient space */ stats.f_bavail -= nr; @@ -715,7 +718,9 @@ static int cachefiles_read_or_alloc_page block0 <<= shift; block = inode->i_mapping->a_ops->bmap(inode->i_mapping, block0); - _debug("%llx -> %llx", block0, block); + _debug("%llx -> %llx", + (unsigned long long) block0, + (unsigned long long) block); if (block) { /* submit the apparently valid page to the backing fs to be @@ -1040,7 +1045,9 @@ static int cachefiles_read_or_alloc_page block = inode->i_mapping->a_ops->bmap(inode->i_mapping, block0); - _debug("%llx -> %llx", block0, block); + _debug("%llx -> %llx", + (unsigned long long) block0, + (unsigned long long) block); if (block) { /* we have data - add it to the list to give to the diff -puN fs/cachefiles/cf-proc.c~fs-cache-cachefiles-a-cache-that-backs-onto-a-mounted-filesystem-warning-fixes fs/cachefiles/cf-proc.c --- a/fs/cachefiles/cf-proc.c~fs-cache-cachefiles-a-cache-that-backs-onto-a-mounted-filesystem-warning-fixes +++ a/fs/cachefiles/cf-proc.c @@ -162,9 +162,9 @@ static ssize_t cachefiles_proc_read(stru " bcull=%llx" " bstop=%llx", test_bit(CACHEFILES_CULLING, &cache->flags) ? '1' : '0', - cache->brun, - cache->bcull, - cache->bstop + (unsigned long long) cache->brun, + (unsigned long long) cache->bcull, + (unsigned long long) cache->bstop ); if (n > buflen) _ Patches currently in -mm which might be from dhowells@xxxxxxxxxx are git-gfs2.patch git-nfs.patch nfs-replace-null-dentries-that-appear-in-readdirs-list-2.patch nfs-fix-up-warnings.patch binfmt_elf-consistently-use-loff_t.patch afs-add-lock-annotations-to-afs_proc_cell_servers_startstop.patch elf_fdpic_core_dump-dont-take-tasklist_lock.patch reiserfs-make-sure-all-dentries-refs-are-released-before-calling-kill_block_super-try-2.patch fs-cache-provide-a-filesystem-specific-syncable-page-bit.patch fs-cache-generic-filesystem-caching-facility.patch fs-cache-release-page-private-in-failed-readahead.patch fs-cache-release-page-private-after-failed-readahead-12.patch fs-cache-make-kafs-use-fs-cache.patch fs-cache-make-kafs-use-fs-cache-fix.patch fs-cache-make-kafs-use-fs-cache-12.patch fs-cache-make-kafs-use-fs-cache-12-fix.patch fs-cache-make-kafs-use-fs-cache-vs-streamline-generic_file_-interfaces-and-filemap.patch nfs-use-local-caching.patch nfs-use-local-caching-12.patch nfs-use-local-caching-12-fix.patch fs-cache-cachefiles-ia64-missing-copy_page-export.patch fs-cache-cachefiles-a-cache-that-backs-onto-a-mounted-filesystem.patch fs-cache-cachefiles-a-cache-that-backs-onto-a-mounted-filesystem-cachefiles-printk-format-warning.patch fs-cache-cachefiles-a-cache-that-backs-onto-a-mounted-filesystem-warning-fixes.patch autofs-make-sure-all-dentries-refs-are-released-before-calling-kill_anon_super.patch vfs-destroy-the-dentries-contributed-by-a-superblock-on-unmounting.patch vfs-make-filldir_t-and-struct-kstat-deal-in-64-bit-inode-numbers.patch vfs-make-filldir_t-and-struct-kstat-deal-in-64-bit-inode-numbers-alpha-fix.patch nfs-represent-64-bit-fileids-as-64-bit-inode-numbers-on-32-bit-systems.patch ecryptfs-get_sb_dev-fix.patch reiser4-get_sb_dev-fix.patch mutex-subsystem-synchro-test-module.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html