Message ID | 20230616090156.2347850-2-arnd@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp1193270vqr; Fri, 16 Jun 2023 02:21:01 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5M2T5jr9+fqPf6PP008F5fTZZrLuxSFCUclFrnZ1fySjefAd12ZAW/yFhhBozOJnPdTZ9S X-Received: by 2002:a17:902:748c:b0:1ac:815e:320b with SMTP id h12-20020a170902748c00b001ac815e320bmr1272573pll.17.1686907261255; Fri, 16 Jun 2023 02:21:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686907261; cv=none; d=google.com; s=arc-20160816; b=WC20yoEVNcUZd2B0cp3jVGAhIePVrR6F5kO+Wu7ozFft+cID1QUJyU57ARYXUXxUNp 52tt2SEML6LLANiijrP1nDCAlhtCMxcuusUWXfWayYjRW13vPBNbiRZdWb+FVMrNj0dp 9FADxIC/ZTBLtYc+44LOONYfTINCrRoJGnbkTN0E0F975mYmtIzKVCbh/WecrmE9K4oU bx5tnUDsdM+5mVO1Jd0pKpisOlfioBTZTTPlwYUS5HwMbv7BhhltqXEvhH+KcEn3t8yS koHf0BZI+QK53ichYehA6GecI1CihvTugJWxKY03PKmzGIUmcqBW2goJiTj6X4EpCFJY XWvA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=4UJ0nGl4pUCOD9ku443NVrM2HltUbD7L7AByD++tvag=; b=jPo4wJqG2D6DCLgXdX9BiDAQfDk4DY0sCznUumnKr74ngPCWHxLZ+1GC8LD+56eqqc QZcq0STeD67JuA8JiY/qNpCbfnM9f772tnwK4s8dXsRASdTyqY/FSXUmvLUsByczZePW PWJBuxfBubl2nFWWEBBmaPchHqPXOHLZ7Kjj5fmjfEf8ff5nv5nyYmY6qdz61rzoPHEu nmOsRmgQdVVMN2NYVroSgG8x1NJ3HSVKwNLy/wpeZG13nQzW9hXaD+ho3DnLrknfiAom aw12X1cN12Vx2J62TlYGtvPF1SfufVVtzlC/nro1KgoxB8W/yDBz2IstKXjrOHV418HM dUfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="q/nhG7AO"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x5-20020a170902ec8500b001ab19e023a1si15988425plg.375.2023.06.16.02.20.46; Fri, 16 Jun 2023 02:21:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="q/nhG7AO"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234252AbjFPJFl (ORCPT <rfc822;maxin.john@gmail.com> + 99 others); Fri, 16 Jun 2023 05:05:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53376 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241161AbjFPJEX (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 16 Jun 2023 05:04:23 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4204846AC for <linux-kernel@vger.kernel.org>; Fri, 16 Jun 2023 02:02:19 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id CF85B60EA6 for <linux-kernel@vger.kernel.org>; Fri, 16 Jun 2023 09:02:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 55DC8C433C0; Fri, 16 Jun 2023 09:02:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1686906137; bh=UOnPoFg43i3UesyhFVozRmIc8vnbB70GQh4IzFCjtN0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=q/nhG7AOdYsI3nv+QMHa1sa79lU32ytFCuAbdWYzzYuo0eZvAqQqwJjHiYUk0p+x6 lJbLILzZUk+zlak4Hv/XANuqsfyEkHsj3WMQObqLLLFsRUiadkD63bjp0TRVslmGQ/ AhYVR87FEhBmKcXkTwLtddA+M8gGyIHtTFUGIlO/QiGJQ+Bj/gaDku/tSb6MKz2mao 5Yk3FQeLdKKMxKVGPv0o4CfrP3/U1lh/NPjRyzAvgO+GcO5uazcdgJaJRpuX0Mpzwj MZvk4kxH4F5HRJREvI71UF7RixnpxI8z8cURMJhlJ7U0sfhgzyUc/UGPvCfhOikrTS /syyNBHkwic9g== From: Arnd Bergmann <arnd@kernel.org> To: Mark Brown <broonie@kernel.org> Cc: Arnd Bergmann <arnd@arndb.de>, Liam Girdwood <lgirdwood@gmail.com>, Jaroslav Kysela <perex@perex.cz>, Takashi Iwai <tiwai@suse.com>, Yingkun Meng <mengyingkun@loongson.cn>, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/4] ASoC: loongson: fix unused PM function warning Date: Fri, 16 Jun 2023 11:00:38 +0200 Message-Id: <20230616090156.2347850-2-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230616090156.2347850-1-arnd@kernel.org> References: <20230616090156.2347850-1-arnd@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1768850468304516766?= X-GMAIL-MSGID: =?utf-8?q?1768850468304516766?= |
Series |
[1/4] ASoC: max98388: fix unused function warnings
|
|
Commit Message
Arnd Bergmann
June 16, 2023, 9 a.m. UTC
From: Arnd Bergmann <arnd@arndb.de> Build testing without CONFIG_PM_SLEEP causes a warning: sound/soc/loongson/loongson_i2s.c:246:12: error: unused function 'i2s_suspend' [-Werror,-Wunused-function] sound/soc/loongson/loongson_i2s.c:255:12: error: unused function 'i2s_resume' [-Werror,-Wunused-function] Use the modern SYSTEM_SLEEP_PM_OPS() instead of the old one to avoid this. Fixes: d24028606e764 ("ASoC: loongson: Add Loongson ASoC Sound Card Support") Signed-off-by: Arnd Bergmann <arnd@arndb.de> --- sound/soc/loongson/loongson_i2s.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On 6/16/23 02:00, Arnd Bergmann wrote: > From: Arnd Bergmann <arnd@arndb.de> > > Build testing without CONFIG_PM_SLEEP causes a warning: > > sound/soc/loongson/loongson_i2s.c:246:12: error: unused function 'i2s_suspend' [-Werror,-Wunused-function] > sound/soc/loongson/loongson_i2s.c:255:12: error: unused function 'i2s_resume' [-Werror,-Wunused-function] > > Use the modern SYSTEM_SLEEP_PM_OPS() instead of the old one to avoid this. > > Fixes: d24028606e764 ("ASoC: loongson: Add Loongson ASoC Sound Card Support") > Signed-off-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Randy Dunlap <rdunlap@infradead.org> Tested-by: Randy Dunlap <rdunlap@infradead.org> # build-tested Thanks. > --- > sound/soc/loongson/loongson_i2s.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/sound/soc/loongson/loongson_i2s.c b/sound/soc/loongson/loongson_i2s.c > index 35d34568be79e..f73b6d6f16c23 100644 > --- a/sound/soc/loongson/loongson_i2s.c > +++ b/sound/soc/loongson/loongson_i2s.c > @@ -265,5 +265,5 @@ static int i2s_resume(struct device *dev) > } > > const struct dev_pm_ops loongson_i2s_pm = { > - SET_SYSTEM_SLEEP_PM_OPS(i2s_suspend, i2s_resume) > + SYSTEM_SLEEP_PM_OPS(i2s_suspend, i2s_resume) > };
diff --git a/sound/soc/loongson/loongson_i2s.c b/sound/soc/loongson/loongson_i2s.c index 35d34568be79e..f73b6d6f16c23 100644 --- a/sound/soc/loongson/loongson_i2s.c +++ b/sound/soc/loongson/loongson_i2s.c @@ -265,5 +265,5 @@ static int i2s_resume(struct device *dev) } const struct dev_pm_ops loongson_i2s_pm = { - SET_SYSTEM_SLEEP_PM_OPS(i2s_suspend, i2s_resume) + SYSTEM_SLEEP_PM_OPS(i2s_suspend, i2s_resume) };