Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp1338891imw; Tue, 5 Jul 2022 07:49:15 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sBIFAMLBPcuxVu0T0arwu6VuEIKa3clOBV2gVOEa0n3pmsKXxt1X3B8wDYI0sgAmL94X7p X-Received: by 2002:a63:90c7:0:b0:40d:3c0d:33f4 with SMTP id a190-20020a6390c7000000b0040d3c0d33f4mr29873070pge.334.1657032555137; Tue, 05 Jul 2022 07:49:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657032555; cv=none; d=google.com; s=arc-20160816; b=d6DUZfKddxyIzBQAJicUxtEwQ48TIOeEghLo/ljHBefSkexx2Q2UNRAPpWqwxDrKuR aru9m27hTGFDSQDp/+jkbJBM4SpeVnEI9BPWteeZqm7Yp4aymtqbpgdA4HDvNTuWslJC ZGgMysaXhful9fp/+xKHAnys0SaSprQb8ABQI2kCKFlS02Kq4JnrWlpes0BWZfU51M4x LtJX9RMXnQOWVEPEUgNtRfIxb+O534x4Qjt9QXsNv7gN4QAEaDsCJQX+1UsjYckYNaKZ l28RNcvp8UXhWFYfKMO64m2VKnR6tJ8REQsgexkFDBqj4C0l78DkXAnlNjdyfuY7qyuO xeuA== 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; bh=EAgRVoOP3NX/0WI1U8x3O8tTskuFfYPmklozHFygDm0=; b=1H/0vEfaY3OCAlcN6VU3cyLYjhXu7xjbV2CJu6Fu18vEMr6zuISreIUtnpItsUAhCr 8fV089/iNaS/pBmNGuVZnSm2iToTQVOyVZcxxtgaAw1e/PupfQ/AxruomNutkwMJs4UW /HXTbhhqWljSEteE6UQu1GpuvBXtIZvTXXjOECsF8bGOMumOVWKVJo9/J+eFQVRuSPIc iKcP1muSWZd6vUifCZA/Un5bMq0dkO/AE7pWdiFQUZkiaAr2HGto4SaW4kM6VXE7C0Vu bfjIvTw7DnaUFJbISJ7CHs+5p7H4n3IwGPtsLtRN42eCg1Fa7kCYD3q9FdRrTLjdfe91 LhdQ== 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=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r193-20020a632bca000000b004114fd8e9a9si27527536pgr.825.2022.07.05.07.49.02; Tue, 05 Jul 2022 07:49: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=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229905AbiGEOrf (ORCPT + 99 others); Tue, 5 Jul 2022 10:47:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42030 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229492AbiGEOrd (ORCPT ); Tue, 5 Jul 2022 10:47:33 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D4B24E02B; Tue, 5 Jul 2022 07:47:32 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 60604D6E; Tue, 5 Jul 2022 07:47:32 -0700 (PDT) Received: from [10.57.8.239] (unknown [10.57.8.239]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 2D9943F66F; Tue, 5 Jul 2022 07:47:30 -0700 (PDT) Message-ID: <75eb1aff-6aa9-b393-efe4-c8559d5a2701@arm.com> Date: Tue, 5 Jul 2022 15:47:28 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: [PATCH v3 05/12] thermal/core: Remove unneeded EXPORT_SYMBOLS Content-Language: en-US To: "Rafael J. Wysocki" Cc: Daniel Lezcano , Linux PM , Linux Kernel Mailing List , Kevin Hilman , Alexandre Bailon , Amit Kucheria , Zhang Rui , Todd Kjos , Wei Wang , Daniel Lezcano References: <20220703183059.4133659-1-daniel.lezcano@linexp.org> <20220703183059.4133659-6-daniel.lezcano@linexp.org> From: Lukasz Luba In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_NONE,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 7/5/22 15:20, Rafael J. Wysocki wrote: > On Tue, Jul 5, 2022 at 9:30 AM Lukasz Luba wrote: >> >> >> >> On 7/4/22 22:14, Daniel Lezcano wrote: >>> On 04/07/2022 09:35, Lukasz Luba wrote: >>>> Hi Daniel, >>>> >>>> (+Todd and Wei on CC) >>>> >>>> >>>> On 7/3/22 19:30, Daniel Lezcano wrote: >>> >>> [ ... ] >>> >>>>> } >>>>> -EXPORT_SYMBOL(get_tz_trend); >>> >>> [ ... ] >>> >>>>> } >>>>> -EXPORT_SYMBOL(thermal_cdev_update); >>>> >>>> I wouldn't remove that export. I can see in my Pixel6 modules dir, that >>>> it's called in 7 places. >>>> >>>> I assume that in Android world this is common use. >>> >>> It is not possible to do changes taking into consideration out of tree >>> code. Moreover there is logically no good reason to use the >>> thermal_cdev_update() function from outside of the thermal core code. >>> >> >> I see your point which is 'upstream'. On the other hand the mostly >> deployed kernel is in Android devices and that brings a lot to the >> community. >> >> This symbol might also be used by other distros which might have >> modules for some accelerators, which also support tricky cooling. >> >> I would keep it as is... > > I think that the long-term goal is to reduce differences between the > mainline kernel and Android. From this angle, it would be good if > Android was aware that the mainline did stuff especially for them and > making them carry an extra patch would go a long way towards that > purpose. It's hard to judge sometimes especially on those small bits. I've just pointed out and shared the info that this symbol is used. What you will do with this it's up to you. You and Daniel are the maintainers of this subsystems and have long-term plans for it. Todd and Wei are on CC, so they will know about this change. My job finishes here.