Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2688365imj; Mon, 11 Feb 2019 07:03:34 -0800 (PST) X-Google-Smtp-Source: AHgI3IY1KABEy1yBALKLYBAuiZHl5+Uy945RMve6Ur5AM1It4lb3Vp1cAS/IcKiacA4kD7YF3pbd X-Received: by 2002:a63:b94c:: with SMTP id v12mr33492541pgo.221.1549897414106; Mon, 11 Feb 2019 07:03:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549897414; cv=none; d=google.com; s=arc-20160816; b=ar3dN90cA7WHYAwlaqeItkezTG+QxcGTVVXHZPvL2sPv3ZWFp8brTFcOciVV7xEfA5 50KJFozE3NdP8H5k/tlleH0UwgrFSJaBmXm2jdau+UDN5+7RZ5Y1f4a6NFZ8knR0AJUX sbvwHqnTQEL9ttfwBf6LtcHGJVV7I1FYXUYRtzr3zypPheEx+ItPMIZMzICuFXX7oYf5 VWEmSMSvb9IhFf1QXi/XZWR9SFovGoHtWbE+b3hnOZAwDxNyWH0k8etwm9fFvssUNOCd wr2aURE9RAUE1fzjMHhZnfS+cfSzc1TwMylfCzVY+duWauEIkeYEnfKjHF1YgoJeBt/B OVlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=DFirM3+0iXI5qVhgsTOjSPWhbuTer6pEo/6jf+tumAA=; b=tq7rENWEuH6aSgvKr8rU42uIadbewCvvaQKlGhwRjfYh3rdO3c4GersUVZhn0H9bvF 2rwRX9V26sZGyatmcCYKEM30q20wKoEqt1Fqn9FRPwMnY3QFPtCucV3KSCq4OQm8zg9D HgqQpSFmPRgQe9d1dW6BYWARg8w2P9INtAwAhD5WV+FIrd61ehc/vXjgkxYA8J53lcjR O5q5GPJPSFN3DtNWzaAd3Wm6QbCENfQQoSghb1IzXVAXVFPX8iUTS18YXzbS9GezvlM9 q1T/lrEQfIgHvIXkPykwvUoa0EwFevJoRT3NoXRSG7R/aPHc3h5l7E8rajQX7VTa38l7 zrmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=nQJcUVRH; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p19si9824379pgj.375.2019.02.11.07.03.13; Mon, 11 Feb 2019 07:03:34 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=nQJcUVRH; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390345AbfBKPCI (ORCPT + 99 others); Mon, 11 Feb 2019 10:02:08 -0500 Received: from mail.kernel.org ([198.145.29.99]:50292 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390334AbfBKPCF (ORCPT ); Mon, 11 Feb 2019 10:02:05 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id DC26F222B4; Mon, 11 Feb 2019 15:02:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1549897325; bh=XUXOFEFxw8PB3eGBQDwT6b1C0nPxCElX0MUAEqsxUBo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nQJcUVRHnzIkaeXtvCWJCO/ZVlgA16po/KnGIao0ddVL6L5uranq5z23jPD9nCtFH aXRVf1ecqiZTmCfCY8KOQVMLbB+OqhPuhixf1yQ+MsXgzIvNVM9Rjyni2zBmDE9NtE n4lfFhFKeowSCiRYWBqSuK+sHFIpAS9lfaORMhSg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Geert Uytterhoeven , Eduardo Valentin Subject: [PATCH 4.14 165/205] thermal: hwmon: inline helpers when CONFIG_THERMAL_HWMON is not set Date: Mon, 11 Feb 2019 15:19:23 +0100 Message-Id: <20190211141839.140379691@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190211141827.214852402@linuxfoundation.org> References: <20190211141827.214852402@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Eduardo Valentin commit 03334ba8b425b2ad275c8f390cf83c7b081c3095 upstream. 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) Fixes: 0dd88793aacd ("thermal: hwmon: move hwmon support to single file") Reviewed-by: Geert Uytterhoeven Signed-off-by: Eduardo Valentin Signed-off-by: Greg Kroah-Hartman --- drivers/thermal/thermal_hwmon.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/drivers/thermal/thermal_hwmon.h +++ b/drivers/thermal/thermal_hwmon.h @@ -34,13 +34,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) { }