Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp993733rwp; Thu, 13 Jul 2023 04:40:47 -0700 (PDT) X-Google-Smtp-Source: APBJJlERWoDWFx9SzPtfv5M6O4NpEZ7/ohOJHsbgLihvQmvt8AmPVZ12YFsoPEdXZraAM6hdrFxv X-Received: by 2002:a05:6a20:d5:b0:133:215e:7230 with SMTP id 21-20020a056a2000d500b00133215e7230mr571246pzh.55.1689248447240; Thu, 13 Jul 2023 04:40:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689248447; cv=none; d=google.com; s=arc-20160816; b=g3FEXtitMrRiuZjBzQ4SlOjmz3MtvorO882Wq8hFjf9TgUYPfzVuF1Ine447Kp8I9R gt1qoyRniEEAYa+WjJydC/K3DEMUy9/GxuTdhLG4SnLJqyKrh4mZK0tczHOWu/P31ZSZ 3zOjC1lw15TE9UUKnjoSi4LwB6MQPwnmjKnjk8o37P1vuaZoyiQW2UJD8Wa514M2Lj9K F6cVmKqv3hh02CXo882OqZQLn1zu9pLd5oNpMs6P90gdV9eaLZWezwJ3U6f+jxyOVj3+ V1sk/1I59eVKU2XkabDX0mpyzZ95akj1P/gTEhAoh1zGmEy6Lm2E8P30UOTdxmwUqcPk /6vA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=CiaL6xObpGsixZ6TmsIL6hxBQH/1vJMcAtKftXfjJbI=; fh=le9ylYOYTy0Qi1/3uvZ7VkCC3o52ysFYSYNQuSpfAEs=; b=tNQWNy9lhBCHoEFh/51RP3R8B4LM6Jb4vpeAPURwB10B7qagatiPyjqJvY2Kj/fWJ4 Xl5X5+T0KPS6fdsNoLuRf8SfzTFdy4xo1YYmAM6rZtIF1VQPmz6QNDeE+BYc6yW4Xs1r VTehJ9glnopEaaIxrbG01wQyv+cnlIZGao7tgi/gutLrfCv5P+ytxJC6QJ2QmU9eIQxk 3v4vlOGvrHy0x6qePt6kCjEyTQEHgfDLoWOygx1bTR5IiQRlktMY6WzyHhKZUsvjR7kf cQRtTlFDJT0DmIIKAGlCots6C5eFIuANEz2z4kCrVXvAwHVRkf3jAc45gIUn1WjjYDA8 96oQ== 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 z4-20020a6552c4000000b0053f23442f24si4920348pgp.502.2023.07.13.04.40.35; Thu, 13 Jul 2023 04:40:47 -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 S233833AbjGMLam convert rfc822-to-8bit (ORCPT + 99 others); Thu, 13 Jul 2023 07:30:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37062 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233580AbjGMLak (ORCPT ); Thu, 13 Jul 2023 07:30:40 -0400 Received: from mail-ej1-f47.google.com (mail-ej1-f47.google.com [209.85.218.47]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 457A518E; Thu, 13 Jul 2023 04:30:39 -0700 (PDT) Received: by mail-ej1-f47.google.com with SMTP id a640c23a62f3a-98502b12fd4so17946066b.1; Thu, 13 Jul 2023 04:30:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689247838; x=1689852638; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=IdSP6ezbFiKCfroZ5GX5zt/8h3KSlShTUnj+xRO1MX0=; b=aDMfvld0Ajhf8X3DQxGr9+CTBVW1lYUBMVE570P8XBstUwqnwF+VapnUTfmSunwWnS wJmKgBlZx5KTk6XWLFZMSd9iNEjKdv7XYAZHxIbxeno2O79tRDrpPF6ZCUvQ+hUG6AbM bbKOAaXMnbvBsEmK4LexCIsreGs6/4+j1hRAZJK3q0UmaMOw9Lm3/iJK/lP0KJMnEIBe qYDyHAviPAcdGx1tjVK77+wnVJGqLgSY46VFqnCTLpjdoaHFgHXl8U/nzs+MlCiEa5xr QRcizstT2sJsJX/Qqfn0isCKWZXolPkcaZzGnMdTBBhLKlTE362DgDccoA37nPwZsWN5 +OLw== X-Gm-Message-State: ABy/qLbJe/lVT/2VzfdYw5awL46M5bxXkE2tX8wbzD9OGlidDX5RSlCO niX4/kuYO1/w1tYR1cT/GoihCAL4KqZTOg+xh2s= X-Received: by 2002:a17:906:73d3:b0:993:eed1:904 with SMTP id n19-20020a17090673d300b00993eed10904mr997537ejl.3.1689247837448; Thu, 13 Jul 2023 04:30:37 -0700 (PDT) MIME-Version: 1.0 References: <20230707203731.848188-1-daniel.lezcano@linaro.org> <82b2d4dc-4583-925a-9e3c-77ae30d0d261@linaro.org> In-Reply-To: <82b2d4dc-4583-925a-9e3c-77ae30d0d261@linaro.org> From: "Rafael J. Wysocki" Date: Thu, 13 Jul 2023 13:30:25 +0200 Message-ID: Subject: Re: [PATCH v2 0/4] One more step to the thermal zone structure encapsulation To: Daniel Lezcano Cc: rafael@kernel.org, linux-pm@vger.kernel.org, thierry.reding@gmail.com, linux-kernel@vger.kernel.org, srinivas.pandruvada@linux.intel.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT 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_BLOCKED,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 Thu, Jul 13, 2023 at 11:33 AM Daniel Lezcano wrote: > > On 07/07/2023 22:37, Daniel Lezcano wrote: > > The series provides more changes to self-encapsulate the thermal zone device > > structure in order to protect wild accesses to the thermal zone device > > internals, especially the trip points and the locks. > > > > The first patch adds a macro to warn at compilation time if the > > thermal_core.h is included in a file not belonging to the thermal core > > code. One warning will happen with the nvidia drivers but this is in > > the way to be solved. > > > > The second patch reorders the headers inclusion in the core code. > > > > The next patches makes the int340x drivers to use the thermal trip > > update above and the different accessors for thermal zone structure. > > > > Daniel Lezcano (4): > > thermal/core: Hardening the self-encapsulation > > thermal/core: Reorder the headers inclusion > > thermal/drivers/int3400: Use thermal zone device wrappers > > thermal/drivers/int340x: Do not check the thermal zone state > > > > drivers/thermal/gov_bang_bang.c | 1 + > > drivers/thermal/gov_fair_share.c | 1 + > > drivers/thermal/gov_power_allocator.c | 7 +-- > > drivers/thermal/gov_step_wise.c | 1 + > > drivers/thermal/gov_user_space.c | 1 + > > .../intel/int340x_thermal/int3400_thermal.c | 44 +++++++++---------- > > drivers/thermal/thermal_acpi.c | 1 + > > drivers/thermal/thermal_core.c | 7 +-- > > drivers/thermal/thermal_core.h | 4 ++ > > drivers/thermal/thermal_helpers.c | 1 + > > drivers/thermal/thermal_hwmon.c | 1 + > > drivers/thermal/thermal_netlink.c | 1 + > > drivers/thermal/thermal_of.c | 1 + > > drivers/thermal/thermal_sysfs.c | 1 + > > drivers/thermal/thermal_trip.c | 1 + > > 15 files changed, 45 insertions(+), 28 deletions(-) > > Applied OK