From: Minchan Kim Date: Tue, 5 Feb 2013 23:45:22 +0000 (+0900) Subject: zram: fix warning of print format X-Git-Tag: firefly_0821_release~3680^2~1080^2~108 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=152bce6bdd6e6866ff83166ac75177d001c4360d;p=firefly-linux-kernel-4.4.55.git zram: fix warning of print format kbuild bot whinges due to print format mistmatch caused by zram: force disksize setting before using zram. This patch fixes it. Reported-by: Wu Fengguang Signed-off-by: Minchan Kim Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/zram/zram_drv.c b/drivers/staging/zram/zram_drv.c index 85055c4fc2f2..3318b0ff8f4d 100644 --- a/drivers/staging/zram/zram_drv.c +++ b/drivers/staging/zram/zram_drv.c @@ -519,7 +519,7 @@ int zram_init_device(struct zram *zram) "ratio. Note that zram uses about 0.1%% of the size of " "the disk when not in use so a huge zram is " "wasteful.\n" - "\tMemory Size: %zu kB\n" + "\tMemory Size: %lu kB\n" "\tSize you selected: %llu kB\n" "Continuing anyway ...\n", (totalram_pages << PAGE_SHIFT) >> 10, zram->disksize >> 10