Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp2251887rdb; Wed, 21 Feb 2024 01:35:53 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWMRxSC597J/E+WAEudSHmP/yl1+dlU/rl01+ztoDppqxDHyaNdVnqq+H5Gzg38hzhdrUDIS3WDIK/+73L6LRjKtAMumctmENxhKUeTzw== X-Google-Smtp-Source: AGHT+IHdtfQmWK+KsaqXnY+nDLkWBwUc+LIZ8MEEHnZkAClEMNcqtNHaG5hSCh9xI5qzEkcLWswF X-Received: by 2002:a17:902:db06:b0:1db:8fd6:915e with SMTP id m6-20020a170902db0600b001db8fd6915emr4152808plx.33.1708508152796; Wed, 21 Feb 2024 01:35:52 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708508152; cv=pass; d=google.com; s=arc-20160816; b=wiM0FHmxZGWBblFB5GDRZizHDPH4xHe7pKweqKPfbJD1AJjPnhcJ3GV55SwhmveQcv mCHywc3tv0EUQZjyggUul2P1PMZzBxBp+Fet8HRkCST36auOrYGb1pDfQE9nXeeT+64B MG5U0CZgK3SvWX1Fba068Ewmi9g66fRxeDBDS0NUzqEMYXdJ0SWvQps1nQAnMDdvqo+W AtJ0vMPQt0T6rDyEyRz8OqS27v9nU6cRuEq9faOE/eEQ/iFBktlkywBspLYbaUWO8pGS QfOTB2gubI+dOfNcDEBCJQ0nUGs52ehMeEfMxsfyxn8G3uOGIz6dU1rnbegsbnQW5WxA c7DA== 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=6oh8w0yc8LvH1yvSHI8zU+2R7q+ewyvFM42Am6pdhYA=; fh=v89FsOH3vvAP6bs7UdY7tYdQXlZUW6twuJA7hpcJ0KY=; b=Hy27y67iWPzafDye6dfNvMUXhpCtBAZi127emRBuCxAUHyFzzzvho3vbA4YfQR0RQU aEV/pDXPmP3js62MDPN07f2g0dLA9vuPTxqWM5lSh092adcssAqFK6fVha1E5SEffyuA 8lhC8SlTMugT7MrHvwfMQw4UNaK7VQfZ87lg3vzxxYMYNPUCoe8ZcIFL1+bKqBAzM89f AS93H//o0IJOLcpFaX3Hxw4JMaMUvHiWI36cmf7tfkgFYUj3vFL1bhTP8OGgOHk0cu6Z lj/OHBESeQfDZkqkNjc+Szxcb4T9ZeUpEbqCy3WourEk8ZsQwGsl5dmwubFhx332dPGU 4skw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=D6FVsTD4; 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-74407-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-74407-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. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id l2-20020a170902f68200b001dc30bbb5d8si869453plg.385.2024.02.21.01.35.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 01:35:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-74407-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=D6FVsTD4; 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-74407-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-74407-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 755C8B22A04 for ; Wed, 21 Feb 2024 09:31:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3B24D3D548; Wed, 21 Feb 2024 09:28:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="D6FVsTD4" Received: from mail-yw1-f202.google.com (mail-yw1-f202.google.com [209.85.128.202]) (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 63D9940BE6 for ; Wed, 21 Feb 2024 09:28:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.202 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708507707; cv=none; b=FHbRFe9Vvcg/4O5NcwLWY9WOxP8ksNTIBkMSRUJ+D7Dt5oLNkFPCvdjNnhpoH+1n7/SSNVa0QtZlUsdNmj9jFrg3mOaJe73KfQBZ18RgmCtfW6BdZcwyh5r2SeFFq/xoNLGnbS70eSSjbT3BFfcatX29cQAAytzLBsMPKl7FeWU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708507707; c=relaxed/simple; bh=qMDq4bdbhpPxmFVNu5BAuMHikajNGQCbrs05AJS2Hgg=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=TES94FGTjN5JMX3B4lmSzurra4+FtjrKU/eZUgjiTIinrXeVt0eea1abANzaG2Oxrp6fg2GvYMh8go1D2hi62ANhsaMXm6F2iPXf2U2QsLztMCvV/jck5hBqC2ERgpi0rQ33sCtrqRt6xJ85+zmOtjBlH6QWdK4a9kLSsRukygc= 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=D6FVsTD4; arc=none smtp.client-ip=209.85.128.202 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-yw1-f202.google.com with SMTP id 00721157ae682-6087ffdac8cso7599807b3.2 for ; Wed, 21 Feb 2024 01:28:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1708507703; x=1709112503; 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=6oh8w0yc8LvH1yvSHI8zU+2R7q+ewyvFM42Am6pdhYA=; b=D6FVsTD4raEeATxpVZ6Qcyn+x0avEjJx8xgJvJ/z4iE0JjaKunjA/Z82BKNy+FzkR2 lp+3qO5dhnzsfc/dM+z2pECqaOjIQ8xuKlLxZGEjL601epK+6DDd3REFZfSGOt+D/HZM QrcMdWaNT/FVPNhZzCaV7aYI3WB+sPL2iR3DZG4z/wBKBkUExn9I09KyWYjc1rEAjpLG kauIplsgkQBLM8u9xwfvIXKs7VSVVqvEg0N0sOMlCRsSrHY+jA3+sukTBOcT88jfJ9ma 2xW1OkO6ZTe6kq8rb096JA8P0VnVHqwLbFWTDc2NCFK2vAaUykNlfA4u9AFqM0ob82Px oggw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708507703; x=1709112503; 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=6oh8w0yc8LvH1yvSHI8zU+2R7q+ewyvFM42Am6pdhYA=; b=O/RrF1kzafVt56KGH6YizE5maqV/2k5Fn3Y7cryPiDZzfikJxkp/sx7JKCrqRgE8dv OlxUha4lDXJQHfSB14BNI5hW78jLLJbcDRueMoty7GPkVp4utRFpRMUnQ6zptaGvcNNg rV2G25mHbKPvmOk+Q+iodh66RukLi6hN9IrGEF54WnPQUyvZgvC/LTZ9AQdPd5O+aihT 8MnXN2rLZX95VcJOYjiSg59RMG6Bxuo/5mBg4b2HIcjc7JdCEGLi6pKqiofMiskJciIG MDjnscWKGOETYKLM8lRAek2J77S/ebRvHh2k96X4BlcP7H9/MQNyOVYOtIjwlZ5u5EVu OyOg== X-Forwarded-Encrypted: i=1; AJvYcCVDCgRwh3OJvbYesxLaV/c4K7o+kopXDtrNUWEmZBOuLRM1YckeqNDREwXNVctj3BECwuNEG90ju0eslrx3QHja8RoOvt+x5/XbMyLB X-Gm-Message-State: AOJu0YxAnwa/8nmkV23A843bucBbasMQfBmKou9Pu5SBZFHXaHew2VDc pYxc9IkLptxWmeipx8Lfxn1m0U7MQacQMgu9Xi3NYIgzY/6+QB/BFODC+PM4DMX24V5z93sotBE mR9fL0c7F9A== X-Received: from slicestar.c.googlers.com ([fda3:e722:ac3:cc00:4f:4b78:c0a8:20a1]) (user=davidgow job=sendgmr) by 2002:a0d:e8c4:0:b0:607:cd11:5464 with SMTP id r187-20020a0de8c4000000b00607cd115464mr4264994ywe.9.1708507703514; Wed, 21 Feb 2024 01:28:23 -0800 (PST) Date: Wed, 21 Feb 2024 17:27:18 +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-6-davidgow@google.com> Subject: [PATCH 5/9] rtc: test: Fix invalid 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: 1d1bb12a8b18 ("rtc: Improve performance of rtc_time64_to_tm(). Add tests.") Signed-off-by: David Gow --- drivers/rtc/lib_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/rtc/lib_test.c b/drivers/rtc/lib_test.c index d5caf36c56cd..225c859d6da5 100644 --- a/drivers/rtc/lib_test.c +++ b/drivers/rtc/lib_test.c @@ -54,7 +54,7 @@ static void rtc_time64_to_tm_test_date_range(struct kunit *test) days = div_s64(secs, 86400); - #define FAIL_MSG "%d/%02d/%02d (%2d) : %ld", \ + #define FAIL_MSG "%d/%02d/%02d (%2d) : %lld", \ year, month, mday, yday, days KUNIT_ASSERT_EQ_MSG(test, year - 1900, result.tm_year, FAIL_MSG); -- 2.44.0.rc0.258.g7320e95886-goog