Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp436693imn; Wed, 3 Aug 2022 10:06:59 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sn9r0KLHNDapMiLxSstg8p620hsoJ+LgopcjVj96svvXGYoXN4eb+/QM3Cc6X1b+ArdbDu X-Received: by 2002:a05:6830:409f:b0:61c:cf3c:14b8 with SMTP id x31-20020a056830409f00b0061ccf3c14b8mr9370758ott.38.1659546419627; Wed, 03 Aug 2022 10:06:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659546419; cv=none; d=google.com; s=arc-20160816; b=EMePNhxq9cTveGcE6xL+zENK23O1ZiMkndRdrotNdWjpwhmeYGbfHrh3x3+vWIowmc jt9Met4ZXSm3odGIvIbg3rvSN8j0Qs4XVz92TFjVicc7fGZNWfundjYMj73Bl6hmfo8W pW9mZGdtlOhahc/LexLZ7GIEkvEBaBwNEvSs4GEZVCrOyJItUbuvUB9J4UrPK7nVLPqH NfgRD62/ENBrNhBCVZvLHAuY9kltSE9JiEE6d68CIj1VBZSBPQZjV8LvlxD7ShMvQuZd aVsD0W7Da2zCQIOgS6OPAm4/1gOP9+DsR5BEOkcoz4m6UOw90KUcQ1sWjqcB1kELCb7X 0daA== 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=bhOSVGE3Tx9C5nqtrK/UZTcc+tPCeJhL9zQ8m19yaEk=; b=bcoFb/48rJatlncfOdGr0C6dOmwXc714SlyiIaGQT29Kh/J9wgcw0+kNFS9yW9boW6 iNzfD5DNR7K7GQJzE/YGbaXIKpW3RWFTohPDY0rdB7fLATSmjDcdQ3uU9DUph/8GOTDZ rygyJa7EKzSbRkOcwkiUIGaysF6p+ncQ/pHUNnnH3Fqr0jVGN0brKro3pPUGq5IPRfTC 5m1hA4gFc5VgLmzI3TxcbgoKfAXblu/j24kE53XcPtlC7YVvmXXU+duTXJ5Cm7ZjKUK1 R+YqvTq/oTmemXrd6XMGdDtZq4uzlEQQ+UnTJJ3jZ8cgHof3cBSIPXPgXwVx1ulZHha8 r+cQ== 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g94-20020a9d2de7000000b0063686767987si762749otb.210.2022.08.03.10.06.46; Wed, 03 Aug 2022 10:06:59 -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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236513AbiHCRFx (ORCPT + 99 others); Wed, 3 Aug 2022 13:05:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47838 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231966AbiHCRFv (ORCPT ); Wed, 3 Aug 2022 13:05:51 -0400 Received: from mail-yw1-f172.google.com (mail-yw1-f172.google.com [209.85.128.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E10DC13F71; Wed, 3 Aug 2022 10:05:50 -0700 (PDT) Received: by mail-yw1-f172.google.com with SMTP id 00721157ae682-328303afa6eso26866077b3.10; Wed, 03 Aug 2022 10:05:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc; bh=bhOSVGE3Tx9C5nqtrK/UZTcc+tPCeJhL9zQ8m19yaEk=; b=6QVk44y3BAsx+EcDBU2kGjZpH2bkHt3hk+dKRscjUSEV5IbCRy1AeZGNgWcOFCyYTf RYaIgX0IIbuoHIVf9InWaI4EITSC3HCPWQtSG/yf0uIbzS3/vcK7nLJXq7P0Od+1+q/N 0wPpniKw9jEFNQz0OUFsHN1Isfhexbb2K08LbkxuiDGTOAdgz1kfkBI0hVicMCkXFpXn BaPaiDa2XNfT53tpZh6Bj+KUslaQlht3S+iN5GVosXzrXNJO9uVeJuKFdV90m70PAxjR DsKjVKTYZuidTgYlM3xhDwF27dlddNEWyyLyhX7MX8tU3Wgv0nw+kDSJywzIg/8R4rdf 2ORA== X-Gm-Message-State: ACgBeo1lH7opDV16Nw+wWYpXl7asJ5JZ9xX318HI7d96WjuoI9mIUa9b OF5BQB4PNUrWK/9VxYi4WcLlMtEGSk7FvykzOreCZMEh X-Received: by 2002:a0d:d694:0:b0:325:1881:6a52 with SMTP id y142-20020a0dd694000000b0032518816a52mr13221615ywd.149.1659546350173; Wed, 03 Aug 2022 10:05:50 -0700 (PDT) MIME-Version: 1.0 References: <20220731141352.7caa1a69@endymion.delvare> In-Reply-To: <20220731141352.7caa1a69@endymion.delvare> From: "Rafael J. Wysocki" Date: Wed, 3 Aug 2022 19:05:39 +0200 Message-ID: Subject: Re: [PATCH] thermal: Drop obsolete dependency on COMPILE_TEST To: Jean Delvare , Daniel Lezcano Cc: LKML , Linux PM , Talel Shenhar , Neil Armstrong Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no 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 Sun, Jul 31, 2022 at 2:13 PM Jean Delvare wrote: > > Since commit 0166dc11be91 ("of: make CONFIG_OF user selectable"), it > is possible to test-build any driver which depends on OF on any > architecture by explicitly selecting OF. Therefore depending on > COMPILE_TEST as an alternative is no longer needed. > > It is actually better to always build such drivers with OF enabled, > so that the test builds are closer to how each driver will actually be > built on its intended target. Building them without OF may not test > much as the compiler will optimize out potentially large parts of the > code. In the worst case, this could even pop false positive warnings. > Dropping COMPILE_TEST here improves the quality of our testing and > avoids wasting time on non-existent issues. > > Signed-off-by: Jean Delvare > Cc: Talel Shenhar > Cc: Neil Armstrong > Cc: "Rafael J. Wysocki" > Cc: Daniel Lezcano Daniel, I can pick up this one if that's OK. Any concerns? > --- > drivers/thermal/Kconfig | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > --- linux-5.18.orig/drivers/thermal/Kconfig 2022-05-22 21:52:31.000000000 +0200 > +++ linux-5.18/drivers/thermal/Kconfig 2022-07-31 13:51:55.009394318 +0200 > @@ -221,7 +221,7 @@ config THERMAL_EMULATION > > config THERMAL_MMIO > tristate "Generic Thermal MMIO driver" > - depends on OF || COMPILE_TEST > + depends on OF > depends on HAS_IOMEM > help > This option enables the generic thermal MMIO driver that will use > @@ -496,7 +496,7 @@ config SPRD_THERMAL > > config KHADAS_MCU_FAN_THERMAL > tristate "Khadas MCU controller FAN cooling support" > - depends on OF || COMPILE_TEST > + depends on OF > depends on MFD_KHADAS_MCU > select MFD_CORE > select REGMAP > > -- > Jean Delvare > SUSE L3 Support