Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2360791lqp; Sun, 24 Mar 2024 15:43:00 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU9SjqiQA3EcO941CbhS1keSJaKnEDusgg8JT/hQZfYE6ZVTjWtI144hd/3pwb/KlvxCbtYlAD/w++dKgFeJl+0RaYWuIVAvBuCM01+PQ== X-Google-Smtp-Source: AGHT+IFjmlhLeUMBvsisWSC6ghJiL/oZF9CS5fS2S7eEM5hxVrK0HX79wBwbdZxZP23yAUmawJtX X-Received: by 2002:a50:874b:0:b0:56b:cfef:b2de with SMTP id 11-20020a50874b000000b0056bcfefb2demr4017067edv.26.1711320180372; Sun, 24 Mar 2024 15:43:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711320180; cv=pass; d=google.com; s=arc-20160816; b=l5HFeDJZJE6A5kffs5aKpY7/7B4EyL88Pb9AnfYy7Yy/J2u0zBS4lKomuBr0bfwdkH kUNbNaM7uBMcHZ+B2wCo9xws6YTvIe0hcCteHWuxXw0z0WzTLdJEZifT/LJkcsse75cy TWcm3waZFM9LBaftWegS6WJVkAAk6ONeDN+S2XV2rEUw/CDoygn0jN9TtdEieJ2baWi8 SJG5tvpgWJnZzCmC75kiWrajdEiWlBnN3ILhWTSwj5DBAZuvw1Kc/f8lLyxE1scDVZ/m lMmfWnClZgrwNbujnDAaPFI9IKL0bUbAA0Ho6/oayMqPz+llaUE7Jng/NiqMINQ67+PQ cl2g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=jXLuyfuctMSx9a6I2aXG3WaO0AAtl0+8rdUM1IMQHFI=; fh=8RLesEX/izE45skaFMbpAL6XzjHMQxils0u7MR51RLA=; b=TyEetfI+Qbsl5pv2bMkV1R+FBfSfYVgjsM6WaurXOzKQppBEvaly3BjAcgoD/7icnf I43knAxAy7LnmwT9TxMXRwRLtAq8xRwhBNEo3W7Cr+7Qdr7+PZ3qxUcPi6gEdCC9kmjv XHEpajivPgAhR/uydT+WWREVnUZA8JvmK4MlnEWkblWgpHkS8NjrRekpzAIy763GZip3 tBvrvwbM6JBAKTh9s5/NC+8MUH3cH5UWomwiMKq0YClIIsWxwReFeE+kTbg7P7fvqSxf 4XmykXp1tG8HTOrHJTrAerqgv29kQc5/5LxYZ/o5dpTkoNe8XvOebFwONpQ0KZvOcSNO BGKg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="R83V/4X2"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-112918-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-112918-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id df19-20020a05640230b300b00568c3a5394fsi2022659edb.537.2024.03.24.15.43.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Mar 2024 15:43:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-112918-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="R83V/4X2"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-112918-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-112918-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 193051F2100D for ; Sun, 24 Mar 2024 22:43:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0BF026EB76; Sun, 24 Mar 2024 22:35:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="R83V/4X2" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 14A316EB5C; Sun, 24 Mar 2024 22:35:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711319730; cv=none; b=jDDOFvdAhRdreEIdq32+ceYjvpegIDMiXrB+W4ltB4L7BYzn2Ax9ZWCsD77TV3F4kX/WQYp4VeVzYMlie2VXzDTsQPHkGhRBapz/ARzfXWFRCD8zV4CUX/MDg8VKgv2H8Pe/O1/pHyUCgUB75xicsVHKsr8rj+BkpfCHsbOtIWE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711319730; c=relaxed/simple; bh=5Ds3TB7+/SF9s/aIHH6qhACfJy7hakZs8cM0naRFrrU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=VMIHqAzkAy5I4vStZUFRPImoRflHzz2/m4eL6iEBK7t/E2SNi3IY4lWpwcWpf+/8NRM06lyYslqE+UwLNhHWZiv8ao8Dhc+4CB8ki4QR0OaDZ6hkLEk2jonE/ILe+1Bjv7FWI4Og8Om++L6v35wmdtMFiIdw+zIWaPlIrXd8IYM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=R83V/4X2; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1D8E1C43394; Sun, 24 Mar 2024 22:35:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711319729; bh=5Ds3TB7+/SF9s/aIHH6qhACfJy7hakZs8cM0naRFrrU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=R83V/4X2i+aESD0ce3KNHtXQMeXsd7gMZJ/s6Rd6ZLjSbqVT32SgCyY/74YPIsEfU 5FphGNcRqpfh84BxbquJegfF30fWnmqBZviIvoaBZrFpnUOEKhQA11K3qyAfnc0fmv TeV75fNAWg+9xdOm251Iu8l+v3md5wiNnTNf6TwYnsBlVlcMe2Kvzd/uDr5aBVUNDS F/V/d+PXvQOabQBoUh+N/uNOq6AfZZ624fIMRO30lq2gF3uzrgKlU3Zl4oFUDOzmuu NZm+nJj3yS5a7rFSi+a9YjdH69AiBeEg+pBnN9YdCzkFI3tOwCeuN3OltKmwa1M+9Q 9i1uU5O9fsafA== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: David Gow , Guenter Roeck , Justin Stitt , Shuah Khan , Sasha Levin Subject: [PATCH 6.8 031/715] time: test: Fix incorrect format specifier Date: Sun, 24 Mar 2024 18:23:30 -0400 Message-ID: <20240324223455.1342824-32-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240324223455.1342824-1-sashal@kernel.org> References: <20240324223455.1342824-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit From: David Gow [ Upstream commit 133e267ef4a26d19c93996a874714e9f3f8c70aa ] '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 Tested-by: Guenter Roeck Reviewed-by: Justin Stitt Signed-off-by: Shuah Khan Signed-off-by: Sasha Levin --- 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 ca058c8af6baf..3e5d422dd15cb 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.43.0