Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp7040865rdb; Wed, 3 Jan 2024 02:33:16 -0800 (PST) X-Google-Smtp-Source: AGHT+IGUQC51gCasW6lC6hYjevI4fFWgWwLcKJ2AktZKwAhwWAvQUv3D+EoX2u01drtHdLy/sR13 X-Received: by 2002:a05:622a:1302:b0:428:327a:5865 with SMTP id v2-20020a05622a130200b00428327a5865mr2003462qtk.38.1704277996278; Wed, 03 Jan 2024 02:33:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704277996; cv=none; d=google.com; s=arc-20160816; b=SS+KHaEk3SzuU9jmyq1J5rEV8VhaODhaDYfH+UV+HFrW4O/bQUO7VYRJcziqIaemwl Ys7eViAKYYzSEYia7Kt3Lu4cacVeyJclkBSp8PLibHbpdq4m1wZ44lSAmDA7ceXeH6Rb aLD1w9jxWmbIgwCDHVsPioBDryFI1isBERI/OxmJOCE1bxMGDOiMCt0+8IKaaN7Dvkpn lLPxaol8J+Ee/hdbucDVLZiQ5pogKGLg6FcZ/fN8XD953m85edPaOsSnOCrBd8v6nexf e/I9A+/lJoZww4OMh0Ehnm8OOuOUXxROZi5KbsU26zX2UhPNAgWpyCCRlZlXMakLrsbA i6AQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=suV3uBKSjr/Hci4Oa52EDJkS/tNQWHdJTVQ7i39QZFw=; fh=KGWtzTcjALmQePd239cSxmGF8pGbeWNxfJ4+ZbavJTM=; b=R+Kh9nfq6qqAG4oCRMAwl119yXtvDRkxY/NnaA1MIehI6qQEJCz6VXiZLwe9T6kwQe VGqqpGjtIULlGGb1lXIMTtlPNshrtWa/jFZsVlu0JwoHljVjjkud1tIWpSWk8SiJqyNH Q32ke0lmYAmAVWT8+97sf5TKm6THIhXAG+fenhQfDH+kdFvmJJp/KttueXwYBlJS33iP +4DGNx7ORSn5oCFrPKv+Ge3gHE1CFRxsEhho9haczbSNpWNdVP+eoIkpiUUxh8DU94Pc 2KluFSfIKIf3Z+oEamxk0eWdn4Q8DEgPfcfonvoW2XBbaytOohbJa3MAUaFAHy/EpJN5 9wQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=apu9sLgz; spf=pass (google.com: domain of linux-kernel+bounces-15395-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15395-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id i13-20020a05622a08cd00b0042812e71c6dsi9210218qte.226.2024.01.03.02.33.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jan 2024 02:33:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-15395-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=apu9sLgz; spf=pass (google.com: domain of linux-kernel+bounces-15395-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15395-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 10C881C23306 for ; Wed, 3 Jan 2024 10:33:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 940A418C10; Wed, 3 Jan 2024 10:33:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="apu9sLgz" X-Original-To: linux-kernel@vger.kernel.org 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) 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-kernel@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