Received: by 2002:a05:7208:3188:b0:7e:5202:c8b4 with SMTP id r8csp971172rbd; Fri, 23 Feb 2024 09:03:25 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWJQVuAWC+vAmuCzJIXCsQbF9mXtcW4qboa7DvGwJYoAfZMJgQzyx+Im+a9QWeW/Da4rw5cwSZsyC+nCn6tCakEWlJNblU9At9KnIIUUQ== X-Google-Smtp-Source: AGHT+IE/hqMtxpvzw5eJEG3r22lGPPex9XKiCACU+A9myYPFPYflqsFeNXFJdWTunCkRpZn6x5QA X-Received: by 2002:a50:ec9a:0:b0:564:5973:56f2 with SMTP id e26-20020a50ec9a000000b00564597356f2mr307746edr.7.1708707805127; Fri, 23 Feb 2024 09:03:25 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708707805; cv=pass; d=google.com; s=arc-20160816; b=zNsyhfoxz0rcswR+sfWDGKqU5UHDNhtf2LCmvpI3GQWbO36qXz1N5s4HCzVFtbj92y XjGZgIvsZyLrVreYXqtGfS3ULm+0xQsWjveSjjT4tMIZCmLntGc1w6xJ0/R2l2HNC+s0 OvRDRy7J7ZsbEJXvPZ+81RJIeBhzyjf6nZ4O7H7X5/MqYOhUoZKLhgWMUhUrX4Gp/ccp RH3/pgD9lamkr2ueDhFbUy+LdGJf+q+U0twguKY0f6ozVSo2yZ0IQDrAlC45lB6I3icm oiMJ9RsF/kuKWxHnrFbMYjMpduePdRvQkRPOcxkS4HgJZcQLF4uPpOMxsHiWNfF2JHd5 Oqtg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=x/AtCItlvRqeTztsKy5EsHh5og0itw6wNDcPMUzLjho=; fh=H2wqELACYpyXb+gpKsuAa285LWeiOyuPYDhD3DEgxk4=; b=vYBnB8Y/hhEmE8ygl06Vd7Yw7z//ZboIzdZsGrHebJMRQ5MVrk+lF7m+nx92YWh4ZF hdF0XJPUCVfyM357+xlKhfgGszNy46INHDW8fnnFVL1/FV3vJDs00lgajlWnFoJcWnSD 6I/W9tWTmGglFIjbh5S7tRaUwq6iKRmj4n1kUnDTwcnxSe7MtPY+WIoCgqeMpjBomEeO hJbMLrCB8QKp3gD/dM9xYEfHqh4z2HLqPVlNfaUd37l2BXbBLb43rAusHo5ZtUHxbt+t rQiVCZiT4aPUlK7/FNcL+Fb7aCH8tHuznsIsUBUD0UbK+hvlT0RToxdk+acxL4ry08iD XTrQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=bWlCKrvA; arc=pass (i=1 spf=pass spfdomain=opensource.cirrus.com dkim=pass dkdomain=cirrus.com dmarc=pass fromdomain=opensource.cirrus.com); spf=pass (google.com: domain of linux-kernel+bounces-78779-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-78779-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id q15-20020aa7cc0f000000b00561ba9c6137si6492858edt.679.2024.02.23.09.03.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Feb 2024 09:03:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-78779-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=@cirrus.com header.s=PODMain02222019 header.b=bWlCKrvA; arc=pass (i=1 spf=pass spfdomain=opensource.cirrus.com dkim=pass dkdomain=cirrus.com dmarc=pass fromdomain=opensource.cirrus.com); spf=pass (google.com: domain of linux-kernel+bounces-78779-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-78779-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cirrus.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 am.mirrors.kernel.org (Postfix) with ESMTPS id C63641F260A4 for ; Fri, 23 Feb 2024 17:03:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2B83B13248A; Fri, 23 Feb 2024 17:02:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=cirrus.com header.i=@cirrus.com header.b="bWlCKrvA" Received: from mx0b-001ae601.pphosted.com (mx0a-001ae601.pphosted.com [67.231.149.25]) (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 B1A2D12FB23; Fri, 23 Feb 2024 17:02:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=67.231.149.25 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708707760; cv=none; b=Q1SWYrJQ6qjoD01gUxEwUs1ToAxOY2ipmZxZuY5KMxWhJeTUzq6OcbLdim72gJTY7z1e3D7UeZ4vgKq2+cv/m+YKOJDMj+PzeKfAMNO6mxKGcqYp0zUAzElZfyFvd7T+bIvIP8uPDKUWJKqkntkut9QDcEaGM2zW1y6CDKDo7/8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708707760; c=relaxed/simple; bh=MLId+vpL1GJSYnk9r4V10bG6KRC9aNji3+0kQGieFqg=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=OmrHgiVFVdw7YInHRtDv6Pn9HWl3msVzWPp+yk65OiS2bKi/9oBsTA1Xg4PnZ20ZCt3Q5DVig9dQHfnm1zvpQ29wHL2uuRcoDIOe36xhiigMsycKE4PdzS4+PQ0M4yAxri6njCTRyLqPH5KDLBXpgT34mhU8ArH0EmS0GRyqga4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=opensource.cirrus.com; spf=pass smtp.mailfrom=opensource.cirrus.com; dkim=pass (2048-bit key) header.d=cirrus.com header.i=@cirrus.com header.b=bWlCKrvA; arc=none smtp.client-ip=67.231.149.25 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=opensource.cirrus.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=opensource.cirrus.com Received: from pps.filterd (m0077473.ppops.net [127.0.0.1]) by mx0a-001ae601.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 41N6HREp027836; Fri, 23 Feb 2024 11:02:06 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cirrus.com; h= message-id:date:mime-version:subject:to:cc:references:from :in-reply-to:content-type:content-transfer-encoding; s= PODMain02222019; bh=x/AtCItlvRqeTztsKy5EsHh5og0itw6wNDcPMUzLjho=; b= bWlCKrvAeBVO4Ssmi/QxqKGTXiqcqBTnYxBFp3Gb7KV51QPwLvmCu1Choq/DX837 1gsatA9mcK2riPDaBdjbNdNoJwv4tD7mTeQZh0FeZ3vhWZQDpCbi7ciylpaNW2Le Tm0/hRthSKWXkTy//LaLAt6Qgpmb+FCNptV/+gFbwQELQXmviypneXUPWV5RW0DP dASxgw5iFWmHA+6CBEBbb6ejlpC0gFW0NpFy0+woJCD/qmigeNd8sffXxbEa8HRq AnboIH7irKiwAKU6aUPMlASwci6ttZ4TPG5J0W6ZOJ1gFFyC8OJC7xgAesjHyPar F2DHavGgqai6nSHlrYomKA== Received: from ediex02.ad.cirrus.com ([84.19.233.68]) by mx0a-001ae601.pphosted.com (PPS) with ESMTPS id 3wd207mbqm-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 23 Feb 2024 11:02:05 -0600 (CST) Received: from ediex01.ad.cirrus.com (198.61.84.80) by ediex02.ad.cirrus.com (198.61.84.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Fri, 23 Feb 2024 17:02:03 +0000 Received: from ediswmail9.ad.cirrus.com (198.61.86.93) by ediex01.ad.cirrus.com (198.61.84.80) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40 via Frontend Transport; Fri, 23 Feb 2024 17:02:03 +0000 Received: from [198.90.208.18] (ediswws06.ad.cirrus.com [198.90.208.18]) by ediswmail9.ad.cirrus.com (Postfix) with ESMTP id 6F06F820243; Fri, 23 Feb 2024 17:02:03 +0000 (UTC) Message-ID: <956f2b88-8b52-45b3-a27d-fa8e75a02642@opensource.cirrus.com> Date: Fri, 23 Feb 2024 17:02:03 +0000 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 6/6] ASoC: cs-amp-lib: Add KUnit test for calibration helpers Content-Language: en-GB To: Mark Brown CC: , , , , References: <20240223153910.2063698-1-rf@opensource.cirrus.com> <20240223153910.2063698-7-rf@opensource.cirrus.com> From: Richard Fitzgerald In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Proofpoint-GUID: CnArif1KVPkqp-jNYyI0ptCu1_Z1L7YN X-Proofpoint-ORIG-GUID: CnArif1KVPkqp-jNYyI0ptCu1_Z1L7YN X-Proofpoint-Spam-Reason: safe On 23/02/2024 16:47, Mark Brown wrote: > On Fri, Feb 23, 2024 at 03:39:10PM +0000, Richard Fitzgerald wrote: > >> +config SND_SOC_CS_AMP_LIB_TEST >> + tristate "KUnit test for Cirrus Logic cs-amp-lib" >> + depends on ACPI || COMPILE_TEST || KUNIT > > Should this not depend unconditionally on KUNIT rather than KUNIT or > some other stuff? ie > > depends on ACPI || COMPILE_TEST > depends on KUNIT > > or equivalent. > Now I look at it again, it's not correct. It's the ACPI || COMPILE_TEST that is bogus. >> +#define TYPESAFE_ACTIVATE_STATIC_STUB_PTR(test, fn_ptr, replacement_fn) \ >> + do { \ >> + typecheck_fn(typeof(fn_ptr), replacement_fn); \ >> + __kunit_activate_static_stub(test, fn_ptr, replacement_fn); \ >> + } while (0) > > Should this be somewhere more generic in the kunit headers? Damn, I meant to change this. I did a patch a while ago to fix kunit_activate_static_stub() so that it worked but it takes a really long time for kunit patches to end up in the mainline kernel. Hence this was a temporary workaround. I noticed my fix has gone in at last but I forgot to remove this workaround. Can you skip this patch and take the others (assuming you are happy with them) and I'll fixup and resubmit this test later.