From patchwork Thu Nov 12 03:43:11 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eduardo Valentin X-Patchwork-Id: 7599171 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 9F1CA9F750 for ; Thu, 12 Nov 2015 03:43:40 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D0F04207CF for ; Thu, 12 Nov 2015 03:43:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E80D1207DB for ; Thu, 12 Nov 2015 03:43:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753152AbbKLDnZ (ORCPT ); Wed, 11 Nov 2015 22:43:25 -0500 Received: from mail-pa0-f47.google.com ([209.85.220.47]:34197 "EHLO mail-pa0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753113AbbKLDnX (ORCPT ); Wed, 11 Nov 2015 22:43:23 -0500 Received: by padhx2 with SMTP id hx2so51094662pad.1; Wed, 11 Nov 2015 19:43:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=L2XLFrCLNBOfh7kRuNzSESQAwqmsi3f13lvMM7T1YEY=; b=K+OhX+U50r4rzHMeqDhbUPYeL8BVdwMXC3ezp8n4KoTo8+HtnGyD6oWza8+0iPjPH8 +Q0aneA+uSZUAwpNo7fYTS6VtoLAB9d+FRe3xfzCOZpaPhcYlOpxh0v0bj74thL8NlGC R2t4sqD5MJSLIRLFkFjnTiU2vTd5uvRpU01oSbvaderUBhX2FruB1MUgM/PiXZmwT1M9 cHXLDyPsmBIVQ/4XeSqT2UurxuEtopgiFuP7fDGSnkz6y2y/LrtweE+zS0dDSBdKO+Ql M76SAcsLcsw9/zevkWDwrYJjUZ69QPqAjMxMoB8JPq3lqfXGMyGhy8HreR/NQCTkNH0O SM4w== X-Received: by 10.66.192.42 with SMTP id hd10mr19465446pac.111.1447299802601; Wed, 11 Nov 2015 19:43:22 -0800 (PST) Received: from localhost ([2601:647:4200:e7fd:1015:9ec9:e48f:d8e1]) by smtp.gmail.com with ESMTPSA id ku1sm11957985pbc.47.2015.11.11.19.43.20 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Wed, 11 Nov 2015 19:43:21 -0800 (PST) From: Eduardo Valentin To: Linus Torvalds , Stephen Rothwell , Rui Zhang Cc: LKML , Linux PM , Caesar Wang , Eduardo Valentin Subject: [PATCH 1/1] thermal: rockchip: fix compile error Date: Wed, 11 Nov 2015 19:43:11 -0800 Message-Id: <1447299791-9419-2-git-send-email-edubezval@gmail.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1447299791-9419-1-git-send-email-edubezval@gmail.com> References: <1447299791-9419-1-git-send-email-edubezval@gmail.com> Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, 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 From: Caesar Wang 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 Signed-off-by: Eduardo Valentin --- 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 2b58870..9787e8a 100644 --- a/drivers/thermal/rockchip_thermal.c +++ b/drivers/thermal/rockchip_thermal.c @@ -22,6 +22,7 @@ #include #include #include +#include /** * If the temperature over a period of time High,