Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753182AbbKLDnZ (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 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-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1716 Lines: 50 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, -- 2.5.0 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/