Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp572040rdg; Thu, 12 Oct 2023 14:13:55 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHMsQ4bX/USjxuJiATrsftl3YsrSuGM2SC4xvI1dv0njMI9K86zgpOeoyhAsQnBr7ESXgrq X-Received: by 2002:a05:6a00:2406:b0:690:d620:7801 with SMTP id z6-20020a056a00240600b00690d6207801mr24526973pfh.11.1697145234683; Thu, 12 Oct 2023 14:13:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697145234; cv=none; d=google.com; s=arc-20160816; b=J0T4PCCpcNmcqtVtP6M6Y2mIsPR6fy1XgCXDd0IrZdj+Kj57PJazusZ8NPYOqFFrdt VhXzO3o2A05mO1IYxjVj1lXJydBqyKdU3qXNC6PqW+X5qJcaV0u01wPYA6UEFC/EJQDH laegcO24s55ZcvIazojhLrzib15x7ypQcdaryocALkJobE5xdITIQ0U+9h1GtWACitCc 8xb0w4FU1UUcRBTS7Ae6GgynaL7q7/CyvWv0RhnqP57KgUXeHNPDLc+9HtU3dNPM8MES 2JfoITajRPcgUZj9UEtYwMo0pyKjF34eSzAnTsZk5FWI7uBUK+/DGMaYQkpSAYVTPpeM xn5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=JHc53RKO8nhqYnehqtbOrBzFrWfxOOgucL77D+OqER8=; fh=ImS/cwTf+R8d+yt6dknS0rHeV6R4roTVr9N2jc4Kuhg=; b=k3ksELU8MVwAykqSBHZ2VUENPQ83lR56QqLJ5NFJFyyz0GzpZG34l2TZesRalTgp3b xWh2l2yoQjC/rxx/cR9yiuW2OQ3WXTMYQwcDMf+0lbpln0pdegdbncAYZF0rxtJHB5fg t5M6tPSFuF3Au67P8YuttIY+kk9SB0dTMlLNL1kw1oFbLacYhPPEneC9H9A+pF++DlrU Fxeka8a0Os9Xd7oA+IbEJzzS6LQTt9lWVsh+1L6a93JqOwLhlzSr7grKve0iwp1De2PW k3B67FR4k/X+mnQ9USU3EK7Rs98WcxTi8Z6E7VeYMfUvnR+8PCOGudH3F5l+7OppXwx0 zE4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SfVh2eFI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id i194-20020a636dcb000000b00588fa0def2asi3112924pgc.778.2023.10.12.14.13.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Oct 2023 14:13:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SfVh2eFI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id B17A4821A17D; Thu, 12 Oct 2023 14:13:53 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1442825AbjJLVNt (ORCPT + 99 others); Thu, 12 Oct 2023 17:13:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47448 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1442831AbjJLVNs (ORCPT ); Thu, 12 Oct 2023 17:13:48 -0400 Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7FBF3A9 for ; Thu, 12 Oct 2023 14:13:46 -0700 (PDT) Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-4054f790190so16756795e9.2 for ; Thu, 12 Oct 2023 14:13:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1697145225; x=1697750025; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=JHc53RKO8nhqYnehqtbOrBzFrWfxOOgucL77D+OqER8=; b=SfVh2eFI16gsj+L9htqhOHpp6t5KQTurkUoiXm8Gcd3rpCuRsf3KxMU4//DneKmbF2 ODNoIKWjxjSE5zVMO6tWDTN0jtt49R/mj0ie7dZ1Ey47lEIkJ+V5TJJN2h6ZGLbuw9zX gQNbmn86Q4KBOUK2SLxt23sjQ0XDnl+y2ap5CMkTTdWgJ8t1Gts6FlMTRQfD59bwMelf 5b+Mmr9FC0t6sFxDiR/WJrpWjcDkm9cUPCUoTCJQKqhlKsw7VfYX8uKjmqyHmSccoGHG J4MrD2ZKVu9vdW+TiWqDk3LGwPVt4eO9U5ll7+ZQfx/+NvflrNclFy2Ouw5lE4+Mf0Q/ n0YQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697145225; x=1697750025; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=JHc53RKO8nhqYnehqtbOrBzFrWfxOOgucL77D+OqER8=; b=vl1v+i3B8r4ZsQbbguVoNP2pPLQ0mF4RXan4QC2K2/AGvSViJ3eTxRHdvAN7ORj2TF L6Eofyqd8CyOlkcTKlrq3CUWN6/nUSGwF7O40PW92dpBfXabv2FJ0SH2HmoGaVx11uCp IXGRwpuy1OQfecb996Jli84v8livuCQtT5Yy0g0GOAz9SzHS72bKah8OynmKAtHbfAjo noTr5G6r3BvLUZAV4vX542t4iL95raTkd0QEnMLFF5QNjoT1fU84BJ5NNX9tp5J1mdU5 QMleCTmF0iYZbvX4UfvoJBNAMyb4WO64THEt6oFKTKotHDAj2avmNpS0+J4Sy+Trxoma TNHg== X-Gm-Message-State: AOJu0YyrRLPXm0/CID580cXUOItpl+t9/GCANFOSFmT2vqXv4bPVVN0O z36zMpdvRa1adTb55NW/ZumA9g== X-Received: by 2002:a7b:cc8f:0:b0:403:7b2:6d8f with SMTP id p15-20020a7bcc8f000000b0040307b26d8fmr22114721wma.2.1697145224900; Thu, 12 Oct 2023 14:13:44 -0700 (PDT) Received: from ?IPV6:2a05:6e02:1041:c10:c49e:e1a5:3210:b8c0? ([2a05:6e02:1041:c10:c49e:e1a5:3210:b8c0]) by smtp.googlemail.com with ESMTPSA id l25-20020a7bc459000000b004054dcbf92asm779383wmi.20.2023.10.12.14.13.44 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 12 Oct 2023 14:13:44 -0700 (PDT) Message-ID: Date: Thu, 12 Oct 2023 23:13:43 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/2] thermal/core: Hardening the self-encapsulation Content-Language: en-US To: "Rafael J. Wysocki" Cc: Lukasz Luba , Thierry Reding , Amit Kucheria , Zhang Rui , "open list:THERMAL" , open list References: <20231012102700.2858952-1-daniel.lezcano@linaro.org> From: Daniel Lezcano In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 12 Oct 2023 14:13:54 -0700 (PDT) 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. 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. -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog