From patchwork Tue Jul 24 09:34:54 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 142744 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp7050494ljj; Tue, 24 Jul 2018 02:35:35 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfkDzkDCJ+sD3monc2IjiOvHUJ/AM7APwL9kdM8b4NmixhI1ovbjxH1vis+FON5uE1+fhfS X-Received: by 2002:a17:902:d218:: with SMTP id t24-v6mr16445092ply.63.1532424935121; Tue, 24 Jul 2018 02:35:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532424935; cv=none; d=google.com; s=arc-20160816; b=waoftRLvSap+Kka/PkfnLI3q3u+pZGQDDzNwNZozk0Z5t3pi4wkd/Yj3gbTYmEqs1t 2AR/F9PMT78cUeHHt/znfb2qxkUEnRPF8rbBDQlhKScsxJhpirl6ri3JzshpZf0tiAQf 0Zl8baIZG/fY/JJ2t7u6v8eoadPPvAVffG6M3UHYxkj038DLayrJzFpVDj8yghP9PPrz kjvQdTo+13zgqmNcYeP7l3NJ+bl8NFkkBzqmIH+dPjitu4OvH8/B2VecGGz1ujZKLeb8 d3x1Gz3IEz/N+nynFDBPW/nCCLYqPnpPXNJ+/eAhCYeou9o8UKfeW8dQCsLJkYdCWjUo N8pw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=3LtImx28ZvKvAQtoitc8pjK1LZtrZZss5gQoa7+J/oQ=; b=kaAqusP5ilu6nmZ/pyeeLUTf2qCneujoDCNdfcS4MfLA8jauqj0I/JvsP9VAO4YgLS Fcs5fl06HKDcIrZC8YTEkwmgrbBvSpftGeor1tEoLS6TAJxgG/suEaGSYI5WTZfOeOo4 6ZYVPBvh7Hi/SWXraeLLMAMNKAKec/hntRKj1eV4EyDTi7GyzY5bvJfWhaGziOlZIL/f 5Fa0MPO+ZS/T0zCo43VqTYFBUhBwjKCZ8CYIuGJfgOOWbRrywq3tmDi67WyUthCJLdfX /aQ70XNIXxDRKE91Ydo1g5y369TP62IUcDkNdplkcjCJRXroWworySeuqMvG8fqm4NJD oMZA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m3-v6si9913531plb.27.2018.07.24.02.35.34; Tue, 24 Jul 2018 02:35:35 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388363AbeGXKlH (ORCPT + 31 others); Tue, 24 Jul 2018 06:41:07 -0400 Received: from mout.kundenserver.de ([212.227.126.187]:38388 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726098AbeGXKlH (ORCPT ); Tue, 24 Jul 2018 06:41:07 -0400 Received: from wuerfel.lan ([109.193.40.16]) by mrelayeu.kundenserver.de (mreue006 [212.227.15.129]) with ESMTPA (Nemesis) id 0LltrB-1gHEXX1gzR-00Zf8p; Tue, 24 Jul 2018 11:35:10 +0200 From: Arnd Bergmann To: Jaegeuk Kim , Chao Yu Cc: Arnd Bergmann , Eric Biggers , Yunlei He , linux-f2fs-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org Subject: [PATCH] f2fs: fix 32-bit format string warning Date: Tue, 24 Jul 2018 11:34:54 +0200 Message-Id: <20180724093509.1637386-1-arnd@arndb.de> X-Mailer: git-send-email 2.18.0 X-Provags-ID: V03:K1:eO0/1mjkQmQYAFR7yrPQe7gfyQy116CWDBFK48rRw1gWe/8Bd+z aadV3rRcB9GRj8O023RA+rCPgtAaOF7y3CvO6UzO6ToZ6NDhLfWlSAB6gWTdYxsov9kjKaJ kdY3Popd59V/Xni2G6bYT73fE8TTBKoqJaRPBVwVN9gVdYNOiwr8dtTm97yeZ32PsdQ18tn KRY/dfivZ7Ji9Fudn+4rA== X-UI-Out-Filterresults: notjunk:1; V01:K0:f9JlQkJ5rzU=:uLZPkmQ8SqllTc6rU3peub NlWAnYenrg0k2kYUOYXfl+NcFDJynj51w3pGRO2XgHWrDRinWaormr8Lvra7MhmxKrl0Jt61G 8L/aoqCmHJGn3JdoP3wXBQ7NY28wCE6rVzt+/UrXVr2T5C/zma79X+4921dBx9biWaKsEq4Bq TV1Pzc53RcMwPGcyfvc9F/ZeT/8dJg/zoEQfGXYpP1wvNb7lV51opeFsQhLyP+i2SLg+RZ3Y1 mt3PJkVu6Oa+wWnxkQiXOYzO11QwthJbm3Y4jxvi3oqfDYnvrC3oYBF5/bLpO8Rf762mUMABR /bYqgF3+SEk5BjrB8Az/mnlRwZ7yrDA3vjlhhP8t7CzBiyNvqm2zhQTlrdQApRZNNhgT5Wt+B 8/2OLfu6E23RYOk78BhV89Tv39ws6BplggAaYCvbj+b6kSal72/42e51ELQ4LHLSy+Xn5BfwB q6qJDtff6p0G9CVNRDorovhgDqjbba5sjyM1DL1uI42z5KXhk7eDNcuUs/7+1tLOBreZLdQwL R3Bc1jSxyXQJYTAnhnr4tsQLT7f58f9iyfcGcgBeleu3j/XFY/6BNZll9j79YE8MgLU4Z8PwG nrFv1FhumAtioncOHYPBD5Ryu8SX29kwUVZ2D0AkQpWlotSX9cxcc2ehVuhHQQiUiq9HCS6SL zAkb2oJvQPe+fE/JBG12KoZ9JfOqiq3u2hodW9WHqfmW4J8HMcyT+LOpZh6O2AxQzLmQ= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 32-bit targets, size_t is often 'unsigned int', so printing it as %lu causes a warning: fs/f2fs/inode.c: In function 'sanity_check_inode': fs/f2fs/inode.c:247:4: error: format '%lu' expects argument of type 'long unsigned int', but argument 7 has type 'unsigned int' [-Werror=format=] The correct format string is %zu. Fixes: ba3a252d3367 ("f2fs: fix to do sanity check with i_extra_isize") Signed-off-by: Arnd Bergmann --- fs/f2fs/inode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.18.0 diff --git a/fs/f2fs/inode.c b/fs/f2fs/inode.c index 3fe63b0c7325..4fd339fd3ff2 100644 --- a/fs/f2fs/inode.c +++ b/fs/f2fs/inode.c @@ -245,7 +245,7 @@ static bool sanity_check_inode(struct inode *inode, struct page *node_page) set_sbi_flag(sbi, SBI_NEED_FSCK); f2fs_msg(sbi->sb, KERN_WARNING, "%s: inode (ino=%lx) has corrupted i_extra_isize: %d, " - "max: %lu", + "max: %zu", __func__, inode->i_ino, fi->i_extra_isize, F2FS_TOTAL_EXTRA_ATTR_SIZE); return false;