Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp1332389imw; Tue, 5 Jul 2022 07:42:31 -0700 (PDT) X-Google-Smtp-Source: AGRyM1t1pX7KK0XSnB2JC5/0n/dHKjmik3nuut3g05UJNcqyItUftZagSZ4MKBZV9PsGHUg7q5b+ X-Received: by 2002:aa7:c84d:0:b0:431:4226:70c9 with SMTP id g13-20020aa7c84d000000b00431422670c9mr47034348edt.51.1657032151588; Tue, 05 Jul 2022 07:42:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657032151; cv=none; d=google.com; s=arc-20160816; b=avcZ5dryiN14OTvAwHgS12PvW5yS80PBNwsEJcZ5+bf8lfCe1uiD6o1d5zyrgTxsus go9peqKB4nyWyIQwPvsNqlGooi2OYmA4s71/ou/9hzsCAISRQ1tfrdDUObHZy82sm0ws 1+uDaVxA16WLB0TibRrRs1ReeqGIshPspy2XAATCBdxISFIQlEf7IB/riI/8HGxLTk62 bL+oLyIuRHAMYv40Wo+Dyyqbd28P8q7Hj1GJuyItlj/ukHhivFqVt/Ntcd+ORbwWBaW5 UJhT8rJEN8RpzkgJ1vXDX9c6cOiUEFyV845Qial9VLMfzzYebejR4da/aQFTTElcq23P JWdA== 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=moN/mB85gS3lzdF/iudqcHdJYr12PlhTawzxEcZPH9M=; b=v7586a1iehMeOWrNmZNm29v0+Pll87073GFzspfcxza8Jw6uggfwuShY6roPEsP5VS bAh/H568rWfzbXS8EPXgsUWItp+6U0s+d3CPhjvChcjiwdKmIo2YpjERHT/aG+e+h60g wcCyHnMEkKQ98Pw8EorOli82YxSiOu7AmVwzRgl6wI9g03y6XQmr6BRNVOzWljajSMCn 4SBwefhdATeQuQlxdSeJFjU+pKIA4ZwF7texAVw4i61/kkBlyhgUGoXSGqCfCIWoJ0Ac LD+1fHqHxx8QsR5DnJdkFdTJOr5J6KFFkEPB1YEqNDk1IuhO38RoD14hA0VE9myMwsUo Uycw== 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 l4-20020a170906794400b006fe95bb93b3si9774614ejo.861.2022.07.05.07.42.06; Tue, 05 Jul 2022 07:42:31 -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 S233368AbiGEOWH (ORCPT + 99 others); Tue, 5 Jul 2022 10:22:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47506 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231382AbiGEOVu (ORCPT ); Tue, 5 Jul 2022 10:21:50 -0400 Received: from mail-yb1-f174.google.com (mail-yb1-f174.google.com [209.85.219.174]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 38E9C2F9; Tue, 5 Jul 2022 07:20:46 -0700 (PDT) Received: by mail-yb1-f174.google.com with SMTP id l144so9583968ybl.5; Tue, 05 Jul 2022 07:20:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=moN/mB85gS3lzdF/iudqcHdJYr12PlhTawzxEcZPH9M=; b=QcI9TNjTjwN4/HXlM7tVfKPFBZPhYT7MlIidUxvVSNUu4MfKk/D0MroKP7tOowqShg //44Oppz/I5ABD3iVTNDZwelNcLlYi4ZI4nQuDEufjuAuvByy3gpmRc3fYnBFwF+nvqR iNRI4J3c+lbai/+MdSDmO3oEOkMGFG6IvwS68EAGGNqBBlVGOETmfrbubSH3nIF+Ovvm HEs0ocVq2hTJKaQPGbxHc8KscZfJUMMwhU42NjRULgoZmMtxtAZAPj93N4K1aotwvi7R cuawDsQmlszk5Wn7+PF0JOD5ZJlnOLaKof/c1pW1PsZ2XfsNhGxIxBC3qUmu7nnpG4Ci FwAA== X-Gm-Message-State: AJIora8S/ZRvXdeAH+HtscA9wYvj97sCKDM7uqViI47OdkUZ8Me0KgEc Z6XSvoTWeH/iI3DHxXqYemDAxAQwyEvxZG+RmUQ= X-Received: by 2002:a25:fb02:0:b0:66e:3db9:5d49 with SMTP id j2-20020a25fb02000000b0066e3db95d49mr14212439ybe.137.1657030845422; Tue, 05 Jul 2022 07:20:45 -0700 (PDT) MIME-Version: 1.0 References: <20220703183059.4133659-1-daniel.lezcano@linexp.org> <20220703183059.4133659-6-daniel.lezcano@linexp.org> In-Reply-To: From: "Rafael J. Wysocki" Date: Tue, 5 Jul 2022 16:20:32 +0200 Message-ID: Subject: Re: [PATCH v3 05/12] thermal/core: Remove unneeded EXPORT_SYMBOLS To: Lukasz Luba Cc: Daniel Lezcano , Linux PM , Linux Kernel Mailing List , Kevin Hilman , Alexandre Bailon , Amit Kucheria , Zhang Rui , Todd Kjos , Wei Wang , "Rafael J. Wysocki" , Daniel Lezcano 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, 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 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.