From patchwork Mon Sep 11 11:16:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 137934 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9ecd:0:b0:3f2:4152:657d with SMTP id t13csp46030vqx; Mon, 11 Sep 2023 15:45:54 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHFgritccL5Veyj9glI2iUZmVuwhMfokTwQjWbZmg5l1UjVJcQNIkNZ4OOXWmEG8K4zU+S6 X-Received: by 2002:a05:6358:41a6:b0:135:4003:784a with SMTP id w38-20020a05635841a600b001354003784amr11974952rwc.19.1694472353748; Mon, 11 Sep 2023 15:45:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694472353; cv=none; d=google.com; s=arc-20160816; b=eTN6Vy13P7iKfB2Ppd458S5xogMaPd+P4f7moRoXGoU/mQ6pKhfyR+PUqktvD3v17k a2eTw1WK6Z7I/5vl+At9Ju1EwAOt4RkTEQpQ4w4BBzS9jQWq3nA4YUnC7A2vToEawuic tmAYNIIjyvZLYdNrd7DqQbICmOD5vHLxYLO6wxAdUg+tLBeKJaQ5Gdm/WckWU/B7t2Bw 4AVTYpIhU177CBOJ0hy8XIvxfBbr5JZ6OVhYWTJdzqe95k6EzsQIG4Byok0xzIwTRJtN MLOhSZSkrQGasquvvq56wR7mZ56m8dxb0b9IEBO1LAQihhGuNOxMzRXa8K5VUDrO9Oe5 BG+A== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=qvynGfqT0Cme3mQ9Ow2d1RGPRW+Xpg390dQJt+QUdL0=; fh=epsrIulkbae7auPRiCICzeXbxv1E/anYpVcNVzaoFBE=; b=wLzLzUf3onayQtlLkwGMMGSZ5YGB/bSQbNd6mcOv6cCtKN1mZoETvAFzpKhMEqiGzt uIyK9Pen+fVv0lCdcAJeNGLcJt6iT4HH4f2fsv0gWvNuHJGz3/AcTK5kckM7tgxe/hlq eMCDoIegxyREuVCxzEUTGWug4WRz8JVD2kruwXp/E8ee8QfblRQwmZRAnp6cEXlfcAA4 T3lKsoJqI8U6yogBJlcvNESaqurOe8kJG9yNOBihy6SIRH1jgw5UUFpNt6HIeolvqpGp o32sVZw+3veEW8Ismzu40IpKzZVsFkqJYjoLUI4HfgqJ/hEIMTHsjSUVJxTz5+hX9NET h02Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=L0cVj2Wu; 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 a35-20020a631a63000000b005704979833csi6724861pgm.855.2023.09.11.15.45.39; Mon, 11 Sep 2023 15:45:53 -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=L0cVj2Wu; 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 S1378780AbjIKWhP (ORCPT + 99 others); Mon, 11 Sep 2023 18:37:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45954 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236729AbjIKLQd (ORCPT ); Mon, 11 Sep 2023 07:16:33 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 605DC1A2 for ; Mon, 11 Sep 2023 04:16:29 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EC056C433C8; Mon, 11 Sep 2023 11:16:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1694430989; bh=O0faahUdqQERokNfZ+EUmG8INIrHP3lcwn9a1BQUUMs=; h=From:To:Cc:Subject:Date:From; b=L0cVj2WuHg3B0CGXWNUxoqjjcW+4HTa8vGmAffD5C/SBv14TyYtmaiHFR2LJPgEWM YidFmDOaYt+Q9OXh/CsuBLaUD5G/hzRtUg2s/djnySLcSQApiSITicoZxMfB51alYP TNDj4QBdYh2B8QaXRmklgjVw40dgr2D1uuYqgkqwzHJAaY1RzTHAMHh7YKSevIoI4+ pYXVgMMJbydnMb75aWwpkdxuwRcJ9Q40GcjPDaRoNzr0EQfZFJnCAFdzpfkKTGiOE9 6V09P1HI9YK25UcHxQ1OyQM5HSIhajT+pxtML0Pz4/ll5SEPP8r87HknPg18/YfbG4 4qq2U1QXku48g== From: Arnd Bergmann To: James Schulman , David Rhodes , Richard Fitzgerald , Lee Jones , Charles Keepax Cc: Arnd Bergmann , alsa-devel@alsa-project.org, patches@opensource.cirrus.com, linux-kernel@vger.kernel.org Subject: [PATCH] mtd: cs42l43: use modern PM macro helpers Date: Mon, 11 Sep 2023 13:16:15 +0200 Message-Id: <20230911111623.705640-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 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 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1776783042559797176 X-GMAIL-MSGID: 1776783042559797176 From: Arnd Bergmann The old SET_SYSTEM_SLEEP_PM_OPS/SET_RUNTIME_PM_OPS macros required enclosing the function definitions in an #ifdef or marking them __maybe_unused: drivers/mfd/cs42l43.c:1138:12: error: 'cs42l43_runtime_resume' defined but not used [-Werror=unused-function] 1138 | static int cs42l43_runtime_resume(struct device *dev) | ^~~~~~~~~~~~~~~~~~~~~~ drivers/mfd/cs42l43.c:1124:12: error: 'cs42l43_runtime_suspend' defined but not used [-Werror=unused-function] 1124 | static int cs42l43_runtime_suspend(struct device *dev) | ^~~~~~~~~~~~~~~~~~~~~~~ drivers/mfd/cs42l43.c:1106:12: error: 'cs42l43_resume' defined but not used [-Werror=unused-function] 1106 | static int cs42l43_resume(struct device *dev) | ^~~~~~~~~~~~~~ drivers/mfd/cs42l43.c:1076:12: error: 'cs42l43_suspend' defined but not used [-Werror=unused-function] 1076 | static int cs42l43_suspend(struct device *dev) | ^~~~~~~~~~~~~~~ Use the modern replacements to avoid the warnings without those annotations. Fixes: ace6d14481386 ("mfd: cs42l43: Add support for cs42l43 core driver") Signed-off-by: Arnd Bergmann --- drivers/mfd/cs42l43.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mfd/cs42l43.c b/drivers/mfd/cs42l43.c index 37b23e9bae823..7b6d07cbe6fc6 100644 --- a/drivers/mfd/cs42l43.c +++ b/drivers/mfd/cs42l43.c @@ -1178,8 +1178,8 @@ static int cs42l43_runtime_resume(struct device *dev) } EXPORT_NS_GPL_DEV_PM_OPS(cs42l43_pm_ops, MFD_CS42L43) = { - SET_SYSTEM_SLEEP_PM_OPS(cs42l43_suspend, cs42l43_resume) - SET_RUNTIME_PM_OPS(cs42l43_runtime_suspend, cs42l43_runtime_resume, NULL) + SYSTEM_SLEEP_PM_OPS(cs42l43_suspend, cs42l43_resume) + RUNTIME_PM_OPS(cs42l43_runtime_suspend, cs42l43_runtime_resume, NULL) }; MODULE_DESCRIPTION("CS42L43 Core Driver");