From mboxrd@z Thu Jan 1 00:00:00 1970 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 C50371805D; Wed, 3 Jan 2024 10:33:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="apu9sLgz" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9F79CC433C8; Wed, 3 Jan 2024 10:33:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1704277988; bh=1BgUTpkdDldXnjMo4DLuL4PLeUJaaO/B1orsSOzYVL4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=apu9sLgzA6jGCkWi2oekCvCh3kuD04KzQY7+RZQxg6q8J/73xyTbESvy3qn94tLNv vVN9LZ2M2JYrhT7egPmWBgTcy6zNEWQfcGrXI/wCJXRDwIoSa9gHUeoSPd0E5iRe73 hoIDVKcmKu+XGI1Y68Fnc0dYXOn5l/HVbEhCBdBI= Date: Wed, 3 Jan 2024 11:33:05 +0100 From: Greg Kroah-Hartman To: Arnd Bergmann Cc: Jaroslav Kysela , Takashi Iwai , Arnd Bergmann , Yu Liao , Dawei Li , linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] ALSA: ac97: fix build regression Message-ID: <2024010332-sermon-snowy-cf47@gregkh> References: <20240103102544.3715055-1-arnd@kernel.org> Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240103102544.3715055-1-arnd@kernel.org> On Wed, Jan 03, 2024 at 11:25:38AM +0100, Arnd Bergmann wrote: > From: Arnd Bergmann > > The ac97_bus_type structure is no longer declared in this file: > > sound/ac97/bus.c: In function 'ac97_codec_add': > sound/ac97/bus.c:112:27: error: 'ac97_bus_type' undeclared (first use in this function); did you mean 'bus_type'? > 112 | codec->dev.bus = &ac97_bus_type; > | ^~~~~~~~~~~~~ > | bus_type > sound/ac97/bus.c:112:27: note: each undeclared identifier is reported only once for each function it appears in > sound/ac97/bus.c: In function 'snd_ac97_codec_driver_register': > sound/ac97/bus.c:191:28: error: 'ac97_bus_type' undeclared (first use in this function); did you mean 'ac97_bus_reset'? > 191 | drv->driver.bus = &ac97_bus_type; > > Include the header that contains the declaration and make sure the definition > is const but not static. > > Fixes: 66e82d219924 ("ALSA: mark all struct bus_type as const") > Signed-off-by: Arnd Bergmann > --- > sound/ac97/bus.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) Ick, sorry about that, this didn't trigger in all of my build testing, nor for 0-day, odd. Anyway, thanks for the fix it is obviously correct: Reviewed-by: Greg Kroah-Hartman