Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2440705imj; Mon, 18 Feb 2019 06:07:41 -0800 (PST) X-Google-Smtp-Source: AHgI3IZLKikUA6hog9Hh7sTKp3gkTHFZDGRKiziZ9hjbFF+vbzFnEf4t7BYgadXpO0CJXKqfBlzx X-Received: by 2002:a17:902:e612:: with SMTP id cm18mr24653365plb.172.1550498861107; Mon, 18 Feb 2019 06:07:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550498861; cv=none; d=google.com; s=arc-20160816; b=IPKqtfpydLIxD5jn9GxmnOlj5cZh2naV/PzGJdVn2X2pp+4sHHxBwtfmxPsJZpX8HD jNEhGjHzTQdwBlNE01yy4IfP5n8Lq/4gKhqhD9xGBa210iokU4QdRlBBXXITT+TUVODE 1KvG1k9YT31nCt2BuWpzjAuicZJhsYYuvZtH3coPLyn4lhEJ4xVbmtzC08tOZxauuEWe Jqb/tR9w68+UcslG59t8C4ZrjhZvLN+OcmGSomsL6X/cUEWjMQ0f69/+5BE3NEsJdIZO 6SfeadsOmaRt9hDrh47/56b/qPFtmvBWmsN3pjAYEfnQ9fRhvF5BgVQAkdx0FcpN0xKe 2fZQ== 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=a1p6IOkOrKUdv3s9IlATgQravXVPc7r08AghWp3XeEA=; b=TkiuEWE9QcSRm8YK5dtZJMNrIJLwNB2lGHfVOEx+1R9HQsrGXL/mU8FPjEw4s/fBBc We5hSqSfYsYa1iWX/Jo3rkwSBBssO2uA0hvdjQQU0IDgej7/np00V82nb6SchhysSzwo /6Uca/fLbIyI/CfO4EeWG+nS8DyCg8RZMbTGJ5EBsq8jFq6LKwAIhJ4LZyxyMeGwGGI0 Yk7KcjTEA5l/a1Ed6bJ0HOsZ5YlUqoQA2oyV/YbOyXkhQ/OEsiLT1Kwr8gyVLJEdJE6W 3txol4EGEvs+0akREq2N3br2D/t5Ud3Cf6rVoUe0j57MRcM9qwlJ5YcTDOT4G0vcfaWl QJfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=xafowLYC; 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 r27si12791239pgl.494.2019.02.18.06.07.25; Mon, 18 Feb 2019 06:07:41 -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=xafowLYC; 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 S2390138AbfBROFV (ORCPT + 99 others); Mon, 18 Feb 2019 09:05:21 -0500 Received: from mail.kernel.org ([198.145.29.99]:48108 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389447AbfBROFT (ORCPT ); Mon, 18 Feb 2019 09:05:19 -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 1E1432190C; Mon, 18 Feb 2019 14:05:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1550498718; bh=ggl6PVZmfIuVfBvrJVbWDWWwnlnItL2vDtkwcMpaDiQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=xafowLYCQ47PR/b1BVt3pjBUqZjOMUI86nNI/dNpqqbQYumLFzzmeS703oxAN4pJy hJm8ZjQ+3SMayRp2WI6FJtsrVgIuCVzwCBLK/w6871m7/XHbrnEzYkRmf72CDskJpf Uf9u82G97rtUe6Y1w1WTf4zTwvEdS6Pb8SAHDLIM= 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.4 073/143] thermal: hwmon: inline helpers when CONFIG_THERMAL_HWMON is not set Date: Mon, 18 Feb 2019 14:43:21 +0100 Message-Id: <20190218133531.763047093@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190218133529.099444112@linuxfoundation.org> References: <20190218133529.099444112@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.4-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) { }