Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3979243pxb; Tue, 25 Jan 2022 00:31:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJyD8wjRQDxM/5DxXDdMn55cueml8DnI4Sxp0IEK5UWfMZBHJMOmoqbkm7uZwFotteLNF284 X-Received: by 2002:a17:906:3e12:: with SMTP id k18mr15492037eji.355.1643099507641; Tue, 25 Jan 2022 00:31:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643099507; cv=none; d=google.com; s=arc-20160816; b=hDN8jaa2ttASPuqFu8bOXHRKGh9a4IPBlfJgMuI5doPUi9IIqByJx9ey7gGLGGCBAz 0UjBwgnfON972/d4uUDWoUTlqQVLFRPl0Z7dFs9WyAhU7Yr93l13YMJrSrtCHHZ8Qkwv kYFDvWuppLpsuvp+7gU8JwfQZEUQFuamhn+wrsKxqg7As1fXAWRe8WlQ5mmHF58Z7lln r6M6mKrQt2r5AqyR1kvPwgFheisz8tz30+qcfVOTkADUfyNW3yX2r2A8wLkIocc7si0N /ZW0JJIFv3s7xKDnsfmcVLQ3pDPDNBEd2isXuXPXXcRWgCdQMEPNX5ksV+6V+K/WvEdw cgaw== 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=rgNz2aYruor/DVGt1fTmc0L5Dhenfdro+FRFgeJVtzg=; b=03WjKdq+WbiesZH7TPLddEdZ2bJg939RIoJ8Pwwyu1/vTkO/pRl9Bc465s1WPIjSjj 14jcmkjjvcXM0oueyB3lSC9aAy1I/7aeaCeFfKYKyOPLfBp/Gh7uktEcKjOARpHsrttm r32oaplpotVCFlpmILWyy3s/iQchc0fkcINsswK3JC73mrK1gq0+4kBm34hh442Rm7+g JQIELmF58isKRmci/lWkV2aYx2QZfux546cGlwrSLQE4NHAcpWumxLsG7Jycd642P/A8 I0iR5VXDb15yRGysL3URNh4D9nn/+MXq522MFs7N9ArtE3e0OsIO4mjIaTgBWK3FwQH2 s6Fw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=B85DGnvC; 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 o11si1788403ejy.636.2022.01.25.00.31.21; Tue, 25 Jan 2022 00:31:47 -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=B85DGnvC; 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 S3423389AbiAYCev (ORCPT + 99 others); Mon, 24 Jan 2022 21:34:51 -0500 Received: from dfw.source.kernel.org ([139.178.84.217]:54068 "EHLO dfw.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1384352AbiAXU3e (ORCPT ); Mon, 24 Jan 2022 15:29:34 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 3B8C361507; Mon, 24 Jan 2022 20:29:34 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1A8DAC340E5; Mon, 24 Jan 2022 20:29:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643056173; bh=1h+/Z/DAiDZoSEbnMDcCn4AXxNjDsVzS3lRJAXu21lc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=B85DGnvCshbpf+rM24EBp7gIRmu3yCkGF1Oe4b8/Mcmh8UnAMwinVBWrsQRiXerkG phVuJQJSwxe9Ono0EbTl6sya1luaVwOE6zn4nP0Ku7YbaoeWFRmnQsbPYefFG32Qfr Z+jykpdx5xYQPnCIrDYdZtwYhko0lT6ndBJv5Wo8= 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 5.15 394/846] ALSA: oss: fix compile error when OSS_DEBUG is enabled Date: Mon, 24 Jan 2022 19:38:31 +0100 Message-Id: <20220124184114.549648871@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184100.867127425@linuxfoundation.org> References: <20220124184100.867127425@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 20a0a4771b9a8..3ee9edf858156 100644 --- a/sound/core/oss/pcm_oss.c +++ b/sound/core/oss/pcm_oss.c @@ -2065,7 +2065,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