Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp3151200ybf; Tue, 3 Mar 2020 00:11:45 -0800 (PST) X-Google-Smtp-Source: ADFU+vuGFBhf2k7wYAFGGZRO7YIRN679ciH9/alFJfWC9K47wDK7FwMBMiFNfKcMSzQ4+E4kZT1r X-Received: by 2002:a54:468a:: with SMTP id k10mr1750983oic.3.1583223105090; Tue, 03 Mar 2020 00:11:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583223105; cv=none; d=google.com; s=arc-20160816; b=QjhmBPni8fbFFmqC3bk9iSJXUxze0kNE3jjMw8+IZINi6frENwZ/6J+ZjAu60R9oTD foM1zlUAq73iE7iGlkHpZ2EPcU8FGMu4Q2XrDZYY+Ljh4lsX61crcYb9mhEKnLT/msFF 91Q2rwRgeSnpI8YglE6sbKRgRBw5a4Mt474tIDmTAlZxk2Cwo+P5WzM2+ya8ZmA6t355 Z/2BXwAvObdBKtW1r9C8fkwv185AKODBoZlL6ZPmECAv1mv9QLzF6k5xVJYahK1YtqkB 0cLLKg9++7x3o2j2YVmaMPk4YVIZLCt76gwahoOqfjOXBm90Q9hvvfnBAbBBbnPk/jNX aY2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=C7Bjg+DrFc1HpDHvBYaHe6bAEGEiH3spqUuDzyliHuo=; b=Vib6Q9lMrGHQ4A/Vmt/N5rFF9bcrfQbsMEdlibeDae4i84p5BAJOdyKppQ4LM3sxt1 7JfeFE+Q6B4YVG2uZ32B7bhDmRpIOvJUw8PHfW4mVZNy6Ym+rq6ABdCwig93+tp9LpHV VnbwIA7rsW0WoXtYprLfljKZZ/B3VjH64P46iPVvyCK+iiVG6XIu1B1wKdUxbIDkfWGe Ld9qjJ5WIBVgusXLu6ilFGn8gA7+5q02BsCTPXzgneyxegfP5cIfIYifgzHwayNuZLca 594ohbh/QzjeG15I90fBOj6QHfqCdnJqOo7v/U/hA1nHFltQgVW1v7NQeq+JhZ0y6rOQ cFeA== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j5si7427270otk.75.2020.03.03.00.11.33; Tue, 03 Mar 2020 00:11:45 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727824AbgCCIKw (ORCPT + 99 others); Tue, 3 Mar 2020 03:10:52 -0500 Received: from inva020.nxp.com ([92.121.34.13]:56736 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727654AbgCCIKw (ORCPT ); Tue, 3 Mar 2020 03:10:52 -0500 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 7FECE1A153A; Tue, 3 Mar 2020 09:10:50 +0100 (CET) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 18D701A14C0; Tue, 3 Mar 2020 09:10:47 +0100 (CET) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 0B7E44029E; Tue, 3 Mar 2020 16:10:42 +0800 (SGT) From: Anson Huang To: rui.zhang@intel.com, daniel.lezcano@linaro.org, amit.kucheria@verdurent.com, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Linux-imx@nxp.com Subject: [PATCH 1/2] thermal: Fix build warning of !defined(CONFIG_THERMAL_OF) Date: Tue, 3 Mar 2020 16:04:43 +0800 Message-Id: <1583222684-10229-1-git-send-email-Anson.Huang@nxp.com> X-Mailer: git-send-email 2.7.4 X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add "inline" to thermal_zone_of_get_sensor_id() function to avoid below build warning of !defined(CONFIG_THERMAL_OF). In file included from drivers/hwmon/hwmon.c:22: include/linux/thermal.h:382:12: warning: 'thermal_zone_of_get_sensor_id' defined but not used [-Wunused-function] 382 | static int thermal_zone_of_get_sensor_id(struct device_node *tz_np, Signed-off-by: Anson Huang --- include/linux/thermal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/thermal.h b/include/linux/thermal.h index 53e6f67..c91b1e3 100644 --- a/include/linux/thermal.h +++ b/include/linux/thermal.h @@ -379,7 +379,7 @@ void devm_thermal_zone_of_sensor_unregister(struct device *dev, struct thermal_zone_device *tz); #else -static int thermal_zone_of_get_sensor_id(struct device_node *tz_np, +static inline int thermal_zone_of_get_sensor_id(struct device_node *tz_np, struct device_node *sensor_np, u32 *id) { -- 2.7.4