From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796182076; b=1oj2A5oIeIWZ6gR9Il3CbHD+l6q3rUPVuKNJ+qqs3OoKvmtEgblSkbOU2tQcwufsW5Me 8F0mVR00+FTSAV4ZZZd/ae+URv4UQGXwT5BNgD4FPn3zfEzlIK55TcyTV0PQ31gzNNAS0 H5cFNnFwAnYC4PhJA3ZefPd1WS0davkXaG2Y6g6uJOCQn/C8Ocskrq9Xvjka2jFNNDIm/ rxVijvwdg4V0d6aYQzHSFCz656bQQAuwZ4ka5j3Tug6amfU2/8GvhWRs06SY9VnV13ddV IxSU0rP3TTSRAfEhZ7FR6wj/XQtNkPB2j4eeU9FHR1sOdeLebA80I2f5LNyd/OE+Cnw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796182076; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=8dbvNzwvXnDp8BXCGoiyNhf6yjEIG7MqZebgtUpr15M=; b=NLjfnVhAh5kr5gfRms8UIkGEFduVFcMUeMSzz2eMVcHYChvuYyx3p/XClpMT8Vzw9eNK eIO+TBsMNl78ErBaTdld5T6MzYCrGSrYlKH+vv99QznBDPisc94rKvSU6529dlgVneuhI u8vxH6UOZDk4EMjBqhCIwWSGU5cLhqbZIHjSXWGrnNObsY5gaIST6QZdlEPAeN6GJhpno F2vIvInKVbOGj3ymMMGE91hN1SqXk9xIxxDt2nQQtCIA3Bln2mEPRK5YRWNE2CypwvFhd Iw6i0RDck1IFp4+6/k67O1ZhPzdCOaZOC8YtF1Jb2YVuJaa63iHi2FwLo4DodpI5N4w== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=K38Msyth; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0C9A4606A31A for ; Wed, 2 Dec 2026 03:27:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=K38Msyth Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7C4F71F00893; Wed, 2 Dec 2026 03:27:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796182075; bh=8dbvNzwvXnDp8BXCGoiyNhf6yjEIG7MqZebgtUpr15M=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=K38Msyth5S8F4HWJnUX8rlyC5E9P/Q2SD93nNZOtOKzynAGJ5A93R9MGCwPb5/5E9 WjT4XfTIr4Gu40j33j8zkcYY9ZGDvXCu4HNYJPjzAjUka7HMdNitVxR1+liJw+dqGW aZMkbo8H6SgbqHiX7HjlGwx10pf2I4JRnoO1p39WtosY9iruxdAGi+85xE5V4Hk2Qc y0IrffDyo2/boV9udvT9PDsYb13cQm5p8VRBkAGb0VocIwKA64dZP/KFi6poan3iLj vCvte8kdrhrErJ/DR5GIHSvHFu5DaSHD3/X1xAxF78VJ2RP2stwRgBk0oLBtSXb1I5 rh0hJYr3VFtDg== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [RFC PATCH v2 2/3] ASoC: tegra: Initialise PCM hardware limits at boot for page size Reply-To: sashiko-reviews@lists.linux.dev To: "Eric Curtin" Cc: linux-sound@vger.kernel.org In-Reply-To: <20261202031733.1704898-3-ericcurtin17@gmail.com> References: <20261202031733.1704898-1-ericcurtin17@gmail.com> <20261202031733.1704898-3-ericcurtin17@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Wed, 02 Dec 2026 03:27:55 +0000 X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [High] ASoC: tegra: build failure from undefined DEFINE_GLOBAL_PAGE_SIZE_VAR_CONST -- commit 441dd3749331e159481ddc8e8e434e0e57f51521 Author: Ryan Roberts ASoC: tegra: Initialise PCM hardware limits at boot for page size This commit switches tegra_pcm_hardware and tegra_dmaengine_pcm_config to DEFINE_GLOBAL_PAGE_SIZE_VAR_CONST() so their PAGE_SIZE-derived fields can be initialized at boot when boot-time page size selection is enabled. > diff --git a/sound/soc/tegra/tegra_pcm.c b/sound/soc/tegra/tegra_pcm.c > index c490a9e668586..4fe019433f9a4 100644 > --- a/sound/soc/tegra/tegra_pcm.c > +++ b/sound/soc/tegra/tegra_pcm.c > @@ -24,7 +24,8 @@ > #include > #include "tegra_pcm.h" > =20 > -static const struct snd_pcm_hardware tegra_pcm_hardware =3D { > +static DEFINE_GLOBAL_PAGE_SIZE_VAR_CONST(struct snd_pcm_hardware, > + tegra_pcm_hardware, { > .info =3D SNDRV_PCM_INFO_MMAP | > SNDRV_PCM_INFO_MMAP_VALID | > SNDRV_PCM_INFO_INTERLEAVED, > @@ -34,13 +35,14 @@ static const struct snd_pcm_hardware tegra_pcm_hardwa= re =3D { > .periods_max =3D 8, > .buffer_bytes_max =3D PAGE_SIZE * 8, > .fifo_size =3D 4, > -}; > +}); > =20 > -static const struct snd_dmaengine_pcm_config tegra_dmaengine_pcm_config = =3D { > +static DEFINE_GLOBAL_PAGE_SIZE_VAR_CONST(struct snd_dmaengine_pcm_config, > + tegra_dmaengine_pcm_config, { > .pcm_hardware =3D &tegra_pcm_hardware, > .prepare_slave_config =3D snd_dmaengine_pcm_prepare_slave_config, > .prealloc_buffer_size =3D PAGE_SIZE * 8, > -}; > +}); [Severity: High] Does this break the build when CONFIG_SND_SOC_TEGRA is enabled? DEFINE_GLOBAL_PAGE_SIZE_VAR_CONST() is not defined anywhere in the tree, so compiling sound/soc/tegra/tegra_pcm.c fails with a syntax error and leaves tegra_pcm_hardware and tegra_dmaengine_pcm_config undeclared. Also, since these PCM period and buffer limits are audio buffer sizes rather than MMU page size limits, could they use SZ_4K and SZ_32K instead of PAGE_SIZE? --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261202031733.1704= 898-1-ericcurtin17@gmail.com?part=3D2