From patchwork Wed Jan 2 00:54:09 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Eduardo Valentin X-Patchwork-Id: 10746019 X-Patchwork-Delegate: eduardo.valentin@ti.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 41A906C2 for ; Wed, 2 Jan 2019 00:54:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 205002874B for ; Wed, 2 Jan 2019 00:54:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 12E3928791; Wed, 2 Jan 2019 00:54:34 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8F1192874B for ; Wed, 2 Jan 2019 00:54:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727218AbfABAyd (ORCPT ); Tue, 1 Jan 2019 19:54:33 -0500 Received: from mail-pl1-f193.google.com ([209.85.214.193]:35017 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726791AbfABAyc (ORCPT ); Tue, 1 Jan 2019 19:54:32 -0500 Received: by mail-pl1-f193.google.com with SMTP id p8so13868538plo.2 for ; Tue, 01 Jan 2019 16:54:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=O+ePjQ7C226KhuodnIPwEIOFOEB9bL4W6iyfH8mpcIQ=; b=TqG+asHfo2jJg9hxz8MbrxI7xTRtcRjOeQz7ORd9RhfI5xLgOyMAonM4Nc7GPWffgV pK5sNFImE4AYn5H1klHOCsyidkG4xA7qPsY9T6cnmGgoti6m7rGngesyQr6Fdt9Vus7g BbcYBJ6EqSSdCfm24OlmOMUzX+RhMTvyeZjB11Qo/OLRWvhaAdAWSjg+9TViuQVJsCC/ qQzzhBl+7w40+Pfd8b12OWrqXMDLXAM7MlbOY1y3+6KwEidnbX9RrszXUiNK3+LXT7DZ VLe7jXbEJ+J7UDU/IpGX0iMq0PhWRYNfaCLNGsb7tGWraj0lYYr6jIqz2GWcfCzgQNk0 /kGA== 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:mime-version :content-transfer-encoding; bh=O+ePjQ7C226KhuodnIPwEIOFOEB9bL4W6iyfH8mpcIQ=; b=J33EyIS7PirpRztABgsLa8nelwsjiUhs1Qky11OQICj1lxgw/AbkT7n7ijDe2qLK8R oF9pPjQ8znflSw75hDCD5kyfArAKxt3NdSfKldUFzjd5N8Pktq5fP4GTp/h3N6fV7ZvN 1bR0HrM+4ATlnfhAxU2267jqcY/lBZCAlUi3H7NaRfqRwn2++usV3xSpwRPlc8v4pTBA FQDuHuWg/JsxnNnHRA30+dDF44vt9uA+MEnERffTKbAhZ04/7BOyHm4hbyrFC5uUNaxp 7QjZdTNlEFCGtdz77MxlwM90rd7RgxVAtRP71qWGLCQEfs+edM7xq8eryBjfUX3nMzBe 5RKw== X-Gm-Message-State: AJcUukfH7Bl4/ptQAGa5+XH+6QLxicvO5/utT7I09Mjk1unK0/uYP4nK 9CzCPH6NoOI8JZ/EpjvnZZfdHXiD X-Google-Smtp-Source: ALg8bN7T3Txr+j2KqvBVM2Ji1IlvZEjEHjBUCIqPipr87kXg6K0xpKheUbOGm26ds/a9F8kAd7adXg== X-Received: by 2002:a17:902:c5:: with SMTP id a63mr42379690pla.267.1546390472177; Tue, 01 Jan 2019 16:54:32 -0800 (PST) Received: from localhost ([2601:644:8201:32e0:7256:81ff:febd:926d]) by smtp.gmail.com with ESMTPSA id b27sm75438227pfh.113.2019.01.01.16.54.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 01 Jan 2019 16:54:30 -0800 (PST) From: Eduardo Valentin To: Linux PM Cc: Rui Zhang , Linus Torvalds , Eduardo Valentin Subject: [PATCH 1/1] thermal: hwmon: inline helpers when CONFIG_THERMAL_HWMON is not set Date: Tue, 1 Jan 2019 16:54:09 -0800 Message-Id: <1546390449-32181-1-git-send-email-edubezval@gmail.com> X-Mailer: git-send-email 2.1.4 MIME-Version: 1.0 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Avoid warnings like this: thermal_hwmon.h:29:1: warning: ‘thermal_remove_hwmon_sysfs’ defined but not used [-Wunused-function] thermal_remove_hwmon_sysfs(struct thermal_zone_device *tz) Signed-off-by: Eduardo Valentin Reviewed-by: Geert Uytterhoeven --- I will be simply applying this as it is a silly missing inline's. drivers/thermal/thermal_hwmon.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/thermal/thermal_hwmon.h b/drivers/thermal/thermal_hwmon.h index 019f6f8..a160b9d 100644 --- a/drivers/thermal/thermal_hwmon.h +++ b/drivers/thermal/thermal_hwmon.h @@ -19,13 +19,13 @@ int thermal_add_hwmon_sysfs(struct thermal_zone_device *tz); void thermal_remove_hwmon_sysfs(struct thermal_zone_device *tz); #else -static int +static inline int thermal_add_hwmon_sysfs(struct thermal_zone_device *tz) { return 0; } -static void +static inline void thermal_remove_hwmon_sysfs(struct thermal_zone_device *tz) { }