The patch titled Subject: zram: fix printk formats in zram_drv.c has been added to the -mm tree. Its filename is zram-introduce-zram-memory-tracking-update-fix-fix-fix-fix.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/zram-introduce-zram-memory-tracking-update-fix-fix-fix-fix.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/zram-introduce-zram-memory-tracking-update-fix-fix-fix-fix.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Randy Dunlap <rdunlap@xxxxxxxxxxxxx> Subject: zram: fix printk formats in zram_drv.c Fix printk format warnings (seen on i386 build): ../drivers/block/zram/zram_drv.c:678:4: warning: format `%lu' expects argument of type `long unsigned int', but argument 4 has type `ssize_t' [-Wformat=] ../drivers/block/zram/zram_drv.c:678:4: warning: format `%lu' expects argument of type `long unsigned int', but argument 5 has type `time64_t' [-Wformat=] time64_t is 64 bits (and signed), so printing it should use %lld, not %ld. %ld (long) is only 32 bits on several architectures. Link: http://lkml.kernel.org/r/3652ccb1-96ef-0b0b-05d1-f661d7733dcc@xxxxxxxxxxxxx Signed-off-by: Randy Dunlap <rdunlap@xxxxxxxxxxxxx> Cc: Nitin Gupta <ngupta@xxxxxxxxxx> Cc: Minchan Kim <minchan@xxxxxxxxxx> Cc: Sergey Senozhatsky <sergey.senozhatsky.work@xxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/block/zram/zram_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN drivers/block/zram/zram_drv.c~zram-introduce-zram-memory-tracking-update-fix-fix-fix-fix drivers/block/zram/zram_drv.c --- a/drivers/block/zram/zram_drv.c~zram-introduce-zram-memory-tracking-update-fix-fix-fix-fix +++ a/drivers/block/zram/zram_drv.c @@ -671,7 +671,7 @@ static ssize_t read_block_state(struct f ts = ktime_to_timespec64(zram->table[index].ac_time); copied = snprintf(kbuf + written, count, - "%12zd %12lld.%06ld %c%c%c\n", + "%12zd %12lld.%06lu %c%c%c\n", index, (s64)ts.tv_sec, ts.tv_nsec / NSEC_PER_USEC, zram_test_flag(zram, index, ZRAM_SAME) ? 's' : '.', _ Patches currently in -mm which might be from rdunlap@xxxxxxxxxxxxx are zram-introduce-zram-memory-tracking-update-fix-fix-fix-fix.patch hexagon-fix-printk-format-warning-in-setupc.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