Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp29868844rwd; Wed, 5 Jul 2023 19:43:15 -0700 (PDT) X-Google-Smtp-Source: APBJJlEPw/QYQl8+HO3caNd0eCQj1bhlhbJjJptZLjcysalIMcCrVsciDxqf2j8351U7/Fh22GQA X-Received: by 2002:a05:620a:4728:b0:766:3190:804f with SMTP id bs40-20020a05620a472800b007663190804fmr531724qkb.26.1688611395699; Wed, 05 Jul 2023 19:43:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688611395; cv=none; d=google.com; s=arc-20160816; b=AOUvvVcdK/VL/ETy2f0jD1zQw5sKlJfmWgHTFZ288NLnlfP4z2hAaFHAbCQ1VYR/RM PBAbSKxILVEOPsLjNSu8Q2xyZl2qdaeAvjIxjdCU0TCuMzihC+1hJteq8nMP28xk45dy gSjm+qgQi+7oucyi1z5Z8XJmIIcyv+TQOOe3QvC8aP9M6Tx4Hwnifu5+H5y/AsTOTD44 b93dhrnfgroWm2ipr6x4lxmPs49JsBgT1FDtWw1HMX3Mh/SI9FNgmh2mcRld2JVVXt+o emhI+YcAsyKAEppJr46c77x4Lo9TAxa8FCTF2rKaYoyrsL8z3DB0TAOIsXmRZHzB7zjF zrHg== 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=CHR1XXC8k836A8v+WQ6h1VsoUX4RaXVn2yFKULlftHI=; fh=0EhLNeN+KtWDvy4snYWLcRb9lqOhcrhO9U3ciAOLiJg=; b=TLLdWYqjsulSEm+aOqxbqFAMGAUm9JXE/UwxiNxUrUj8OZ/JJtzaNczE+6/fgdr72k ZeLzsOWbR32ddKK286OK4/HWY+gQPtflm1g/T5XUWNiq7cCrquSCuX/DSihemIKB5W1X JTorWvBI6jNZPTr4xep6Em1sDwM/cVnSdXw0CV/tsD5OOD6oJnin/M0Iwyz7L1ySIEHH dv6hT/ujuTD89izGksuy//j1fjVAHHOlsLPL3TrBOFh+8BAdMrHhe0L9SgDDUUy1tjOT cTmSTylE79sqUsi7EFrKw01W+CTCmFwisUxQTn/GhI8S1a0MV78mG5r2y8kov6uMzT36 b2IA== 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 y19-20020aa78553000000b0068208d19b23si432959pfn.311.2023.07.05.19.43.03; Wed, 05 Jul 2023 19:43:15 -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 S233223AbjGFCSb (ORCPT + 99 others); Wed, 5 Jul 2023 22:18:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35502 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233218AbjGFCS1 (ORCPT ); Wed, 5 Jul 2023 22:18:27 -0400 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0D95A1BD3; Wed, 5 Jul 2023 19:18:26 -0700 (PDT) Received: from lhrpeml500005.china.huawei.com (unknown [172.18.147.226]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4QxKsF67Rbz6J7BM; Thu, 6 Jul 2023 10:16:33 +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:18:21 +0100 Date: Thu, 6 Jul 2023 10:18:18 +0800 From: Jonathan Cameron To: Paul Cercueil CC: Wolfram Sang , , , Jarkko Nikula , Andy Shevchenko , Mika Westerberg , Jan Dabros Subject: Re: [PATCH 06/23] i2c: designware: Remove #ifdef guards for PM related functions Message-ID: <20230706101818.00003f95@Huawei.com> In-Reply-To: <20230705204314.89800-7-paul@crapouillou.net> References: <20230705204314.89800-1-paul@crapouillou.net> <20230705204314.89800-7-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:42:57 +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 > LGTM Reviewed-by: Jonathan Cameron