Received: by 2002:ac0:de83:0:0:0:0:0 with SMTP id b3csp1338981imk; Mon, 4 Jul 2022 00:37:38 -0700 (PDT) X-Google-Smtp-Source: AGRyM1umxBooktrvRgInK+5Wcw+ON4dTubUn79sIecUQ1nCru6abUGyyTPIEFOVLHQnw/eQXDp3v X-Received: by 2002:a17:902:9046:b0:168:b8ee:8164 with SMTP id w6-20020a170902904600b00168b8ee8164mr33975216plz.159.1656920258564; Mon, 04 Jul 2022 00:37:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656920258; cv=none; d=google.com; s=arc-20160816; b=x3oOi7F+OpOjToKoQWJm5spYLGft3hQtZaDZDsAzxxSAF1SGrzZ8foH0gQW1rbs0SW p7hJcc6jVZNKpb3AZLHHc/bygu8Ap8+dBFjYF3VioJFdNply1TIZfp4AUFfULkX2mgN9 mAiB/4+GkdZ8PkQtrgbMbeKpDCAVX77NwbI/zC0TNJhuWX7s4ElGhVvqRfk4HYmuFiZG M7WAYDFtnDDMXeH245t8B7yip8N4u/P8yvcs4U/4IWDd5pfPe8UgxqaF/DJo/fV5y+3q BK2ZEq2NvkpmyftbahWd//tip3mfp6G6NyvBruV1OkFcVG81EE8Qfyp0138uMfJnkcAZ UCqg== 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=6gPdnNDdWzBH/FGnDtb3NM6KtucPp/vYPtTqMDbFtWE=; b=vrcN5ypIV4pwHRUbg/zu20Vs/esIaEd72/GY7ruW75fXaJb7zl2azvGuKxxwet2rm1 F/AUwWQ+MDuzEFMqRCAe0M8ZJHmAl3lC1cvzWTJk22IRCZGQ/uHaXGWPOUbxBhxu5VNY R/HyMp87+yL3NZ5NbjR/l3Ar05YWSHA9murIdMtVvK77gmSWGRUbG+cOkiPwtfGFc+kv Di4qCWSFVRNiaoq3dsR/m6iguksa2Efk5p47iS5drmEDzAu/IOqFNEpIxLyPBwc7yTCt h4Aa4eEcMz9yYlxOiVsjyZ+Wlx3eghh/ZPQTORc6RcQx97Rj9Q6f44ykekai5+/YlMHv dbIQ== 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 pi4-20020a17090b1e4400b001e2c9663635si13970698pjb.159.2022.07.04.00.37.27; Mon, 04 Jul 2022 00:37:38 -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 S232901AbiGDHf7 (ORCPT + 99 others); Mon, 4 Jul 2022 03:35:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57652 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232808AbiGDHf4 (ORCPT ); Mon, 4 Jul 2022 03:35:56 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5EFF395A5; Mon, 4 Jul 2022 00:35:55 -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 4E0B023A; Mon, 4 Jul 2022 00:35:55 -0700 (PDT) Received: from [192.168.33.14] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 2CB8D3F792; Mon, 4 Jul 2022 00:35:53 -0700 (PDT) Message-ID: Date: Mon, 4 Jul 2022 08:35:52 +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: Daniel Lezcano , daniel.lezcano@linaro.org Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, khilman@baylibre.com, abailon@baylibre.com, Amit Kucheria , Zhang Rui , Todd Kjos , Wei Wang , rafael@kernel.org References: <20220703183059.4133659-1-daniel.lezcano@linexp.org> <20220703183059.4133659-6-daniel.lezcano@linexp.org> From: Lukasz Luba In-Reply-To: <20220703183059.4133659-6-daniel.lezcano@linexp.org> 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 Hi Daniel, (+Todd and Wei on CC) On 7/3/22 19:30, Daniel Lezcano wrote: > Different functions are exporting the symbols but are actually only > used by the thermal framework internals. Remove these EXPORT_SYMBOLS. > > Cc: Alexandre Bailon > Cc: Kevin Hilman > Cc; Eduardo Valentin > Signed-off-by: Daniel Lezcano > --- > drivers/thermal/thermal_helpers.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/drivers/thermal/thermal_helpers.c b/drivers/thermal/thermal_helpers.c > index 3edd047e144f..f4c1e87ef040 100644 > --- a/drivers/thermal/thermal_helpers.c > +++ b/drivers/thermal/thermal_helpers.c > @@ -39,7 +39,6 @@ int get_tz_trend(struct thermal_zone_device *tz, int trip) > > return trend; > } > -EXPORT_SYMBOL(get_tz_trend); > > struct thermal_instance * > get_thermal_instance(struct thermal_zone_device *tz, > @@ -228,7 +227,6 @@ void thermal_cdev_update(struct thermal_cooling_device *cdev) > } > mutex_unlock(&cdev->lock); > } > -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. Regards, Lukasz