From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A829FC433B4 for ; Thu, 22 Apr 2021 11:35:15 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7424661437 for ; Thu, 22 Apr 2021 11:35:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236108AbhDVLfs (ORCPT ); Thu, 22 Apr 2021 07:35:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54644 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236085AbhDVLfq (ORCPT ); Thu, 22 Apr 2021 07:35:46 -0400 Received: from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DAC5FC06138B for ; Thu, 22 Apr 2021 04:35:11 -0700 (PDT) Received: by mail-wm1-x32b.google.com with SMTP id y204so22517800wmg.2 for ; Thu, 22 Apr 2021 04:35:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=RvmGnR6fqZoWGO+g5KCcukp75k8kdVWhlFSmREYCODM=; b=coK/So83Z+mSD4tpAr7Z52tFLvTMp4KQbeAuXoQICTLfBRKytKCAl3MUT/jf7RLHkt HlzZ/HLOiaIT9otzb5XeeRAvfOdTYmnDnIzLEMd1KBKj9Dg9TgQKgxxVUsywbO3O0o+i tikPeYBQcT++BYYsMUbgxgw2+SusJ6gWl6J3pV/ZhPYmVdNAwqchPug9k7ZtGwiL6irT FdMOWzlPcyex9V3FKyiJiRSy7gw7DX3ZV8y+2vNz/NW2Tn0BgnmKsvPKAO477ylz561R cyNJp1MGMKnoNBuHph5LeHXJrl5Clk7tHqUXr4E10KAiAYbDdTYpz6nt7yhR12F+ADMf WCgA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=RvmGnR6fqZoWGO+g5KCcukp75k8kdVWhlFSmREYCODM=; b=OLiC/Tv2ZAGne/lo3OKJDwXR8K5NwvfoKXnTq3VnhrnPNRSSZLC04C87ydTBEJWu7m A/YaqPFDSNeAmZ3SWVr3zHNDvZBX6Vpnm+yWpTgY8WaroIrBsn/8Qf9w1zKMr6cwc3Ad U/QKuWO8vN5g6YLs/S/V142G/3X0vqbt+sqdOT2z44cm/BUzxHB/eaWql56Qo8ToIiAt mH6duGuGJCnUdZqIKTKF8jZiei1rsedBJkGwnFpuhK3yEFE8//QOD3Wd3AKVc5nFI8sc vYrCG+szWFTDCvER07VwglurqjPy30spq53NkLBqmW0gQ+t/zC7ou41VzVBLoqwUpDZW vEJA== X-Gm-Message-State: AOAM531kY2+LWz1odID5PeW85Jd7zNBpMAomXqhwtD1nyhPrtxJaHofT l44sDhuC6xNUBVBnpIcMYozOcA== X-Google-Smtp-Source: ABdhPJzrYExd2/JRMa38rbWMA4zaMAIHSyQcTpBabzlTpDnfo7zv0ijWlGMUItsEsf1w7znniQv5Ug== X-Received: by 2002:a1c:7707:: with SMTP id t7mr14745827wmi.76.1619091310528; Thu, 22 Apr 2021 04:35:10 -0700 (PDT) Received: from mai.imgcgcw.net ([2a01:e34:ed2f:f020:e88d:2580:c20:b786]) by smtp.gmail.com with ESMTPSA id u6sm3237890wml.23.2021.04.22.04.35.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Apr 2021 04:35:09 -0700 (PDT) From: Daniel Lezcano To: daniel.lezcano@linaro.org Cc: Jonathan Corbet , Zhang Rui , Amit Kucheria , Viresh Kumar , Thara Gopinath , Flavio Suligoi , linux-doc@vger.kernel.org (open list:DOCUMENTATION), linux-kernel@vger.kernel.org (open list), linux-pm@vger.kernel.org (open list:THERMAL) Subject: [PATCH 2/2] thermal/core: Remove unused EXPORT_SYMBOLS Date: Thu, 22 Apr 2021 13:34:56 +0200 Message-Id: <20210422113457.51578-2-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210422113457.51578-1-daniel.lezcano@linaro.org> References: <20210422113457.51578-1-daniel.lezcano@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The functions exported in the thermal_helpers.c file are only used by the governors and those are not compilable as module. Remove the EXPORT_SYMBOL as no module code needs them. Signed-off-by: Daniel Lezcano --- .../driver-api/thermal/sysfs-api.rst | 28 +------------------ drivers/thermal/thermal_helpers.c | 3 -- 2 files changed, 1 insertion(+), 30 deletions(-) diff --git a/Documentation/driver-api/thermal/sysfs-api.rst b/Documentation/driver-api/thermal/sysfs-api.rst index 4b638c14bc16..c35266bbc119 100644 --- a/Documentation/driver-api/thermal/sysfs-api.rst +++ b/Documentation/driver-api/thermal/sysfs-api.rst @@ -711,33 +711,7 @@ method, the sys I/F structure will be built like this:: |---temp1_input: 37000 |---temp1_crit: 100000 -4. Export Symbol APIs -===================== - -4.1. get_tz_trend ------------------ - -This function returns the trend of a thermal zone, i.e the rate of change -of temperature of the thermal zone. Ideally, the thermal sensor drivers -are supposed to implement the callback. If they don't, the thermal -framework calculated the trend by comparing the previous and the current -temperature values. - -4.2. get_thermal_instance -------------------------- - -This function returns the thermal_instance corresponding to a given -{thermal_zone, cooling_device, trip_point} combination. Returns NULL -if such an instance does not exist. - -4.3. thermal_cdev_update ------------------------- - -This function serves as an arbitrator to set the state of a cooling -device. It sets the cooling device to the deepest cooling state if -possible. - -5. thermal_emergency_poweroff +4. thermal_emergency_poweroff ============================= On an event of critical trip temperature crossing. Thermal framework diff --git a/drivers/thermal/thermal_helpers.c b/drivers/thermal/thermal_helpers.c index 7f50f412e02a..0ecf2c66aa76 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, @@ -63,7 +62,6 @@ get_thermal_instance(struct thermal_zone_device *tz, return target_instance; } -EXPORT_SYMBOL(get_thermal_instance); /** * thermal_zone_get_temp() - returns the temperature of a thermal zone @@ -221,7 +219,6 @@ void thermal_cdev_update(struct thermal_cooling_device *cdev) trace_cdev_update(cdev, target); dev_dbg(&cdev->device, "set to state %lu\n", target); } -EXPORT_SYMBOL(thermal_cdev_update); /** * thermal_zone_get_slope - return the slope attribute of the thermal zone -- 2.25.1