Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp270375pxx; Thu, 29 Oct 2020 02:05:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxIQDW+m5iC0Mur2jjY1fSXV9xq2+j4wf4zkchk9c9H5rL6fRGDZ3lsSafqfJy3UiIRVq8b X-Received: by 2002:a05:6402:1241:: with SMTP id l1mr1621266edw.358.1603962359564; Thu, 29 Oct 2020 02:05:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603962359; cv=none; d=google.com; s=arc-20160816; b=aVh/OvR0FHjA1VUDymUpSj6u9BUMdNsXuU7Vmr1aEs09tbii8L304nzJrtUzFovtkb gOmLrWMqM0JJ6nKWsgElHnRGxQClB3/nTIEs6QrjaPJGD7BfpJp4EaWsgWdaOQvHQGC2 C8WAN6HzKwvqsmvneK8mIZigcSiyuZbCG0Idwe6qgxTFB8ZcS6HEvtrZFikMwOKAwoud RPRZG77/FSiH0qIihp9WrF6sDlSREd489rw1Vjz2EO9hOjhOfOXklzQcHTdUXbdlUnfY 8LTMSC19M0Yl9Aa2MmeE2U52jVKmRNMCUZryNyft9M89Y/DMQKsIjhhZnlzsupQRSGeR tf7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:in-reply-to :subject:cc:to:from:message-id:date; bh=5Wnu8oBGoZiDnRjoYrbNlwpO/3lAqkFESSuMTEuH+bk=; b=idViQTDCObZDGU04amjxerTn2Z4cxERmiV28cArtVmvGHAWgxexGWx+/suXPP+grbL G2nrF5EQ96nA2cZsLgMaT5ApoUT2rS5dv3wtyV36ieWwfk+CDIWmvUFJFyAmdIV+DPou nQcWtHs62TFzXZjZwf/nHyp8zRF6kIVIYDs0ehanJ+Y/Uz9WDlQKHySqIK04l0Xe+Geb buOM3FdLoRgphn09pULWuEoW13Eh0GNH8x6HTd2NnjUfI4Xx/u6x3ncbN0WKbFsOGTdE U2+U4XrxVbv+L0sBByPZb+I/TbnRA6rCUQynKUQnab5YBHk1OElTz/Xk6oP+B0K3lQBu 7Hyw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y10si1352789ejq.401.2020.10.29.02.05.36; Thu, 29 Oct 2020 02:05:59 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731916AbgJ2HtB (ORCPT + 99 others); Thu, 29 Oct 2020 03:49:01 -0400 Received: from mx2.suse.de ([195.135.220.15]:60082 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731839AbgJ2Hs4 (ORCPT ); Thu, 29 Oct 2020 03:48:56 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 9900FB02D; Thu, 29 Oct 2020 07:48:55 +0000 (UTC) Date: Thu, 29 Oct 2020 08:48:55 +0100 Message-ID: From: Takashi Iwai To: Coiby Xu Cc: Jaroslav Kysela , Takashi Iwai , alsa-devel@alsa-project.org (moderated list:SOUND), linux-kernel@vger.kernel.org (open list) Subject: Re: [PATCH 01/25] ALSA: core: pcm: remove unnecessary CONFIG_PM_SLEEP In-Reply-To: <20201029074301.226644-1-coiby.xu@gmail.com> References: <20201029074301.226644-1-coiby.xu@gmail.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/25.3 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 29 Oct 2020 08:42:37 +0100, Coiby Xu wrote: > > SET_SYSTEM_SLEEP_PM_OPS has already took good care of CONFIG_PM_CONFIG. > > Signed-off-by: Coiby Xu It caused compile warnings. Was it already addressed in general? Or we may use __maybe_unused attribute instead, but it's just a matter of taste. thanks, Takashi > --- > sound/core/pcm.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/sound/core/pcm.c b/sound/core/pcm.c > index be5714f1bb58..5a281ac92958 100644 > --- a/sound/core/pcm.c > +++ b/sound/core/pcm.c > @@ -599,7 +599,6 @@ static const struct attribute_group *pcm_dev_attr_groups[]; > * PM callbacks: we need to deal only with suspend here, as the resume is > * triggered either from user-space or the driver's resume callback > */ > -#ifdef CONFIG_PM_SLEEP > static int do_pcm_suspend(struct device *dev) > { > struct snd_pcm_str *pstr = container_of(dev, struct snd_pcm_str, dev); > @@ -608,7 +607,6 @@ static int do_pcm_suspend(struct device *dev) > snd_pcm_suspend_all(pstr->pcm); > return 0; > } > -#endif > > static const struct dev_pm_ops pcm_dev_pm_ops = { > SET_SYSTEM_SLEEP_PM_OPS(do_pcm_suspend, NULL) > -- > 2.28.0 >