Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3547731pxb; Mon, 24 Jan 2022 11:57:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJyl6dtVH44E7VDX4M24+MtLHoIwoJSTziA/2B6ps+nlRcV4miPX+PX/LEEpaxfwIiviHR+g X-Received: by 2002:a63:8048:: with SMTP id j69mr10125056pgd.485.1643054259918; Mon, 24 Jan 2022 11:57:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643054259; cv=none; d=google.com; s=arc-20160816; b=ix3SQjryyvB5szB1dwQvef7Tts5chEC5GdLZLF0hr2WgNnLT8Q9hfbAbfadnhqeyeT TUwUZf7dlZC130XN68nd7C2N246HwcsYTSYeujjgN7QSTr6iHUj6HeCCwya/4/M2t47Z cR/nsG8BkCzk7NgcZlCHlaVCbyDrb2PMR9ltWWm/mu8FeHbxgRxsL19AZ0mz84CIM4Ig 9pRkfeVdtm+3EUm3JrhUorxYzq81ZPm1qxGlPISmU8VS+29lABT5RmfT6uu7XbN/XLWN tII3jcXCd7yVQ2mdNfFDSm7WNM7G6+NGumlkGrS7nmhAnvqk+KzpxNOgx6Ab9xoEOQ6a 1dOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Vjkg12lnfbrl/Xz/Ztou8PjwlXuQeAcCNBnNBbSVBgA=; b=GaL7YWDrcRrj2C9IFCa4JOWwMome1LewF3pKjXw8lAgwUesBluEd8Mi8focQcsPK87 A32E4lLLpKfOR0kUfGdi8t38UbFjACdMf3PBmwTTOxYgPGSRu0D54r8GOoX02rDISeoO IwtPcldxIKQKPVr6PCE//whjPZrEZ3RPdxvkLG3JidIomUPyyT1zcG/g08dE00fWDD2n J638vKTQ+64cLHnxG5EHtoUr/rLgJVCqd52LHu4rLuyndUGTNeEuQAO8jbJicxdKA/om chM3P2TcC29FRXgjnk/UiNhf0mFfdhm/pz/9825FRcN3Irr+eHAl70ulCrbXrOtpsfaV r/fA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="Or/PiTuG"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b3si8778583plh.40.2022.01.24.11.57.28; Mon, 24 Jan 2022 11:57:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="Or/PiTuG"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245701AbiAXSvb (ORCPT + 99 others); Mon, 24 Jan 2022 13:51:31 -0500 Received: from ams.source.kernel.org ([145.40.68.75]:50044 "EHLO ams.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245677AbiAXSuX (ORCPT ); Mon, 24 Jan 2022 13:50:23 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 34CB6B8121A; Mon, 24 Jan 2022 18:50:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 52E4BC340E7; Mon, 24 Jan 2022 18:50:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643050220; bh=qvukJeWuPH2cNPFvVyAkRgKIPsGmzXQ3XKZOb3xPYf4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Or/PiTuGquJvvVEFrTahnO6HHw38/JzNj2ces5m7QcY1/bqMxwnxat7gVCFR5L5yp FV5ZjMP91OexFjUIMesMeq3tbCT2hq1qZsIFsljqpxywP4vc2hZsNQmbSlCGaFxTEr HvuaW9pXLdM//Z5mJW3SXrgwfgvKe8df83BPAQ1s= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Bixuan Cui , Takashi Iwai , Sasha Levin Subject: [PATCH 4.4 047/114] ALSA: oss: fix compile error when OSS_DEBUG is enabled Date: Mon, 24 Jan 2022 19:42:22 +0100 Message-Id: <20220124183928.557739669@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124183927.095545464@linuxfoundation.org> References: <20220124183927.095545464@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Bixuan Cui [ Upstream commit 8e7daf318d97f25e18b2fc7eb5909e34cd903575 ] Fix compile error when OSS_DEBUG is enabled: sound/core/oss/pcm_oss.c: In function 'snd_pcm_oss_set_trigger': sound/core/oss/pcm_oss.c:2055:10: error: 'substream' undeclared (first use in this function); did you mean 'csubstream'? pcm_dbg(substream->pcm, "pcm_oss: trigger = 0x%x\n", trigger); ^ Fixes: 61efcee8608c ("ALSA: oss: Use standard printk helpers") Signed-off-by: Bixuan Cui Link: https://lore.kernel.org/r/1638349134-110369-1-git-send-email-cuibixuan@linux.alibaba.com Signed-off-by: Takashi Iwai Signed-off-by: Sasha Levin --- sound/core/oss/pcm_oss.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/core/oss/pcm_oss.c b/sound/core/oss/pcm_oss.c index 593791d9a334f..6af4afe23e373 100644 --- a/sound/core/oss/pcm_oss.c +++ b/sound/core/oss/pcm_oss.c @@ -2121,7 +2121,7 @@ static int snd_pcm_oss_set_trigger(struct snd_pcm_oss_file *pcm_oss_file, int tr int err, cmd; #ifdef OSS_DEBUG - pcm_dbg(substream->pcm, "pcm_oss: trigger = 0x%x\n", trigger); + pr_debug("pcm_oss: trigger = 0x%x\n", trigger); #endif psubstream = pcm_oss_file->streams[SNDRV_PCM_STREAM_PLAYBACK]; -- 2.34.1