Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp2251725rdb; Wed, 21 Feb 2024 01:35:23 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWjRWWdmLIT3zVLGq6Njdx3Zy67i/4ykHKAQAOEPVBOJtDu3X/WmdT9HbAg1+I2I9mbeeKWY74tArf6z8oW6/DmiGTVt3Cxha0QeaaiRw== X-Google-Smtp-Source: AGHT+IH4XN4pPvuNv9OFEp1zU4qqa5oMcGeRDBsDtZ+X5CciNsuO4qS0p/X7J1M9D/fVySjfuvi5 X-Received: by 2002:a05:6358:63a2:b0:17b:c8d:f39c with SMTP id k34-20020a05635863a200b0017b0c8df39cmr19669507rwh.28.1708508122706; Wed, 21 Feb 2024 01:35:22 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708508122; cv=pass; d=google.com; s=arc-20160816; b=uayy99FtLsqZ/GWHlBhmxHAfTQwZFSpKRfp4zaSkf+krMSo+RZFK2Rhty+BPxjZdkz U5S6YOSxJv91ObESek1pGGc4bpEMvYONUyosn64UzadfVkYc/lvDKHC6MOdioM8f+xnX b9691X3s0K8rEETd9iJPxhgLqo6HS5e8AOu2870M+gTM2ASwSzcIWfgG3B2TbG6M9W9O Wgskw3apM9X73/0QT81tJc0/J0zb9tvW8KQLzZfOY3l6K9SOBShbWpyldTa4+aHf4Dkr z/E2X8v7xC2fnQuBvCZe/dTQnu+8YjH/bBIrB0AHEtbRoTm8TgRHzXpABjcuux8PWOOw lhEA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:from:subject:message-id:references:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:in-reply-to:date :dkim-signature; bh=Z9U7+OVqCU0rhDEd8d2z0lAB4Gret4PnmLwRYwmvgX8=; fh=AIagxeiMZTeMDs8KxhtQh0Zi8AAo8nRo/FRs7ZyXHFQ=; b=XiwYAwRSQ5c8f349BOQdMYxCsR2Azbg/aEwSlVeWgojxaF07GFSS00PrPXGJjku8KA qIxdyEB2XPwQ3ygHIjRFi+aU8a+eW/0+HMP+M4Y4y+z7zNcPksUbnRhiWUs5ijJ8pbnL 17B48+6nZSMtV3iZIoR1p+1CIclK2NbfYp0OLr6JrmI6UxeOBlUEXR+LvL1CJCb3Z6Di 3O/S5yVKtuHP0IyJJAtcCSCCJa13lRLlbLeBvaco1YPZZNM/TkRlpsaP4GPVvwUz60/n 9CJcLlGv7s3YeYUsOkd3arlykEdP3uek7lqjCZisMizcxVBrROaLhJazwbLlT5oELWiP PSOA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=b3AoQfXx; arc=pass (i=1 spf=pass spfdomain=flex--davidgow.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-74406-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-74406-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id k28-20020aa79d1c000000b006e07d6e2dabsi6809468pfp.167.2024.02.21.01.35.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 01:35:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-74406-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=b3AoQfXx; arc=pass (i=1 spf=pass spfdomain=flex--davidgow.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-74406-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-74406-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 95A02B222E8 for ; Wed, 21 Feb 2024 09:30:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 394473FE4B; Wed, 21 Feb 2024 09:28:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="b3AoQfXx" Received: from mail-yb1-f201.google.com (mail-yb1-f201.google.com [209.85.219.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BD7703FB2A for ; Wed, 21 Feb 2024 09:28:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708507701; cv=none; b=FiLAbNN5JU0BFS6Rhbsfg0OgAQyODlRDTj2TIyq4IhpAmVKIvY8BHoo38EJE0qyi1L/1Emshgr/4bd07nWagupbpZG16HAl0TYmABFgB4f1IOU7f0/83oBrZ64S6xKQMA/M/egIpUZ1NfNzFhwcfLk1N4KZx9xa43VHkvKrLi8o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708507701; c=relaxed/simple; bh=oL7SbspJOeRYcbVFVBGkFBZAmUlrMB6hGfPhSOPP+r4=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=FBUsxwVD8eAQY9OvtOWlPfJykthjLREOXBTQIYFytLyFRnOu+cY8CxkEvM5J9PtnS+uhrO1NUPVHdRgBrDnOqGAjsoLC91lz9d0XMwfYY8Pw20rjKgEIe55qYw7HNeYSa15dQOX8ps2CsrKv7+Y3Ne08HExBb+rR9Akp8B/mg60= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--davidgow.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=b3AoQfXx; arc=none smtp.client-ip=209.85.219.201 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--davidgow.bounces.google.com Received: by mail-yb1-f201.google.com with SMTP id 3f1490d57ef6-dcbee93a3e1so8081184276.3 for ; Wed, 21 Feb 2024 01:28:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1708507699; x=1709112499; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=Z9U7+OVqCU0rhDEd8d2z0lAB4Gret4PnmLwRYwmvgX8=; b=b3AoQfXxx988FHyX9PzELXt8NrrvJobEFyBhth5Q2rbrtTy2d+2wd+HOEyGFNMuOHo n/oPbIlMp1nrledzymwwjSpwJQgwhl3MPqjMZv18VG+7yE2c4/AhCocx4fGXkGFcGEWE N3Uz9mFEfVcoB+2bkskC/YugYC0VUbJdJrKpFzzPLnwJxWbkP8pM9hl/tWdMYC6RZ0d6 0wccmsGWSQdrDTYzEBTx5q4gwuEAVH5324VNJei90wylyVjUHjubfPTPky7GkxN99y3A U6iNBk2+Ip0VFdATBZ5YUvA4W6HooAq1k9G0Ld+P7WYosQKGWZWjx/bHIn66PwE2EVoH fDyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708507699; x=1709112499; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Z9U7+OVqCU0rhDEd8d2z0lAB4Gret4PnmLwRYwmvgX8=; b=VsSXWQ4sh1aS0o8btOrbgY/WbQKodG2BUeN9rSnfuXJaxT8qWqpWtsduO8mYgQIQsJ r37jIIAoxWEfYgRrK6ECW45mzFgnA9FcH0CMEq3ehpQ7eXU0iqf3kOx9GfLSeJSjPD/g LUlywGqXYkoI0BKbfdt6hxDcBfce35XQ9GMYnJf3/mis/JTbQsvlCfcAXt2x5gfE8p03 Ht2m/C2BcaDY8aKQ7vLpxIoYm12mBGYSmmgjIChh2Z76UP1OhuEauqEmipnw0tN4ldvz XXuoiLTkO7wIrdvshoalY90CFAj7PY4sksifb6Rz5M0l6sEka272rZZp6ZRCjMvP51Hz G94Q== X-Forwarded-Encrypted: i=1; AJvYcCWxzjoLj49ETTbQCqbmf4/yESXg3b+zOwTnYmbmbk4dUTjpvyjn16Gz3qE8wJPsHYBMYuC0rr5eBMC+Cg4WPYhxJsAUp61ugtGedXBO X-Gm-Message-State: AOJu0YwMOJONdYnWzvXbGWkQAxTyvyZwT/jiKPUD1kyYkU/XQltKQ/gd jdYCURTvzzDfFJP2SCUQV36eMZEQ+eoY6vlRcTdf/UbW5/5qwlY/PUgWCIQl+enEMIUUR2kp5fk QpHuXoa6H0g== X-Received: from slicestar.c.googlers.com ([fda3:e722:ac3:cc00:4f:4b78:c0a8:20a1]) (user=davidgow job=sendgmr) by 2002:a25:69c4:0:b0:dcc:9f24:692b with SMTP id e187-20020a2569c4000000b00dcc9f24692bmr1016456ybc.13.1708507698808; Wed, 21 Feb 2024 01:28:18 -0800 (PST) Date: Wed, 21 Feb 2024 17:27:17 +0800 In-Reply-To: <20240221092728.1281499-1-davidgow@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20240221092728.1281499-1-davidgow@google.com> X-Mailer: git-send-email 2.44.0.rc0.258.g7320e95886-goog Message-ID: <20240221092728.1281499-5-davidgow@google.com> Subject: [PATCH 4/9] time: test: Fix incorrect format specifier From: David Gow To: Linus Torvalds , Shuah Khan , Guenter Roeck , Rae Moar , Matthew Auld , Arunpravin Paneer Selvam , "=?UTF-8?q?Christian=20K=C3=B6nig?=" , Kees Cook , "=?UTF-8?q?Ma=C3=ADra=20Canal?=" , Rodrigo Vivi , Matthew Brost , Willem de Bruijn , Florian Westphal , Cassio Neri , Javier Martinez Canillas , Arthur Grillo Cc: David Gow , Brendan Higgins , Daniel Latypov , Stephen Boyd , David Airlie , Maxime Ripard , "David S . Miller" , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, intel-xe@lists.freedesktop.org, linux-rtc@vger.kernel.org, linux-kselftest@vger.kernel.org, kunit-dev@googlegroups.com, linux-hardening@vger.kernel.org, netdev@vger.kernel.org Content-Type: text/plain; charset="UTF-8" 'days' is a s64 (from div_s64), and so should use a %lld specifier. This was found by extending KUnit's assertion macros to use gcc's __printf attribute. Fixes: 276010551664 ("time: Improve performance of time64_to_tm()") Signed-off-by: David Gow --- kernel/time/time_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/time/time_test.c b/kernel/time/time_test.c index ca058c8af6ba..3e5d422dd15c 100644 --- a/kernel/time/time_test.c +++ b/kernel/time/time_test.c @@ -73,7 +73,7 @@ static void time64_to_tm_test_date_range(struct kunit *test) days = div_s64(secs, 86400); - #define FAIL_MSG "%05ld/%02d/%02d (%2d) : %ld", \ + #define FAIL_MSG "%05ld/%02d/%02d (%2d) : %lld", \ year, month, mdday, yday, days KUNIT_ASSERT_EQ_MSG(test, year - 1900, result.tm_year, FAIL_MSG); -- 2.44.0.rc0.258.g7320e95886-goog