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: 7578281 Return-Path: X-Original-To: patchwork-linux-pm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id BC7BA9F2F7 for ; Sun, 8 Nov 2015 13:41:49 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id DCA41205B8 for ; Sun, 8 Nov 2015 13:41:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 081EE20426 for ; Sun, 8 Nov 2015 13:41:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751488AbbKHNlA (ORCPT ); Sun, 8 Nov 2015 08:41:00 -0500 Received: from mail-pa0-f51.google.com ([209.85.220.51]:34519 "EHLO mail-pa0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751455AbbKHNk7 (ORCPT ); Sun, 8 Nov 2015 08:40:59 -0500 Received: by padhx2 with SMTP id hx2so162317008pad.1; 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 Cc: rui.zhang@intel.com, heiko@sntech.de, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-pm@vger.kernel.org, sfr@canb.auug.org.au, lkp@intel.com, Caesar Wang 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 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham 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,