Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp209719rdb; Mon, 22 Jan 2024 18:01:21 -0800 (PST) X-Google-Smtp-Source: AGHT+IFNu5CIyn6pEEVQnvc1UJtro1Tczxi7r0FSt/MgSH3ZGFi/oIjCPbNsdtBSq3UYqlAK6XCv X-Received: by 2002:a17:907:86a2:b0:a28:c80e:1d1a with SMTP id qa34-20020a17090786a200b00a28c80e1d1amr1633447ejc.190.1705975281135; Mon, 22 Jan 2024 18:01:21 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705975281; cv=pass; d=google.com; s=arc-20160816; b=JtFC1sDYdy30M/unOYoXQZ6VHnEyAHtE8V9M92w+NdrzDSJ1CricRhr47wAMploVv3 IP6kkmI3ala3teduRlMBe8tMBGTLk6bRZOldoABzLfrk6ehF5PXJVH3Eu/QZ8Y9txW+N pHvOq3QiqqAGR/nPowyGRqiLVjMVrNYnles8y8uPG71qZteuumoc9SKr9dHL5+/fkk+d K48S0toTtzhTa7ijcdOErwG8UB1khPXBsY6cKKeyQU21md33cJmnXIdigZLGF4Qd5J3o +b0nOvEmSrWIpQSQfkwBHMiGanOQIgUzu9fFQiip+E7geGpoUAiyRb6nVyS+F58dyUMA PxZQ== 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=D0tzWD1AZg45ZnTe2OnOVgofOzqYdQ/2mD7qIcxTjk0=; fh=q7hTlrhOoyF1/LngWPo3GuPxjSRwcZxUuOwMAMnsirI=; b=YvwFCr7Z1L7N1rg5VDocJKI0M4Sr7gYNQgV34P2HGCXfERXBoYXcn/NtuOPxrvk9d4 xis9kRFdDQbjg4GnXQyyxN4Ew+UXjaoFi+ej9/JxgRlbm6Sw3ksga0xhCpzb1ojyQJS0 t0nVKCoFWo6mjer6fSdsMuX61BGfNUrwHGQg8Lf71S6QIQD/NH4M30U0Jun/8EJj8sHz V3sdrf/0yHe4bm7xuvWnwNWHwbEbkIpgyibUAod6cHi8m27KmdlUUw30jlQuO0wRKKIj JhGnwaegRTtLKfk4VkTOjAMmA58Yu3kDHB63xgMdmTpfnknyOjWXmPBnlgmqgHcWPfYc c/rw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=z819cun3; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-34560-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-34560-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. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id bu8-20020a170906a14800b00a307ead3a1fsi943319ejb.709.2024.01.22.18.01.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 18:01:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-34560-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=@linuxfoundation.org header.s=korg header.b=z819cun3; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-34560-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-34560-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 84E041F2B465 for ; Tue, 23 Jan 2024 01:55:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id ACBA912C54B; Tue, 23 Jan 2024 00:57:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="z819cun3" 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 CBFF66281D; Tue, 23 Jan 2024 00:57:23 +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=1705971443; cv=none; b=DFyO9ZdoYEf8jnf7tUaEPBQqRhRFy/cA0BE0JBzfhug6HM2EKPjsDD/7PBPwmzu/zusOZM6B2DFRjIZzb/S1KJAJqExdPZ8CZOLw0otPALZa0ySXYAcc4Wwcm27A48suQ5gzvKB9TaVKlgCTkmQLGrL5L2omc744HDe51Hszukk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705971443; c=relaxed/simple; bh=wGuN975V07rpQPfbn8kxmTghtVRXyNhe6OvU9yJ+a88=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Zl4H77qFOyZ6TzNKxcrSz23DNx4tM16aS5OEW50mzI7TAco2+yYt4UYv2C4DSMurmM6JpDXQ/JQcnBcSCeLSJz+2kbz1+OmEw4emvKKQkH8SxAIE8fx3Xs8DAAazIBX9H2MPlV4ukkN2FqDnwis7+lwawRwVqAOqjhC00p+7llo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=z819cun3; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1BD55C433F1; Tue, 23 Jan 2024 00:57:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1705971443; bh=wGuN975V07rpQPfbn8kxmTghtVRXyNhe6OvU9yJ+a88=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=z819cun3WtHtacJYyZrJ/nz3QDFeVzvw3wbG/5Go9gTxD/n7qoDRtKYOKOH4mY08A JbRjgcq+HB3Sxk7wKSMa0iWUk0gL1xdX08Exh7wj6TBPVp5E3AJYIdY2mBySLoluPo uLqBlV8rGn0pd8kwStlrRMpQrs/DJNpg1bJl0cDw= 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.1 243/417] kselftest/alsa - mixer-test: Fix the print format specifier warning Date: Mon, 22 Jan 2024 15:56:51 -0800 Message-ID: <20240122235800.296862359@linuxfoundation.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240122235751.480367507@linuxfoundation.org> References: <20240122235751.480367507@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.1-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 d59910658c8c..9ad39db32d14 100644 --- a/tools/testing/selftests/alsa/mixer-test.c +++ b/tools/testing/selftests/alsa/mixer-test.c @@ -358,7 +358,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