Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2227598rwb; Mon, 7 Nov 2022 10:39:29 -0800 (PST) X-Google-Smtp-Source: AMsMyM74xlEdv7iUmh+6BmkeuliTau0neW94QkhRuh6QXj6EC7BdfPp9yVIKdqI2QTRnizobMm06 X-Received: by 2002:a17:902:eb92:b0:186:7067:3e9a with SMTP id q18-20020a170902eb9200b0018670673e9amr51531473plg.80.1667846369480; Mon, 07 Nov 2022 10:39:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667846369; cv=none; d=google.com; s=arc-20160816; b=bcfqBl78v3vXsvJF+YSxYpiqAO7FJ3fyNCBcYe6cbC/qMIdc/k5uTrOhJMw946e7NF CUG5Q9DUHdMBRE2h6HMK9fiicNAxzV1NiPXU0VUCsHhHnzi9kLFxdJGyYlQJ7mGdiyY9 iIEZ4XxQkPqsvKbsQf7zD52OAd2OhJvi25kyUCYNTCUKs147I02RtSQpUZ4dgy1h8X0t TNfiyS2PfZANguG5jfXRZSOT/dVhQef72oj+IkwYXcSzqHmPXiefUhoeTGEJq6zrE4hm gu/t05uiXBaJErLkZa0x2DiwcI+dmSjPNexDotHeC04otvWI1nNaZxPdjN4vL4sHOQLV N+GQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature; bh=SLyAxHhS6Hp5u+fEweOLsy65p6aKk/bAOsQqjWK82MY=; b=pcaG7KeUWGEtfqqzQTz3Eea6onKWaMyva6bULE8ne3RIBnF5mzc8D2XX68OK7U3bkT TWNjwncsct6675hb4N0JUUA2UhfAIRhRSqU5wLTCAxjVSnVcT14/7kRBN3MAocq3pdGn lTqQnVHy2dTsCHftiuvIy8nUcYACWmKlOSBs3n2rmaQEOwF3TuogfnsJOrOZQR3kuXTs 5DiQQVSQJ8uXbBSc1Pq1cHkwzp8I9c0Dyejk89jAjbsMDs8faP89POur+KXgMZV3HlFG tcEDkz0gARH++KCvfWJ5KWnLBL2widRLJfE5kyfWGzmMLV7hM46ORvgr+1TwnikQVAx9 F5bw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ravnborg.org header.s=rsa2 header.b="pLvJx/AR"; dkim=neutral (no key) header.i=@ravnborg.org; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d26-20020aa78e5a000000b0056bba31b399si9812307pfr.220.2022.11.07.10.39.17; Mon, 07 Nov 2022 10:39:29 -0800 (PST) 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=@ravnborg.org header.s=rsa2 header.b="pLvJx/AR"; dkim=neutral (no key) header.i=@ravnborg.org; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232630AbiKGR5C (ORCPT + 92 others); Mon, 7 Nov 2022 12:57:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58424 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232083AbiKGR4W (ORCPT ); Mon, 7 Nov 2022 12:56:22 -0500 X-Greylist: delayed 62 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Mon, 07 Nov 2022 09:54:32 PST Received: from mailrelay2-2.pub.mailoutpod1-cph3.one.com (mailrelay2-2.pub.mailoutpod1-cph3.one.com [46.30.212.1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1B9712611F for ; Mon, 7 Nov 2022 09:54:31 -0800 (PST) Received: from mailrelay1.pub.mailoutpod2-cph3.one.com (mailrelay1.pub.mailoutpod2-cph3.one.com [104.37.34.6]) by mailrelay2.pub.mailoutpod1-cph3.one.com (Halon) with ESMTPS id 15347bb4-5ec5-11ed-a925-d0431ea8a290; Mon, 07 Nov 2022 17:53:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ravnborg.org; s=rsa2; h=in-reply-to:content-type:mime-version:references:message-id:subject:cc:to: from:date:from; bh=SLyAxHhS6Hp5u+fEweOLsy65p6aKk/bAOsQqjWK82MY=; b=pLvJx/ARXL8BUweavzGmY9yhuhJx4ANZhYhH4Ey7652wAuZsu+XXmrHfCZChe9vHlBlsG4CyCXtlj hrEzdHnBkt6ZFdGqw39l2g6UAHJorZWQzSmsPJInytNFbwdsZYXSeaZC1sVxd6BMymOznpK85oX0WP ijjDs8Qq4xSeEVCXZC+uzQRTVDiVem49GueY0Fm9B1h05u7kzq22IaV0WSXPdI5ugdhVkuenpGuJg9 f3lzeDjbPYxYeJ062zih9F5sXp9ibWKdODp6lwDQlwI883o74pzp1xEtIr9tWCoFpNHFWo8hwxTTK6 bXGgJua39P8SwRBu/4WPu+/abuydNxw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ravnborg.org; s=ed2; h=in-reply-to:content-type:mime-version:references:message-id:subject:cc:to: from:date:from; bh=SLyAxHhS6Hp5u+fEweOLsy65p6aKk/bAOsQqjWK82MY=; b=WySIdHcNNGMTnlpGu4csUpXl6pOQ2/QYNqYWjoAIHij0UYRD0CbpxoQjInz/WdK/+LR0doOYDL455 BGnDrH3Ag== X-HalOne-ID: 13afeb26-5ec5-11ed-ba33-1b2345786432 Received: from ravnborg.org (2-105-2-98-cable.dk.customer.tdc.net [2.105.2.98]) by mailrelay1 (Halon) with ESMTPSA id 13afeb26-5ec5-11ed-ba33-1b2345786432; Mon, 07 Nov 2022 17:53:27 +0000 (UTC) Date: Mon, 7 Nov 2022 18:53:25 +0100 From: Sam Ravnborg To: Paul Cercueil Cc: Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Boris Brezillon , Nicolas Ferre , Alexandre Belloni , Claudiu Beznea , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 08/26] drm: atmel-hlcdc: Remove #ifdef guards for PM related functions Message-ID: References: <20221107175106.360578-1-paul@crapouillou.net> <20221107175106.360578-9-paul@crapouillou.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221107175106.360578-9-paul@crapouillou.net> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, SPF_NONE 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 On Mon, Nov 07, 2022 at 05:50:48PM +0000, Paul Cercueil wrote: > Use the DEFINE_SIMPLE_DEV_PM_OPS() and pm_sleep_ptr() macros to handle > the .suspend/.resume callbacks. > > These macros allow the suspend and resume functions to be automatically > dropped by the compiler when CONFIG_SUSPEND is disabled, without having > to use #ifdef guards. > > This has the advantage of always compiling these functions in, > independently of any Kconfig option. Thanks to that, bugs and other > regressions are subsequently easier to catch. > > Signed-off-by: Paul Cercueil > --- > Cc: Sam Ravnborg > Cc: Boris Brezillon > Cc: Nicolas Ferre > Cc: Alexandre Belloni > Cc: Claudiu Beznea > Cc: linux-arm-kernel@lists.infradead.org Acked-by: Sam Ravnborg Thanks for taking care of this. Sam