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=-6.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_PASS,URIBL_BLOCKED,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 CD249C43381 for ; Mon, 18 Feb 2019 14:15:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9A71D2177E for ; Mon, 18 Feb 2019 14:15:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1550499342; bh=7OIWxanLDuxb4z6stzDFMikdg1l8FTjbcfJycHKJ1uc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=Vz4gy6daQZI0z+YeDU0luWdrOnK33liAehz1YQcmBultKdIsIl+NQt7C/4Z3AUGhE Ylr0IEQq5IUB6ZLh0PGoQWLEXS6sarhb4uJ4+KIdNX7aVV3VVAkE/oWg6JYQs62DLF LpbXJaxX96Ymw7FhRlARwiMVlW4o0eBJY5BCGp5E= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391893AbfBROLy (ORCPT ); Mon, 18 Feb 2019 09:11:54 -0500 Received: from mail.kernel.org ([198.145.29.99]:56116 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391837AbfBROLu (ORCPT ); Mon, 18 Feb 2019 09:11:50 -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 6196021934; Mon, 18 Feb 2019 14:11:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1550499109; bh=7OIWxanLDuxb4z6stzDFMikdg1l8FTjbcfJycHKJ1uc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fMbJXQnetgcuPy0TkoZkjyDe+kyPi2zCH/cUshCzATjBFWEzpZ86mqnP2LtjrnkQ6 TB36tuH4TXwQYxlYak1gzsAOCn62hXtXQ/Gof5Ay4r5lYletMZdg/tVD/oCU9DRuZg pXg09/Zn78Y/lt4f9zLocyl+vHcUQUhrgUR8cY3U= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Geert Uytterhoeven , Eduardo Valentin Subject: [PATCH 3.18 056/108] thermal: hwmon: inline helpers when CONFIG_THERMAL_HWMON is not set Date: Mon, 18 Feb 2019 14:43:52 +0100 Message-Id: <20190218133522.106938400@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190218133519.525507231@linuxfoundation.org> References: <20190218133519.525507231@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 3.18-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) { }