From patchwork Wed Apr 12 18:22:19 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 9678175 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 8AF1B60384 for ; Wed, 12 Apr 2017 18:22:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 815A52859E for ; Wed, 12 Apr 2017 18:22:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 75DF22866E; Wed, 12 Apr 2017 18:22:28 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id F37532859E for ; Wed, 12 Apr 2017 18:22:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Date:Message-ID:Subject: From:To:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=V06zl4X6DiFQzmHMM+rqeOGP7M73BJAXGJLUqs48heI=; b=Rwo3b5yDqkbk0i B9HQnzq5ewKX8LP0c8G68PYbrWk2YLwCtz70zO8rSFTohdBDoBj6wRanZdgQSrPPhNU+Efg4Z4mBl pPgdwAKrXPR/4N3iOc78jdXAV9eUSITNQJBYxAQJFjzcgu8DQn/K8xfswsynIZtq4u0OtaAVP5GKP ZVOewrurLueZ4wR30t07vtvh2kaqPXfGmRCO2W0oLlGcwCskuKAYH6X7woBIWyNcQZsMNUR5AJPul QIWjzEeTApVwrE0XQQlc6oO8rCknBkCn2lUIeVl8QOZaidnnXMZLD825WkjvLBoCZS3VocaZvIhfn o6euG0ZCu+Tl/1pT3REw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cyMuO-0007eL-6l; Wed, 12 Apr 2017 18:22:24 +0000 Received: from merlin.infradead.org ([2001:4978:20e::2]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cyMuM-0007eE-Gt for linux-arm-kernel@bombadil.infradead.org; Wed, 12 Apr 2017 18:22:22 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Content-Transfer-Encoding:Content-Type: MIME-Version:Date:Message-ID:Cc:Subject:From:To:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=oQ2HrrJufEmUN6feGpaXK2a12h1KJpZDdUNQGpQrl40=; b=cidZSoToa/DQkfgSDltY4/Q1GJ BHdlc4ZAw5byG0ToXnrfVge0WiBq5jctLKBI6Y/lJLeSfIOcpSHi4lFhe6q/Z1ajh5D6le4yzoWP8 C/mvxzQTuPAt+2Ekp6pbV1D0wRlHDTRBbfYgiiX0cbEBO0y0zcRVOi8rc/u4XZQUiD8jPRmi3y9K8 QPpQQIwB4YsmkKsA1wdEjl3SqWNWXtF7wUhPj/V+n3N2cFxFxaD1GgYUv07P1IsoRjwVeqDuml9kz qYrZzDN1GGXcwaeJn0t8wJ33DBFEUhtSnyMFy4yb10Dk4WEpmmIB1F955JHkeNu7hx6F1TNS0v9uJ /POAh6zg==; Received: from static-50-53-32-16.bvtn.or.frontiernet.net ([50.53.32.16] helo=[192.168.1.19]) by merlin.infradead.org with esmtpsa (Exim 4.87 #1 (Red Hat Linux)) id 1cyMuK-0006rN-D0; Wed, 12 Apr 2017 18:22:20 +0000 To: LKML From: Randy Dunlap Subject: [PATCH -next] imx7: fix Kconfig warning and build errors Message-ID: <47fc2167-bf0a-866a-e075-8247a10aa6e0@infradead.org> Date: Wed, 12 Apr 2017 11:22:19 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Fabio Estevam , Andrew Morton , Shawn Guo , linux-arm-kernel@lists.infradead.org, Sascha Hauer Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Randy Dunlap Fix Kconfig warning in drivers/soc/imx/Kconfig and subsequent build errors elsewhere when CONFIG_PM is not enabled. warning: (IMX7_PM_DOMAINS) selects PM_GENERIC_DOMAINS which has unmet direct dependencies (PM) This warning causes multiple build errors in drivers/base/power/domain.c: ../drivers/base/power/domain.c: In function 'genpd_queue_power_off_work': ../drivers/base/power/domain.c:279:13: error: 'pm_wq' undeclared (first use in this function) queue_work(pm_wq, &genpd->power_off_work); ../drivers/base/power/domain.c: In function 'genpd_dev_pm_qos_notifier': ../drivers/base/power/domain.c:462:25: error: 'struct dev_pm_info' has no member named 'ignore_children' if (!dev || dev->power.ignore_children) ../drivers/base/power/domain.c: In function 'rtpm_status_str': ../drivers/base/power/domain.c:2207:16: error: 'struct dev_pm_info' has no member named 'runtime_error' if (dev->power.runtime_error) ../drivers/base/power/domain.c:2209:21: error: 'struct dev_pm_info' has no member named 'disable_depth' else if (dev->power.disable_depth) ../drivers/base/power/domain.c:2211:21: error: 'struct dev_pm_info' has no member named 'runtime_status' else if (dev->power.runtime_status < ARRAY_SIZE(status_lookup)) p = status_lookup[dev->power.runtime_status]; Signed-off-by: Randy Dunlap Cc: Shawn Guo Cc: Sascha Hauer Cc: Fabio Estevam Cc: linux-arm-kernel@lists.infradead.org Tested-by: Fabio Estevam --- drivers/soc/imx/Kconfig | 1 + 1 file changed, 1 insertion(+) --- linux-next-20170412.orig/drivers/soc/imx/Kconfig +++ linux-next-20170412/drivers/soc/imx/Kconfig @@ -2,6 +2,7 @@ menu "i.MX SoC drivers" config IMX7_PM_DOMAINS bool "i.MX7 PM domains" + depends on PM select PM_GENERIC_DOMAINS depends on SOC_IMX7D || (COMPILE_TEST && OF) default y if SOC_IMX7D