Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2658546imj; Mon, 11 Feb 2019 06:35:52 -0800 (PST) X-Google-Smtp-Source: AHgI3IZ74MWTW3Zgv+8evD9M2FiHJ6oiq7wAX8JiSIddWa/h/TQOwBW5Ic/Sp+eNAHAmtiB5054d X-Received: by 2002:a63:4456:: with SMTP id t22mr34424066pgk.0.1549895752584; Mon, 11 Feb 2019 06:35:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549895752; cv=none; d=google.com; s=arc-20160816; b=G2NNi2UG6Dzh5bJJ2IrfVazTKeWgUfeEPrSpARE2RMnE53gD5OhIIdfvF1rOX9RHzU erhey/irPfMzhqwzvwuwk+5VyguUw7H33EZikxcMScuQQ6BXykq3JQOEwiiEsJ7SlnQv g3u1jhlANkYxje6mYzhZxImmTyaTenrvE7Tnj6/++/zemixRGHvvDmtTgixkBi08PFA9 h6RKXVUC7zLGRwQ2TXHhntYxaUqlGY7akUl178+JFEEzg7zvWrzbS5uP85UW01ASeqKe qX3MZ/LZrjd+i3DUA9hn1U4A8lPuZ3cERHoU9fTEwu5yPQwHdhh//NEEtfEvnnT3yz63 /jwQ== 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=o4paILK/ams8P+mm27lReznxTsYAs453xDW5d8NEw2Y=; b=oBQ5Njz1glRe4cCEpmiav9eGRshucBmCB9jzCgt2wFAc2duVqYoH7vjc2Q3eDBgvPs Y8dZWCYKzt8l40imM2h6tCHOonre8h/p4sqrK1oanoRG/ORy5B9B1pQQRISg58XJOKmh WQb9YhquVi71NiRlTRz6uHr3mR5RdvnQoJzaVXBdzZepdhtBV49o/Wx/4c69mwsnz6Zh IHbDZ4Vtg2FXLgylC0egW0OdRis7yOx2aH9L4suzzln1lXqVk9ztPq3aREvLhqnSkzuf 0lQmkrWOkKDr0gAcRkiLtBwBiVfew9I7VvX3/SkqYwNEcVqTuT5zyWqzblXd4mgEsFGD tghQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=wdDswNwf; 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 q10si3956669pls.280.2019.02.11.06.35.36; Mon, 11 Feb 2019 06:35:52 -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=wdDswNwf; 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 S1730926AbfBKOe4 (ORCPT + 99 others); Mon, 11 Feb 2019 09:34:56 -0500 Received: from mail.kernel.org ([198.145.29.99]:43320 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730739AbfBKOex (ORCPT ); Mon, 11 Feb 2019 09:34:53 -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 000012081B; Mon, 11 Feb 2019 14:34:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1549895692; bh=gZvFUfBT3fji8JLZAa4RPDnUG+favXQuLJ4bBEAbZqE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=wdDswNwfR6Vblh4KcU5+EINq8rATLxrI4CWofwqqGuE3UM54H4Fpv8ogSIa5cQJaH NHSrDvdreDxOkZegtivcOtHQoGf9XFzljEcb58REW3EwDXdJdQlUADkTY3F67AyB6u 8oy9B/3CSiQQMnp/biXtnIC9vjblNZOQy8qavYsU= 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.20 291/352] thermal: hwmon: inline helpers when CONFIG_THERMAL_HWMON is not set Date: Mon, 11 Feb 2019 15:18:38 +0100 Message-Id: <20190211141905.417853882@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190211141846.543045703@linuxfoundation.org> References: <20190211141846.543045703@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.20-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 @@ -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) { }