Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp221214rdb; Mon, 22 Jan 2024 18:34:55 -0800 (PST) X-Google-Smtp-Source: AGHT+IGk2ZDBW/1LoWe/zxbNL+nhyF6ie5XST+/faSM0JMBNvWovsl8g1c1ZXn3inKSopu5k09S0 X-Received: by 2002:a17:906:6a8a:b0:a2c:17cc:1697 with SMTP id p10-20020a1709066a8a00b00a2c17cc1697mr2320932ejr.155.1705977295026; Mon, 22 Jan 2024 18:34:55 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705977295; cv=pass; d=google.com; s=arc-20160816; b=Zj9XKGiTd+2r4lt1PXmZ+9wASD26M+4+TnkswP2Lc5GgoWOFcS1yWpCshv604Uo39m JpqUqFxxKyF1LEWDCKpvClcOhTZPRqShw9ZDIE0rNdXYrjbFjN2twvcWdT19I5ZsRZuJ 5o07XC71NvNLDxFRCMwW0WawG2fnHiJgBhZ0PWjwMSxWbzcwhThDV0uAMefSXNeKsoBW 9NAAW9+914OTJs6FaxhObAsuAdfqU9p0oJsKfYcTelfFDinOif7ADqpRp3UOuDJx+JEz qwJhoyqK4JdIPn3MjWwWqV5GLHth7jOVULEfvvNXo3BWsvQflezTDFkDchM00OYWqBP4 3IJg== 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:user-agent:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=IilJS7Rab1GcQ31gbw/mzqN0+zeXctPxI09O2ErF3PQ=; fh=q7hTlrhOoyF1/LngWPo3GuPxjSRwcZxUuOwMAMnsirI=; b=zzaykxNDypL+s6HUcsvad6winpZlJLt7DNrZj8WxhFz5+r9xjUp8a0jkZkkCexJsep 5bJef5mn8yG6CN8wIqRkDhh2NjqA+SW4+7xxGshPanlOOCzZg+gm+X58GyEzotsjjZ6B 1b/NfSiMoPPf9gqhgtCbEHyOzajy6OGgvnsWLVk3xOFr1KuOquyWAcRLff04MNHwjCM1 iK80GgxYmoIgDUnDPhs6As8kQoA+xXyQlb8LLDkqQcsUCh2Oc8Gx9ex1BYNYIJU/tbxe UWyt3Fdj8/kf3XvE1MEka/eCxz/T5bvGDj7SHSpT0afgfNBGTxrAc/Sv39ZlFb1H+ZqR daQQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=mLTTD0JG; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-34622-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-34622-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id x6-20020a170906440600b00a2dda3e7ae0si8264009ejo.207.2024.01.22.18.34.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 18:34:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-34622-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=mLTTD0JG; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-34622-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-34622-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.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 BBA3B1F292CF for ; Tue, 23 Jan 2024 02:34:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4F0636E2A0; Tue, 23 Jan 2024 02:03:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="mLTTD0JG" 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 70ED86DCFB; Tue, 23 Jan 2024 02:03:21 +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=1705975401; cv=none; b=IDbPDFpykikhwhW5q07ObpccMUANOGvcNsDQ4DjaRkFFI8r1vTtrlKiGduMYni7hz0PKKGiA5CBbaeTKfUxsyZkPnt6HTGAN0f/I15oidyLroINgweqodmftdXAYxGv5YjdVL85SGSi7jnB5XwN81ms0WEPEahh2t05dCPvOmhU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705975401; c=relaxed/simple; bh=dBSnXot8tbZMBZAoqjrEB2uU5x3A+53cTEVWdeDC4jk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=r6BlXLkS+peUIzgQd3EIghi1yrhRl7wKHoB2h2aAuQWsHpFlKsVL+oHM+Te8NcxIFeop5rbJXd1g2xnaQggo+CNb4d+8cb/270feJu1UHELuWwdKR321FwXtJ93Ov1rU/q3Z7APG2J0cITn30lE1S3l9wL8cP3IFTXiCNOcmjXA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=mLTTD0JG; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2AEDAC43394; Tue, 23 Jan 2024 02:03:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1705975401; bh=dBSnXot8tbZMBZAoqjrEB2uU5x3A+53cTEVWdeDC4jk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mLTTD0JGRZbpx3gymdnXbt5JaufnnPo+9v4jZBhxcxDy8/hhdjPS/J/jHy6KETGND WZVAyIsm64DF/E4yLmykqRJuYUKy/AdWPdVY4iYG/FAPilLVfQXa6cF4vkXuXof5XI C34/b1clkf1Zm2klSMUMsB2m7aiEjvArTRs8Ogcc= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Mark Brown , Jaroslav Kysela , Takashi Iwai , Shuah Khan , linux-sound@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Mirsad Todorovac , Takashi Iwai , Sasha Levin Subject: [PATCH 6.6 335/583] kselftest/alsa - mixer-test: Fix the print format specifier warning Date: Mon, 22 Jan 2024 15:56:26 -0800 Message-ID: <20240122235822.293205600@linuxfoundation.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240122235812.238724226@linuxfoundation.org> References: <20240122235812.238724226@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 6.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: Mirsad Todorovac [ Upstream commit 3f47c1ebe5ca9c5883e596c7888dec4bec0176d8 ] The GCC 13.2.0 compiler issued the following warning: mixer-test.c: In function ‘ctl_value_index_valid’: mixer-test.c:322:79: warning: format ‘%lld’ expects argument of type ‘long long int’, \ but argument 5 has type ‘long int’ [-Wformat=] 322 | ksft_print_msg("%s.%d value %lld more than maximum %lld\n", | ~~~^ | | | long long int | %ld 323 | ctl->name, index, int64_val, 324 | snd_ctl_elem_info_get_max(ctl->info)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | long int Fixing the format specifier as advised by the compiler suggestion removes the warning. Fixes: 3f48b137d88e7 ("kselftest: alsa: Factor out check that values meet constraints") Cc: Mark Brown Cc: Jaroslav Kysela Cc: Takashi Iwai Cc: Shuah Khan Cc: linux-sound@vger.kernel.org Cc: linux-kselftest@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Mirsad Todorovac Acked-by: Mark Brown Link: https://lore.kernel.org/r/20240107173704.937824-3-mirsad.todorovac@alu.unizg.hr Signed-off-by: Takashi Iwai Signed-off-by: Sasha Levin --- tools/testing/selftests/alsa/mixer-test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/alsa/mixer-test.c b/tools/testing/selftests/alsa/mixer-test.c index 208c2170c074..df942149c6f6 100644 --- a/tools/testing/selftests/alsa/mixer-test.c +++ b/tools/testing/selftests/alsa/mixer-test.c @@ -319,7 +319,7 @@ static bool ctl_value_index_valid(struct ctl_data *ctl, } if (int64_val > snd_ctl_elem_info_get_max64(ctl->info)) { - ksft_print_msg("%s.%d value %lld more than maximum %lld\n", + ksft_print_msg("%s.%d value %lld more than maximum %ld\n", ctl->name, index, int64_val, snd_ctl_elem_info_get_max(ctl->info)); return false; -- 2.43.0