From patchwork Sun Nov 8 13:40:43 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caesar Wang X-Patchwork-Id: 7578271 Return-Path: X-Original-To: patchwork-linux-rockchip@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id E5798C05C6 for ; Sun, 8 Nov 2015 13:41:30 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id DBDAE2053B for ; Sun, 8 Nov 2015 13:41:29 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 86BF620426 for ; Sun, 8 Nov 2015 13:41:27 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZvQDj-00039b-JG; Sun, 08 Nov 2015 13:41:23 +0000 Received: from mail-pa0-f50.google.com ([209.85.220.50]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZvQDg-00038z-Qk for linux-rockchip@lists.infradead.org; Sun, 08 Nov 2015 13:41:22 +0000 Received: by padhx2 with SMTP id hx2so162317007pad.1 for ; Sun, 08 Nov 2015 05:40:59 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=from:to:cc:subject:date:message-id; bh=93eVZGuUA0eKMpB8yS01wB+qhLsigu393RM4awQrxHI=; b=iwelDAYUNaAs0BuM49uKmevVYLSYp52VQBglFS4ep/JoYL4/XvKd40XT0VAaoW4MYk +koojDRU1W/a1pnu4LnNcjelqV7L0hjmH9tKfkUWtbTvOeL6gvGXrq8GX+NCVrx832H4 kcf46DXqEOvo39wD9croBqogj2Mj0z3bRY+6OEsSxWbwPrdjEe/66z0KORFDnhi830Mj Q+KJTfsUIbr7K7tZhRxI+so1vGxybTzorqFmgwqSxRsAKQ8+rLGlI+RMv9qPShbkcnrv RRL70nBjAc+s5ldbfjGRghuSXkVZIbYElyzGyC8b8fd2i5Gjq+wInbfrjp/H+OokMZET EMPw== X-Received: by 10.66.136.11 with SMTP id pw11mr32230400pab.87.1446990059091; Sun, 08 Nov 2015 05:40:59 -0800 (PST) Received: from localhost.localdomain ([103.46.142.65]) by smtp.gmail.com with ESMTPSA id pn8sm10846849pbb.16.2015.11.08.05.40.52 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 08 Nov 2015 05:40:58 -0800 (PST) From: Caesar Wang To: edubezval@gmail.com Subject: [PATCH] thermal: rockchip: fix compile error Date: Sun, 8 Nov 2015 21:40:43 +0800 Message-Id: <1446990043-8096-1-git-send-email-wxt@rock-chips.com> X-Mailer: git-send-email 1.9.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151108_054120_911983_74072462 X-CRM114-Status: GOOD ( 10.01 ) X-Spam-Score: -2.4 (--) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: sfr@canb.auug.org.au, heiko@sntech.de, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, rui.zhang@intel.com, Caesar Wang , lkp@intel.com MIME-Version: 1.0 Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Missing a include file caused compile error. drivers/thermal/rockchip_thermal.c: In function 'rockchip_thermal_suspend': drivers/thermal/rockchip_thermal.c:720:2: error: implicit declaration of function 'pinctrl_pm_select_sleep_state' [-Werror=implicit-function-declaration] pinctrl_pm_select_sleep_state(dev); ^ drivers/thermal/rockchip_thermal.c: In function 'rockchip_thermal_resume': drivers/thermal/rockchip_thermal.c:759:2: error: implicit declaration of function 'pinctrl_pm_select_default_state' [-Werror=implicit-function-declaration] ^pinctrl_pm_select_default_state(dev); cc1: some warnings being treated as errors Fixes: 7e38a5b1daa1 ("thermal: rockchip: support the sleep pinctrl state to avoid glitches") Reported-by: Stephen Rothwell Reported-by: kbuild test robot Signed-off-by: Caesar Wang --- drivers/thermal/rockchip_thermal.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/thermal/rockchip_thermal.c b/drivers/thermal/rockchip_thermal.c index df28049..8928d67 100644 --- a/drivers/thermal/rockchip_thermal.c +++ b/drivers/thermal/rockchip_thermal.c @@ -25,6 +25,7 @@ #include #include #include +#include /** * If the temperature over a period of time High,