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=1796182086; b=mPwvRlKFIwG1zhJSUq19H2xI0IVwom2kufegjAWq8yXGz7zAe98tERL93PeUOSC5rdsd vwSIvEKeu/kmZagiFiGOu5D0eYbVYP7NAew5zJZ6R1/zaJu27jI/tj/tp+AcaP+u1bBCw vnd2L5M16Ao0WqK4nb/2TLqJNzThRwD1xgmBvQrMyOSDK+X0/EHvwLjoO9iBSS7d/uPm/ 9+jp9efyRBa1vklfPsSQblEkcFS5yO1oW2dkOoCdZctMKO9jqIHHog7txh0gwR6ELeJ7m LEpWOPgeCuya2zcjwYvm+xB7UI7SBwnUeoNNCMQCUY9zPaPoGekmKeGE30ZeouueDdA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796182086; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=bxo1aaCg/9DhB0WjU2quYgD5xQWRWV0jwMKXpMBteik=; b=T50D33S3cxleVx8x/BkOGZ1n1DOHeK2cnd+HWJveFUwvKqFSj61aPMllfPgArzKAyBuc C26N6G+CIIS5db2nSKfW4+MoKfffRQf/yOztwAl9+Y9RDXw0FuY+NYCf2g5dqSMeVvtF+ DTWxkSE/70wBV0FCOI4e3CiCtqbiqYCfyKSX1WA6G95xo9V0UZB3/ML4gX1/UFZHnd68P E0ENigQ3TXycovqqzcDcXwetFCMysO2vbMvl5WbBlRyFOVpzlC72xPQws5cJsjeNdDXWB qVnEmHw6D0R+MFmUEYH0+N2TBq4AMiXEJPM0UaG+EA2d4xdsOP5P/eIVxC+ipWytZ/Q== 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=YU2jJER9; 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 4BB5B606A336 for ; Wed, 2 Dec 2026 03:28:06 +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=YU2jJER9 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1410E1F00897; Wed, 2 Dec 2026 03:28:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796182086; bh=bxo1aaCg/9DhB0WjU2quYgD5xQWRWV0jwMKXpMBteik=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=YU2jJER9pRcTiM6Tv9Z5P7QJX1esxDWfahip3V1j4hcrC5xhOfwZRFQkB3ip87ZUn kHIEQLz3rXI1KwXdppMVHUM6UnVbfAAAu0xgNGJYzC6t3Gwba44b7iuWCc0EwQOeSD plgftZ95kIIoAbqXm+CFTbz6upzAxuyUhYNv2RlSBKYOybN8Fs+IhQ1niCvjtl18x4 BuF2B5S4wb9azbQlPNB5SK+SeOa73CccHmrQSQF5GHq9Qqnx8KhYdIX0vEoDuZ9O6D GIkGuWUidN/DeUtZ0BEVMgP1rpVu7nIPsR0TsqDeSrLAtnhS9OWh2u/PCUqBhIBQBH W7meXi5xRsn/Q== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [RFC PATCH v2 3/3] ASoC: codecs: Initialise PCM hardware tables 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-4-ericcurtin17@gmail.com> References: <20261202031733.1704898-1-ericcurtin17@gmail.com> <20261202031733.1704898-4-ericcurtin17@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Wed, 02 Dec 2026 03:28:05 +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: codecs: undefined DEFINE_GLOBAL_PAGE_SIZE_VAR_CONST() breaks build -- commit 202833e59f958a583de89e2f5513331103c9d6c9 Author: Ryan Roberts ASoC: codecs: Initialise PCM hardware tables at boot for page size This commit converts the snd_pcm_hardware tables in cros_ec_codec.c and rt5514-spi.c to use DEFINE_GLOBAL_PAGE_SIZE_VAR_CONST() so they can be initialised when PAGE_SIZE is selected at boot. > diff --git a/sound/soc/codecs/cros_ec_codec.c b/sound/soc/codecs/cros_ec_= codec.c > index b6f7016a324a8..f6e0395d47a18 100644 > --- a/sound/soc/codecs/cros_ec_codec.c > +++ b/sound/soc/codecs/cros_ec_codec.c > @@ -874,24 +874,24 @@ static void wov_remove(struct snd_soc_component *co= mponent) > &priv->ec_device->event_notifier, &priv->wov_notifier); > } > =20 > +static DEFINE_GLOBAL_PAGE_SIZE_VAR_CONST(struct snd_pcm_hardware, hw_par= am, { > + .info =3D SNDRV_PCM_INFO_MMAP | > + SNDRV_PCM_INFO_INTERLEAVED | > + SNDRV_PCM_INFO_MMAP_VALID, > + .formats =3D SNDRV_PCM_FMTBIT_S16_LE, > + .rates =3D SNDRV_PCM_RATE_16000, > + .channels_min =3D 1, > + .channels_max =3D 1, > + .period_bytes_min =3D PAGE_SIZE, > + .period_bytes_max =3D 0x20000 / 8, > + .periods_min =3D 8, > + .periods_max =3D 8, > + .buffer_bytes_max =3D 0x20000, > +}); > + > static int wov_pcm_open(struct snd_soc_component *component, > struct snd_pcm_substream *substream) > { > - static const struct snd_pcm_hardware hw_param =3D { > - .info =3D SNDRV_PCM_INFO_MMAP | > - SNDRV_PCM_INFO_INTERLEAVED | > - SNDRV_PCM_INFO_MMAP_VALID, > - .formats =3D SNDRV_PCM_FMTBIT_S16_LE, > - .rates =3D SNDRV_PCM_RATE_16000, > - .channels_min =3D 1, > - .channels_max =3D 1, > - .period_bytes_min =3D PAGE_SIZE, > - .period_bytes_max =3D 0x20000 / 8, > - .periods_min =3D 8, > - .periods_max =3D 8, > - .buffer_bytes_max =3D 0x20000, > - }; > - > return snd_soc_set_runtime_hwparams(substream, &hw_param); > } > =20 > diff --git a/sound/soc/codecs/rt5514-spi.c b/sound/soc/codecs/rt5514-spi.c > index bcc2ff28b1253..f619f34753977 100644 > --- a/sound/soc/codecs/rt5514-spi.c > +++ b/sound/soc/codecs/rt5514-spi.c > @@ -46,7 +46,8 @@ struct rt5514_dsp { > int irq; > }; > =20 > -static const struct snd_pcm_hardware rt5514_spi_pcm_hardware =3D { > +static DEFINE_GLOBAL_PAGE_SIZE_VAR_CONST(struct snd_pcm_hardware, > + rt5514_spi_pcm_hardware, { > .info =3D SNDRV_PCM_INFO_MMAP | > SNDRV_PCM_INFO_MMAP_VALID | > SNDRV_PCM_INFO_INTERLEAVED, > @@ -58,7 +59,7 @@ static const struct snd_pcm_hardware rt5514_spi_pcm_har= dware =3D { > .channels_min =3D 1, > .channels_max =3D 1, > .buffer_bytes_max =3D 0x20000, > -}; > +}); [Severity: High] Where is DEFINE_GLOBAL_PAGE_SIZE_VAR_CONST() defined? No header in the tree provides this macro, so building cros_ec_codec.c or rt5514-spi.c fails with syntax errors at the declarations and undeclared identifier errors for hw_param and rt5514_spi_pcm_hardware. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261202031733.1704= 898-1-ericcurtin17@gmail.com?part=3D3