Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp7038237rdb; Wed, 3 Jan 2024 02:25:58 -0800 (PST) X-Google-Smtp-Source: AGHT+IHQJLwIlnyh9BXv9mCfjtsg1jWesvAb3Up689zKnQaBtRYREJz3iQk2DrNTTPNElecdlnhP X-Received: by 2002:a17:903:1250:b0:1d3:bb4b:dc04 with SMTP id u16-20020a170903125000b001d3bb4bdc04mr1051988plh.17.1704277558371; Wed, 03 Jan 2024 02:25:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704277558; cv=none; d=google.com; s=arc-20160816; b=dGz4x6JPGaz27i1Re6QFmBofBFCPs/P9W8V0uUjr3AAmxbGmDsJfcOdreHuTVVp8q6 29K+xsuM/Y+3lMoep1znU6YhNCrfcRsetT0bl3fsTIrTxKds6KLSLyEM1wIOz+I5PDCb V7tS/t0eTdAf9qH9EfHJMA0QckXaJxChtKbCNmb+DPm1V3nvACFn8Up3dfelnjZIdzPb ukbB30ZAGPy3uCHjVDVXqyPfC3GPiGkwJD2j8NAJsgaPKVgGmikMo8Z85JrCqMJZbcfp 5aHmYfzeIY2Z0cBYrVBzoU6T7XjFRBZxuuytoDstExuhlX++6zhsq415kki2ZhaoSyLr 9mpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=IzAdXPUc+HG/LidHvg/Cs9BjSsFs3vyo+sKAaiuG+Fo=; fh=7jx/fX6OV/wQZsc/YufV+HQOlC1bhat26M38YXfMU4s=; b=pjxbDcFGA3qVceliDU4llKW1n3dFOVTeN7UUGvD0AV1L1AdkvUrlFF2bW31SSitz+9 oW80E+J9ax2ZYrybVmcjyFnKcvIO4y52+oKWn7dCS4xLzXENygaWX/rQZ5bUOqaWH0y0 8bQGlZBpEFlhbY4HGxzZqYC1XUnVRGS/u15ksrVS0WO+KUmBINOF8gl+dp68p6POiKM/ rNZcqHd0BfjNJt0aLLgcWoxQDN1DVz2xS0+CfY3bCrAu2CTyokDndAj5ZnehZzTeLrkw Hn0MyoCR9ZtzksbRyS2wabXkl3SD7zAihFToAM1XsC32cAT9Lv2tlsT1bHdkHMtdLcGS f9Rg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kSkHl15U; spf=pass (google.com: domain of linux-kernel+bounces-15384-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15384-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id bn22-20020a056a02031600b005c6689f9d69si19378851pgb.187.2024.01.03.02.25.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jan 2024 02:25:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-15384-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kSkHl15U; spf=pass (google.com: domain of linux-kernel+bounces-15384-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15384-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 0EE072854BA for ; Wed, 3 Jan 2024 10:25:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3FA8318B0B; Wed, 3 Jan 2024 10:25:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="kSkHl15U" 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 76BF418C01; Wed, 3 Jan 2024 10:25:49 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 41C5AC433C7; Wed, 3 Jan 2024 10:25:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1704277549; bh=70yV6dPZoIZpzr4uUDr7MGvuMP16x0pk4SVKCZWWsuw=; h=From:To:Cc:Subject:Date:From; b=kSkHl15UOLHlC/0U3rSSEIjwTcnL4eEkEtRRH+if+3/JC+QXWyx6ru/bs+1Vt70Pn htFUvg8z57Q2/T1YjBgcKvivGICml3Zj5T5ITwplW0cQdfvezkOg37NyDIiF8ATAcC 12zhkYeNqG0uBnf/VEM1grKmQ+EaXkB9Bw/l5+N6tW4kHEnvGKAVPLAzPIwCICsJea FV+JMKOu++SNCg0mMyDfhhLAOVzQX5PGRYLiqJhwLpwkIba+3txhhqjPjcX8xqut3/ oFRv9k9sGXA/8AIdtDpEfAlcGUSE4xKIVGSRUXGR9yLPcEMN1PV+Upc07we7Rrzuwh Vo1ZAg2XII2jg== From: Arnd Bergmann To: Jaroslav Kysela , Takashi Iwai , Greg Kroah-Hartman Cc: Arnd Bergmann , Yu Liao , Dawei Li , linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] ALSA: ac97: fix build regression Date: Wed, 3 Jan 2024 11:25:38 +0100 Message-Id: <20240103102544.3715055-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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(-) diff --git a/sound/ac97/bus.c b/sound/ac97/bus.c index 1dc7965eb14b..5e46b972a3da 100644 --- a/sound/ac97/bus.c +++ b/sound/ac97/bus.c @@ -15,6 +15,7 @@ #include #include #include +#include #include #include #include @@ -529,7 +530,7 @@ static void ac97_bus_remove(struct device *dev) pm_runtime_disable(dev); } -static struct bus_type ac97_bus_type = { +const struct bus_type ac97_bus_type = { .name = "ac97bus", .dev_groups = ac97_dev_groups, .match = ac97_bus_match, -- 2.39.2