Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp4336714pxv; Tue, 29 Jun 2021 04:50:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz9bnJQcxChG04nRG5YmDseGFeFPyDQPkT6SsuGkqXYwFeehr74JoAS1G5ypbkQwebjD+Oo X-Received: by 2002:a92:2c0a:: with SMTP id t10mr22498902ile.25.1624967438341; Tue, 29 Jun 2021 04:50:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624967438; cv=none; d=google.com; s=arc-20160816; b=nIm9a0b6IWWdBqaN/oZRAZp4vHAaDA6vddc/VzLNlrrAJe9BmP4MIz3b8r2P3w1Lfa DDJA7x9IgrbUYbng7WKtOSWBvIqNVnaD0lzPrX/ZcWemJym39r8NR32w+EZ9rUFby1KI O75QOkZuPR55Q7J5/OEZCzherdUpRQTxwShU6thMlQezAtwnE5vrCEZMCyWnoH/wNxtT mzFFQGJH6LWGnmXLGTqMzUfFOB4LAzdn67x56ctOfIoOuzSVL4LBW6PvdVQ/FiyUY/8S WyX5Hu9xRJmTVJzMMwXPzVmSOean68No9/zlj64C9TG5q3vO8IltVEFuk/L1YRmXTspL Znqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=i5BiKvPgNiWz/Ao6KvIIQtZlhoGQV5DdSilInfAxGEc=; b=UVJ7V3kdkKnWjFcRl2xWNH6gnZbhHvV2DcfRKvDXUeGfpl7uv47/U5jG8O2OWT9/Rv g7qDPQn5G5trL6tVNnMx7EX9KEzW3sx0Nv8wtgnm9mMYFUdNEYVR6WepGyNAKhL2Cf+U ht4JJrSVhtqe9pATdo4HiW0oUyWFTNXssaSy5/cHS0NDAlxPHj6cusHV0HKPf2prNh8f 6BaQrqBQ1k8uQtKwr+gcNhmGRbCNhZZQssYw5+IUj4mYwMQAM95JVK3lS/twjF2az1sx F7QGCxXseks11GogGSDRDqHCOSPDKvccR+NtMH11XR/iHMHIaeay8bGgutwHSqrEQLCR Qd+w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d16si17243666iop.94.2021.06.29.04.50.26; Tue, 29 Jun 2021 04:50:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232883AbhF2Kjf (ORCPT + 99 others); Tue, 29 Jun 2021 06:39:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50040 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231956AbhF2Kje (ORCPT ); Tue, 29 Jun 2021 06:39:34 -0400 Received: from andre.telenet-ops.be (andre.telenet-ops.be [IPv6:2a02:1800:120:4::f00:15]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 39959C061574 for ; Tue, 29 Jun 2021 03:37:06 -0700 (PDT) Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed20:7d95:f75f:5ece:4663]) by andre.telenet-ops.be with bizsmtp id Nyd22500E4F6zkK01yd2d6; Tue, 29 Jun 2021 12:37:02 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1lyB6z-004qjN-Qv; Tue, 29 Jun 2021 12:37:01 +0200 Received: from geert by rox.of.borg with local (Exim 4.93) (envelope-from ) id 1lyB6z-0087TX-Cy; Tue, 29 Jun 2021 12:37:01 +0200 From: Geert Uytterhoeven To: Kees Cook , Anton Vorontsov , Colin Cross , Tony Luck Cc: linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH] pstore/blk: Use "%lu" to format unsigned long Date: Tue, 29 Jun 2021 12:37:00 +0200 Message-Id: <20210629103700.1935012-1-geert@linux-m68k.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 32-bit: fs/pstore/blk.c: In function ‘__best_effort_init’: include/linux/kern_levels.h:5:18: warning: format ‘%zu’ expects argument of type ‘size_t’, but argument 3 has type ‘long unsigned int’ [-Wformat=] 5 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:14:19: note: in expansion of macro ‘KERN_SOH’ 14 | #define KERN_INFO KERN_SOH "6" /* informational */ | ^~~~~~~~ include/linux/printk.h:373:9: note: in expansion of macro ‘KERN_INFO’ 373 | printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~ fs/pstore/blk.c:314:3: note: in expansion of macro ‘pr_info’ 314 | pr_info("attached %s (%zu) (no dedicated panic_write!)\n", | ^~~~~~~ Fixes: 7bb9557b48fcabaa ("pstore/blk: Use the normal block device I/O path") Signed-off-by: Geert Uytterhoeven --- fs/pstore/blk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/pstore/blk.c b/fs/pstore/blk.c index 04ce58c939a0ba15..6093088de49fd161 100644 --- a/fs/pstore/blk.c +++ b/fs/pstore/blk.c @@ -311,7 +311,7 @@ static int __init __best_effort_init(void) if (ret) kfree(best_effort_dev); else - pr_info("attached %s (%zu) (no dedicated panic_write!)\n", + pr_info("attached %s (%lu) (no dedicated panic_write!)\n", blkdev, best_effort_dev->zone.total_size); return ret; -- 2.25.1