Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp838843rdg; Fri, 13 Oct 2023 02:44:11 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFbbYcXt6VFqviKIcb0zW324urekNMaemV5JGS2bJAvk/PtoVOkLM5w6UbMqcz+wU1xgRea X-Received: by 2002:a05:6a00:1255:b0:68a:5449:7436 with SMTP id u21-20020a056a00125500b0068a54497436mr29055402pfi.32.1697190250972; Fri, 13 Oct 2023 02:44:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697190250; cv=none; d=google.com; s=arc-20160816; b=cVe5eRc1NyHI/vfPuYE3nbw/n00Mvd4UA8aT0KUlceNkwaWQuk+EITk3DQVsiMeieW X3gsBw0lq8QFqaO5SHo3foUpn/cwtNtdlJgcdMAEgnwS2eAEmQxZ+DaWLwYRWLmcHBs3 NRa2lhqWXIEOjQdLfxynvYAXfDqIfJk4avPyuuJYtE7MzOgaPvhkGuNStSbvs6vhYpYN 4ad08gbwR1xANEi9OUNBZwxithDiieul7fHBNQLOA8e18s4+8tcKYENNuPkLDr/JBntI 8nUGZB+fSG5Q1mSWVQfDjEU0Ik1IaVjVTnM8mgVMgr+DaY0CzwxAabFMH3LllPFKJgEJ teew== 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=nKEsVDdq3Sg6JOxcv7golsGggxATvjWFYCndPAFMlcc=; fh=I78w9dBHQeh/pWisH3vnmfFWCkqBPE6VITc98xsfH0s=; b=idn+5b5YXIxa7v+rt9QpU5wzBuSxJ1IGjUteJIEP84iuTxvqIoWQUe8oofRn+E4+jR vtK0gAkdiNnYUWIhU8Q/FnwaUzcGWez0kPs8Aglr+nzYUvTgUWI81rULo6A8/TvzvHQ7 0D9c1KhW5ELwSvI2TcMoXjz4OcxZR4RXy8iGmJpkhhhX9izfcC0929ekFB1TW+eLayuu mOk56Imc1kaJJHsFz+sjJnF8hbw+gGeCY+z55krXqp2E2/PGUtRS1GiRvoR47eG27KHI q4gN8b5RRvKA25QizrxiNsMfFa4clgwuHrATkjzOKk/YpuGWxbcG0EhAM6QH0YefjrXp IpRw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id k186-20020a633dc3000000b005ab53b22e62si1003303pga.454.2023.10.13.02.44.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Oct 2023 02:44:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 17C67809B467; Fri, 13 Oct 2023 02:44:08 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230512AbjJMJoA convert rfc822-to-8bit (ORCPT + 99 others); Fri, 13 Oct 2023 05:44:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33956 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231363AbjJMJn5 (ORCPT ); Fri, 13 Oct 2023 05:43:57 -0400 Received: from mail-oo1-f49.google.com (mail-oo1-f49.google.com [209.85.161.49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 70688C9; Fri, 13 Oct 2023 02:43:55 -0700 (PDT) Received: by mail-oo1-f49.google.com with SMTP id 006d021491bc7-57bf04841ccso320898eaf.0; Fri, 13 Oct 2023 02:43:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697190234; x=1697795034; 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=xfzVeBGlCtn28JvQB3WfY39pPCGkqHh2o4hPti47OQQ=; b=gxk7qsIeyFzMgNt5tDWMCdI2i2ydRnl+AJBD5FK8Y5E7NM/duCF9/Rr6vs7gxkqful vqbm8qHfrM9fJETv9g5zYXRF2Y1WKVPFq0Lohx+YfzXv5sZpOqTzYo8lndQNiL44bnRH PMHGuvh3VCQHbrlRkC27Rb9SU6xUNBlrXf6TJXvEfVvelVqcSZ3HLlT6sCkVajYS0Tea gHIn8F5bxjsP5eZVuUPE15RHg/C6/Qf10p/CdtLtkVTaWuGSl/UZnsf0TBK57Qqzzz/v /lDxBvFCFSxwJg4HZTzn5iHecuasTDdGLl5QXX2lvoEmU7EnSVFBwpKR9TyhgAlrgG6l JQlA== X-Gm-Message-State: AOJu0YzoHLQV02Uxb6+1mhhhXkEhwW9ZS1vXyj4gIrbu96NhR8Kxe4Dk YOKZRYc8NK1RiZXK04QstQOjgcCTZmoPbTYktOHTtLC5 X-Received: by 2002:a4a:c509:0:b0:57e:c9bf:696e with SMTP id i9-20020a4ac509000000b0057ec9bf696emr25681079ooq.1.1697190234588; Fri, 13 Oct 2023 02:43:54 -0700 (PDT) MIME-Version: 1.0 References: <20231012102700.2858952-1-daniel.lezcano@linaro.org> In-Reply-To: From: "Rafael J. Wysocki" Date: Fri, 13 Oct 2023 11:43:42 +0200 Message-ID: Subject: Re: [PATCH 1/2] thermal/core: Hardening the self-encapsulation To: Daniel Lezcano Cc: "Rafael J. Wysocki" , Lukasz Luba , Thierry Reding , Amit Kucheria , Zhang Rui , "open list:THERMAL" , open list Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Fri, 13 Oct 2023 02:44:08 -0700 (PDT) On Thu, Oct 12, 2023 at 11:13 PM Daniel Lezcano wrote: > > On 12/10/2023 19:44, Rafael J. Wysocki wrote: > > [ ... ] > > >> Yes, we should but there is the series for nvidia (pointed in the > >> changelog) which need a slight refresh for the bindings AFAIR. That > >> series is since March 2023 and Thierry seems busy [1]. I'm holding the > >> hardening since then. > >> > >> So I don't know how to make progress on this? I was assuming we can > >> merge this series and let the compiler recall what has to be fixed. > >> > >> [1] https://lore.kernel.org/all/ZK14edZUih1kH_sZ@orome/ > >> > >> and as soon as it is fixed, we convert the WARNING to ERROR :P > > > > To be honest, I'm not sure if anything needs to be done along the > > lines of this patch right now or even at all. > > > > The only concern here would be that some new drivers would include > > thermal_core.h while we were waiting for the remaining existing > > abusers to be fixed, but since this hasn't happened for the last 6 > > months, I'm not worried. > > > > It would be good to add a notice to thermal_core.h that this file is > > for internal use in the thermal core only, though. > > So this series will give a warning for the remaining nvidia driver but > Thierry just send the changes to get rid of the thermal_core.h (Thanks!) > > AFAICT, the last user of the thermal_zone_device structure is the > int340x driver but the patch fixing the structure internal usage is > already in the bleeding edge (well perhaps one nit is missing for the trace) > > As soon as the bindings are acked, then I can pick the patches from > Thierry which will end up in your tree. Then you can apply the current > series. And finally I'll send the last patch moving the thermal zone > device structure to the thermal_core.h. And we will be done with this part. OK > Having a compilation warning (I would prefer a more coercive error if we > agree on that) will help to not have to double check every time > thermal_core.h is not pulled in the drivers when patches are submitted. Well, at least it doesn't hurt to have it.