Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp29908057rwd; Wed, 5 Jul 2023 20:33:01 -0700 (PDT) X-Google-Smtp-Source: APBJJlHuGxgaAiPADCjDRvCZnMMqlQ9kO1428EoH+blfMcu2Eocl9C6HAjsy60aYbmeKfLfmcTpj X-Received: by 2002:a17:90a:6283:b0:262:ea30:2cc3 with SMTP id d3-20020a17090a628300b00262ea302cc3mr650623pjj.2.1688614380573; Wed, 05 Jul 2023 20:33:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688614380; cv=none; d=google.com; s=arc-20160816; b=Lvxi2w3RZwQgxv6zvnSEDjrrjutKUeUDoBnLuqDYhIYMO75tU6ZaoA35/t9T11WZ93 R8zh1UDWm0tFRwRL+Wh7cpDc7BeQcfDNsbYFjAOmgoopU9ffi+IpuHXOS8PlCrKDUKwo epUR8FNmZAw5HwNYXc5uPBApuuTIC4e3obbcLCpUnBR2B++8qcsArjJ15jx9SWI2VVqW zksh5XxTLx2eoYCldHqTdmkwmd/qIDg9+YLoSIcrHt7R8SFwk1f8VYzlaCDbQt/T34ju zIH6bHWpE6z3v3DIPYsAXdK7LuQpSS2WdgWztsqtBs05i4B5aMQGTQM7OXkfgtJGlq+C oveg== 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 :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=fls7/0QqYUNPdwjv0TPNse5h0PnJoZdpH1z4XAqm94U=; fh=0W3I1SLF0cEmIkVYtFmhA4qoGlXhK/j9tGH+XA8Cl34=; b=IMtuJ8wdjTaISEYB+OEuwMnMCIjEeo94vy7dFn3Z3syMNJ9B9nnuPAOAsQLeB6IJdu j1l5DoDFEB3zlB3FcSbIYGsyS3UOl3KIQRX7SbrPJ1j98WbgdFmewoeau5aiWGfzt1wV MlWce9cSNV6DUtMcZRB8JnwlDlDnFd+xU+y1gJYsLrJ2f0AVu/juHR8tae89PMfLQ86T sLyZ9xak3M3NVb3fvZ2INfP4/CoNQQoraFsFd1QYVva+5Aq9MQXXOub0+fEEiZovoI9o 3dMzwEWP3KVpBqpyRV/k9CCxPnOGqfj3wGMEuqcA9kmS/P1Bo9jqtFt6Rxx1ezH+Mpll bTOw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i5-20020a17090a65c500b002636d222400si2908532pjs.14.2023.07.05.20.32.45; Wed, 05 Jul 2023 20:33:00 -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; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233352AbjGFCms (ORCPT + 99 others); Wed, 5 Jul 2023 22:42:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44068 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232888AbjGFCmq (ORCPT ); Wed, 5 Jul 2023 22:42:46 -0400 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CAAF710E; Wed, 5 Jul 2023 19:42:45 -0700 (PDT) Received: from lhrpeml500005.china.huawei.com (unknown [172.18.147.201]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4QxLPK4L9kz6J7Cc; Thu, 6 Jul 2023 10:40:53 +0800 (CST) Received: from localhost (10.34.206.101) by lhrpeml500005.china.huawei.com (7.191.163.240) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Thu, 6 Jul 2023 03:42:41 +0100 Date: Thu, 6 Jul 2023 10:42:37 +0800 From: Jonathan Cameron To: Paul Cercueil CC: Wolfram Sang , , , Peter Korsgaard , "Andrew Lunn" Subject: Re: [PATCH 15/23] i2c: ocores: Remove #ifdef guards for PM related functions Message-ID: <20230706104237.00001c69@Huawei.com> In-Reply-To: <20230705204314.89800-16-paul@crapouillou.net> References: <20230705204314.89800-1-paul@crapouillou.net> <20230705204314.89800-16-paul@crapouillou.net> Organization: Huawei Technologies Research and Development (UK) Ltd. X-Mailer: Claws Mail 4.1.0 (GTK 3.24.33; x86_64-w64-mingw32) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.34.206.101] X-ClientProxiedBy: lhrpeml100001.china.huawei.com (7.191.160.183) To lhrpeml500005.china.huawei.com (7.191.163.240) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H2,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: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 5 Jul 2023 22:43:06 +0200 Paul Cercueil wrote: > Use the new PM macros for the suspend and resume functions to be > automatically dropped by the compiler when CONFIG_PM or > CONFIG_PM_SLEEP are 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 Reviewed-by: Jonathan Cameron