Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp661750pxf; Thu, 8 Apr 2021 10:16:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzODsoTSzAlnxjB+uDVkbeqM+3v1V+P1Vw8lrRu1lplMszIc13dP9+9KyiYzLUITnyyWWsl X-Received: by 2002:a65:538f:: with SMTP id x15mr9139740pgq.429.1617902214545; Thu, 08 Apr 2021 10:16:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617902214; cv=none; d=google.com; s=arc-20160816; b=w+aiqKaPrVZKlkYpPqfFiohSfaeFX423J9yoDKmq6hukxGPwacR7Vb86FcSlfF7yfx 83ftWMejvWYwU5UKGU2bi1z1SlvavzGTQm/wgIehRTm4rcDXOV3acIN+nV/P1kK0mRrQ HN/Z3pOMa3QWKRHaQKEkwIldmGfrFgT44KrQybkytGIYcE17WsU8qJQb5HsUC6hwwXdn KJdFhR1N7jR8LiTS6cbO+IKS5wusDSDKOU1eQEa7QZdYjAWQg1iHygHfhOG+MEMY8iD5 U8whKFXZLzj8lT6Y5ZMsFCqgGB6N2BS7DM8/4pHEWj1A5c6F9D2MKwU6ITa6yKSLj81o FXHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=Yr66sxC+1g5GcSTJpK+4XHiatspr4xLME96kf8P3oqk=; b=Gy1LZjeDb3KyThyCrpPD8DNj2DkXy+JgN41hQUwrM7alrM4TcVKAPRZUSYm+ISkPQA 23THWSoZOpb5NeSEpZUx/0fUd+6IReWrOiUqL2PkwvyM83fg0n7JYY86/dAN3QEoEFQf 46yBYmkG/PLaXPdP+5KfCWAzJiCXcJLiGM0HTOjea3RUHHsA4/FzyC5nyG/ZUQ/mLNHh IUt2cqY86F6iiEQ3Whfz8fxLNF4QX5wCn+KEW4WwgBo/9llczPStbKJXom9XnojRV5TK g7nde96RwbV4GHOW2MiM8Nzjz4gcJruc4N7Z8Dem+pZFHz8FSA/Cr5iOsKJbuNadNbZM 0Mtg== 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c17si28502386pgw.87.2021.04.08.10.16.41; Thu, 08 Apr 2021 10:16:54 -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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232547AbhDHRQM (ORCPT + 99 others); Thu, 8 Apr 2021 13:16:12 -0400 Received: from mail-oi1-f175.google.com ([209.85.167.175]:41818 "EHLO mail-oi1-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231716AbhDHRQJ (ORCPT ); Thu, 8 Apr 2021 13:16:09 -0400 Received: by mail-oi1-f175.google.com with SMTP id z15so2908081oic.8; Thu, 08 Apr 2021 10:15:58 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Yr66sxC+1g5GcSTJpK+4XHiatspr4xLME96kf8P3oqk=; b=P3fihZHxg5ki0LH5iQMaW1dealr4YYsz3UOXMthMSlBQekyH+RVeXuyqfQrrM3Z/jk s1F8mko/TZiCsZrdmRQOIbOjLL7cwlpciIznuHb1qB0/6XxWVokf8eKk+fbuKbeqku3N iYG0SWrKw4OV1n9A2s1n2uCuX7k2jh07JQuoue+gET99oZhTaDCoRGuZloQyFu6QIFO9 Lwc3+akI5g4kcYGkgWte7t6cY4nvUd8a7LoicrgghXKgnio2+dsBqCp5PlHTxv3IFmHe ETWjErqMExm7J5ibezmyTd+PPlhPGhL3fWtJDNAxz+cuHfozbs3Mt6lU8uO2X0QgV7Cq MdSA== X-Gm-Message-State: AOAM533WD6zZweIAEynkKFSf1TuPEGTjzWoqNvQ+ApL0QQd9mwX1KfzX 332/0Ct7BevO0FCe5tHNOI3fxjkp/56W1XwIum7PquEb X-Received: by 2002:a05:6808:24b:: with SMTP id m11mr7013767oie.157.1617902157897; Thu, 08 Apr 2021 10:15:57 -0700 (PDT) MIME-Version: 1.0 References: <20210402061422.3396-1-yuehaibing@huawei.com> In-Reply-To: <20210402061422.3396-1-yuehaibing@huawei.com> From: "Rafael J. Wysocki" Date: Thu, 8 Apr 2021 19:15:47 +0200 Message-ID: Subject: Re: [PATCH -next] PM: runtime: Replace inline function pm_runtime_callbacks_present() To: YueHaibing Cc: "Rafael J. Wysocki" , Ulf Hansson , Linux PM , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 2, 2021 at 8:14 AM YueHaibing wrote: > > commit 9a7875461fd0 ("PM: runtime: Replace pm_runtime_callbacks_present()") > forget to change the inline version. > > Fixes: 9a7875461fd0 ("PM: runtime: Replace pm_runtime_callbacks_present()") > Signed-off-by: YueHaibing > --- > include/linux/pm_runtime.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/include/linux/pm_runtime.h b/include/linux/pm_runtime.h > index b492ae00cc90..6c08a085367b 100644 > --- a/include/linux/pm_runtime.h > +++ b/include/linux/pm_runtime.h > @@ -265,7 +265,7 @@ static inline void pm_runtime_no_callbacks(struct device *dev) {} > static inline void pm_runtime_irq_safe(struct device *dev) {} > static inline bool pm_runtime_is_irq_safe(struct device *dev) { return false; } > > -static inline bool pm_runtime_callbacks_present(struct device *dev) { return false; } > +static inline bool pm_runtime_has_no_callbacks(struct device *dev) { return false; } > static inline void pm_runtime_mark_last_busy(struct device *dev) {} > static inline void __pm_runtime_use_autosuspend(struct device *dev, > bool use) {} > -- Applied as 5.13 material, thanks!