Received: by 2002:ab2:7041:0:b0:1f4:bcc8:f211 with SMTP id x1csp102149lql; Fri, 12 Apr 2024 05:16:09 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVQ7pXNUJZgrYS3QN3idHyRyu9yOYWXy0OO/El33fQ+Y88rxDTJMBYYy+pcoSpbxxbLDBjShb27LWfYXzlFTYybGSMIMQ9TPhWXa0hE+Q== X-Google-Smtp-Source: AGHT+IEs95kkLmcZSbbZI9Z14c1cMZH3baI2BOphAtAXrZRVGQbEkkFRo6vhwmhyBtr2qjRE92yf X-Received: by 2002:a05:6102:e0d:b0:47a:3ffb:8f6b with SMTP id o13-20020a0561020e0d00b0047a3ffb8f6bmr2827350vst.20.1712924168867; Fri, 12 Apr 2024 05:16:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712924168; cv=pass; d=google.com; s=arc-20160816; b=OT1EmoPuKEIgD5s1aLLks3s6woARJHJNFL4JeR66zSZ1nkCwyDEd4NaNtUrqW4utCf 0u/MNgskhRswjnyGH6JwBFRaro+bJimYWILeHLO9gUPgDS03YUmwWg7FvpTz2chx1SDs y6eEQ+kiMxJnuh6yRYu1VHjvTHCfV5Khryr9fqRKxq/AJQlSqslMQyCRUipnRJoMuznS Wrgjcn9C3Vufe22CqoJtvyQC93f8GY9Oal7iD3p+Wd1IH+WgixlswAJWxHUXpLb0xYyU HDnw7nETos4zrE0K3ltXKw5CA8N2rnnczE06+SdltIHKjdgppOVS2vOlkuQFg1A5ZkyQ Y8FA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:precedence:robot-unsubscribe:robot-id :message-id:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:references:in-reply-to:cc:subject:to:reply-to:sender :from:dkim-signature:dkim-signature:date; bh=kdC6iHt9iuIs2ZUHG+rVn8AHQ2/r2wQDI5UeskPFyL0=; fh=mL9z5umJ5tRNHQieXn+WSpCOm4LT6BfR9c19YRwsfzg=; b=abufg0NwWUNnITW+OQtQmRnjQGIedS90U1JC7LXGr5S6E9wVU5vnPWmUGm9foMCLPX sVWtZCQfzObiKrHsL6m3s9ZxpqhngcUiUF79Gy0qU7yabfbZYAQhejXU20AeR5ALEjwG 0AdvYZhuGvLFRc5/ufEAvkcSxj7UFC4s1YLZmjXg9/VZA1h5Opn+sAdHCyBRrREsWE4f XUcA2LqhnVF8MvZpCzi+vrP1pMsnZW17g8Orf2WI0p2TFXumY1fobY+sxFJizWLH3wOE mwZBxANqRXyF3qlaGtBfQNZoHJWIf7NXRj5iBN/rvaUssxnCuod7R9wi2NgqlQeCRy0+ +Y9g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=Vv7KM8WQ; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-142633-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-142633-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id ib20-20020a0561022b9400b0047b5ea79c0dsi72976vsb.642.2024.04.12.05.16.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Apr 2024 05:16:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-142633-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=Vv7KM8WQ; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-142633-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-142633-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 9161E1C2134D for ; Fri, 12 Apr 2024 12:16:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 32BCB58112; Fri, 12 Apr 2024 12:15:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="Vv7KM8WQ"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="bGAIaIFg" Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 9455C5731F; Fri, 12 Apr 2024 12:15:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712924133; cv=none; b=S4w3ox2Lg7LBIvhsUA7rsXMmzYfzNQyKUM2PzpfGHjUr3QSsQsEGW5+r3/2epBsuVHYNktO/r+ap+3UNzGKu5iw7g48bvWEG3bF0uf8UNLjoZq+LLPQc66ieF9kzJd3Cb4JJDcsy50s0BNJN96zTay9/5b9EI+Ux0loVv4DC3vY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712924133; c=relaxed/simple; bh=nmNHb58EWI8oLDjXQIjOG1Wq8LmNik2S7FCEDWcM8tU=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=g/y6Dx5P7rgcGpZaPn4eSgRJtnM7cWMv+Dh64tv34QTti9ItF8P2G/dZwJ/rzpaV1kpWUo11g+mThcIP/LFWWrLdlFN1Uts2xcJC4ir9tlnP9uJKKy0eaKbtAfTG7lWDNvi7OwTeJ8zV1VZC7kZ9SMyyTb3bLJYuuoxQaQnj8/g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=Vv7KM8WQ; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=bGAIaIFg; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Date: Fri, 12 Apr 2024 12:15:29 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1712924130; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=kdC6iHt9iuIs2ZUHG+rVn8AHQ2/r2wQDI5UeskPFyL0=; b=Vv7KM8WQDfZvJF8dtJ43Vo4gDkUh8kF1L5W9ejTxFgkFzDCsk+KN3CQkYaGVZRAPpTZfLY ZADBcwumF5MlXL2L3gbh/dP2+Ah6XOjPoMnj4Ed7A2OonV6OJjXqHKdIiPtcd5zoOM/cUr MOaptZ1UEh+vMdS5wYJrPYl4ug3Mmlz2n2kvnqdEuZmztUU3qTZbvuNNUFE8uAJOBBmws2 nTS3k2NJ7359FedklKpkuazflnVqKeGa3f+zmSba1ReewaMduiA5sNm9O78+59XNKACFvK QJmb+cne+2QtBOlxEmORL36ot3+3Ex86VHHOVF8KKU/lJBYcbU03LS8qyJ6Icw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1712924130; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=kdC6iHt9iuIs2ZUHG+rVn8AHQ2/r2wQDI5UeskPFyL0=; b=bGAIaIFgEeaXE0SP005INNs63sdee6ZcvDqKUmtNoHxt5Q6ggZR/f51ftbTJlFJcmbhd9V tx6shPcJC8OeneCQ== From: "tip-bot2 for John Stultz" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: timers/urgent] selftests: timers: Fix posix_timers ksft_print_msg() warning Cc: John Stultz , Thomas Gleixner , Justin Stitt , Shuah Khan , stable@vger.kernel.org, x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20240410232637.4135564-1-jstultz@google.com> References: <20240410232637.4135564-1-jstultz@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <171292412916.10875.16404428821258401754.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit The following commit has been merged into the timers/urgent branch of tip: Commit-ID: e4a6bceac98eba3c00e874892736b34ea5fdaca3 Gitweb: https://git.kernel.org/tip/e4a6bceac98eba3c00e874892736b34ea5fdaca3 Author: John Stultz AuthorDate: Wed, 10 Apr 2024 16:26:28 -07:00 Committer: Thomas Gleixner CommitterDate: Fri, 12 Apr 2024 14:11:15 +02:00 selftests: timers: Fix posix_timers ksft_print_msg() warning After commit 6d029c25b71f ("selftests/timers/posix_timers: Reimplement check_timer_distribution()") the following warning occurs when building with an older gcc: posix_timers.c:250:2: warning: format not a string literal and no format arguments [-Wformat-security] 250 | ksft_print_msg(errmsg); | ^~~~~~~~~~~~~~ Fix this up by changing it to ksft_print_msg("%s", errmsg) Fixes: 6d029c25b71f ("selftests/timers/posix_timers: Reimplement check_timer_distribution()") Signed-off-by: John Stultz Signed-off-by: Thomas Gleixner Acked-by: Justin Stitt Acked-by: Shuah Khan Cc: stable@vger.kernel.org Link: https://lore.kernel.org/r/20240410232637.4135564-1-jstultz@google.com --- tools/testing/selftests/timers/posix_timers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/timers/posix_timers.c b/tools/testing/selftests/timers/posix_timers.c index d86a0e0..348f471 100644 --- a/tools/testing/selftests/timers/posix_timers.c +++ b/tools/testing/selftests/timers/posix_timers.c @@ -247,7 +247,7 @@ static int check_timer_distribution(void) ksft_test_result_skip("check signal distribution (old kernel)\n"); return 0; err: - ksft_print_msg(errmsg); + ksft_print_msg("%s", errmsg); return -1; }