Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp4757531pxv; Tue, 29 Jun 2021 15:05:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzvHdenxCHlAwY9loRww9iogyh0AJHchhCV/Hmlv1bZdXaE+7xqtthvrMT48wqaCnqfo+sX X-Received: by 2002:a17:907:d28:: with SMTP id gn40mr32358712ejc.471.1625004312045; Tue, 29 Jun 2021 15:05:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625004312; cv=none; d=google.com; s=arc-20160816; b=iY8rJ6XVDbTyppUTdFO8bXu/TnJKfXlkeANFR6/SxAMRJONEagbO7xmvsYdDOPRYWW SE8x32JBCUCGyex6FNizUy5FGht5Nc27M8G0djnvMv90CGvi8zumJcYzOdQxLIOkgGVE usRfgepWNKm+Ci/d+HVEUJ423POilhBoXzrHd42ObB0cqvkoZuzK0M8k563551l4VFTj fvU0gFETWta6pMfHVhTaFyJU9voaP79/fiffKh0SqK2Rd32wY1sn/RdVsp6bJnmotJ6J XpDVMH6FybW2FPpTc5M57E6RG+VYYyGgx13QfgF1jS42frR69ghdZEk9eR6efB81J3qf Uowg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=5CQKl2nOiLj7iB7PvW8apbqcaJ0I34gpqE979p9aCvc=; b=N1AQ4eJ7xvEPUMjXAQQeRU9CpwUnho4Zft2nfBBnf2zVH2tM9oT9WXoIkew+nO5ACQ v4cidGZk3CiqqQ6ZG6yHXk8Ek8KzYuB/5qzFDq1R7QbtWkIb/edqe2NeCH2vg2ckMw6L aZfyzCREgoHREXBswYZXw3n12cjlQ6Z7Uc1yY4D5YAS1CSGilIUOdUhX0QWW780hlI3w 8b3du8KxeSeinm2LsRe38G31Fvipam9hx2rrrU4SG2Vsh0etH88691sP0BnHb2SQOL5P 5Mb8Y9TdBGV15dTKpJcMiXu6sn0RJbixbVeLsBlmngB9+kMVm8ZujhGlQUfLgRTOztzS xpcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=M1fjCNOz; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id kq6si4365559ejb.725.2021.06.29.15.04.42; Tue, 29 Jun 2021 15:05:12 -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; dkim=pass header.i=@chromium.org header.s=google header.b=M1fjCNOz; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235910AbhF2VOw (ORCPT + 99 others); Tue, 29 Jun 2021 17:14:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51372 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235884AbhF2VOq (ORCPT ); Tue, 29 Jun 2021 17:14:46 -0400 Received: from mail-pl1-x62e.google.com (mail-pl1-x62e.google.com [IPv6:2607:f8b0:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A7C0EC061760 for ; Tue, 29 Jun 2021 14:12:15 -0700 (PDT) Received: by mail-pl1-x62e.google.com with SMTP id h1so265700plt.1 for ; Tue, 29 Jun 2021 14:12:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=5CQKl2nOiLj7iB7PvW8apbqcaJ0I34gpqE979p9aCvc=; b=M1fjCNOzM/QykgJpMvFHfw112G8WsR7CeMml1KfwiD6w+DZpyQksoQ3ZYMtjO32xi7 DUpUKLomfwLKwsJrKrFhw9nj/KsH78gMFUoBKSk6D1BfT1EvIXePHLuzqb9599QWWU+F oO/O7sbpBC9QWRMnPz4GvD2xBdGHStCNOCO/c= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=5CQKl2nOiLj7iB7PvW8apbqcaJ0I34gpqE979p9aCvc=; b=ORmKdMIP80cqWSkvbzYTeAv+3LemDyHaceWIas52ym8X/YvxifcoOQlgjnK3zK/KvW ijO+xaly4F+dKHRTgdKDRnIk3GVL3/OpsPumOuahxqZnN80bIbZBUNaR8/0mpwG8HMQQ 1eeN13ONOfcBk4iSeEpl2NgXHvxJTqQ+jTV14qqDEtAwOAORzmTKKkK5Yo6/WTv7KeCL R2wXRDRPVPGE1Ip+yOFm58HGHbtYT9BVzXgzUE0Ali8ex6se32zNmf5PNdBAvLj3v0TB xeKMt9L0GsJKIXlzwxL7lBnPp6csHKAiRTzQhiWEbGSRMML3Uv6BwU1ByIHdfFjlNVe6 AjxQ== X-Gm-Message-State: AOAM530/HiDzKuDpit1Qzt0+hAogOoFnesuLBjCQtTZQbr6BSAixd71i K44SbZeDPmFk7V/lrSv7gjKPjw== X-Received: by 2002:a17:902:da89:b029:123:39a1:2a76 with SMTP id j9-20020a170902da89b029012339a12a76mr29337305plx.68.1625001135207; Tue, 29 Jun 2021 14:12:15 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id u7sm20546383pjd.55.2021.06.29.14.12.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Jun 2021 14:12:14 -0700 (PDT) From: Kees Cook To: Tony Luck , Anton Vorontsov , Colin Cross , Geert Uytterhoeven Cc: Kees Cook , linux-kernel@vger.kernel.org Subject: Re: [PATCH] pstore/blk: Use "%lu" to format unsigned long Date: Tue, 29 Jun 2021 14:12:05 -0700 Message-Id: <162500112137.438178.14586324457676666976.b4-ty@chromium.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210629103700.1935012-1-geert@linux-m68k.org> References: <20210629103700.1935012-1-geert@linux-m68k.org> 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 Tue, 29 Jun 2021 12:37:00 +0200, Geert Uytterhoeven wrote: > 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", > | ^~~~~~~ Applied to for-next/pstore, thanks! [1/1] pstore/blk: Use "%lu" to format unsigned long https://git.kernel.org/kees/c/c5d4fb2539ca -- Kees Cook