From patchwork Mon Jul 10 21:14:48 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Franklin Cooper X-Patchwork-Id: 9833803 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 F37D4602A0 for ; Mon, 10 Jul 2017 21:15:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DFCD8223A1 for ; Mon, 10 Jul 2017 21:15:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D447728458; Mon, 10 Jul 2017 21:15:30 +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 2A9F6223A1 for ; Mon, 10 Jul 2017 21:15:29 +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:Message-ID:Date:Subject:To :From: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=Yi4mADLR+5vUue3BP852ZU0Fst3qCTsrptPPE+uTL8k=; b=kEL7cOX3IY+dSj 7x79NVXMoJdOdYptM/GAUI2a3W9VSKqWa49D3hFbCSq/9iBrIMVJHuf6I++g7/FWogKqh54Ujpx9t vHQee4eEA/c14qe8IuVz98j9t4b9gsyzG1PCwvReHdonBern/Cu4X7hLO6o6azWhQl/AUPya8edsJ VtonKgfhWnGzEBvzQ1JcvCVeVf+dixu+XegBK2GwBE0k9bK7riXS9r6OSALlrfem6ff+ATziA5RID FzOetg4se1HArM+ZYv85YRbYgU5mujsXF8P9puaj2TOeIW7HT8KbGzZVZ2UgtYHwv7fOi1zjkAlbj N/0khqsxCBDnmiIvLwBQ==; 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 1dUg1f-0005zS-Hr; Mon, 10 Jul 2017 21:15:27 +0000 Received: from lelnx194.ext.ti.com ([198.47.27.80]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dUg1b-0004Zs-5Z for linux-arm-kernel@lists.infradead.org; Mon, 10 Jul 2017 21:15:25 +0000 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by lelnx194.ext.ti.com (8.15.1/8.15.1) with ESMTP id v6ALEvur005267; Mon, 10 Jul 2017 16:14:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1499721297; bh=v3oo/1J0ZsI9lB2PZtH6KneU3XUw2Jlg964TMgpxS2s=; h=From:To:CC:Subject:Date; b=YdHlhphsF9kfnTD2fbl0NbRbsiro5BJicSit+0K5uyrykDBqwadZPfZ50e3vJtelt zanF0GGEGq9pUphjM+QSpAxkMPE9/SzOnFis13YwHDvRfZol6zT/QqZvY9VpvLyeLn JCvwXR2nJ7tEKxc7PXVIJt/FKJjKE0D0TO85sJUQ= Received: from DLEE71.ent.ti.com (dlee71.ent.ti.com [157.170.170.114]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id v6ALEvak005836; Mon, 10 Jul 2017 16:14:57 -0500 Received: from dlep32.itg.ti.com (157.170.170.100) by DLEE71.ent.ti.com (157.170.170.114) with Microsoft SMTP Server id 14.3.294.0; Mon, 10 Jul 2017 16:14:57 -0500 Received: from dbdmail01.india.ti.com (dbdmail01.india.ti.com [172.24.162.206]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id v6ALEusO010291; Mon, 10 Jul 2017 16:14:56 -0500 Received: from udb0273011.dhcp.ti.com (udb0273011.dhcp.ti.com [128.247.59.33]) by dbdmail01.india.ti.com (8.14.3/8.14.3/SuSE Linux 0.8) with ESMTP id v6ALEpNq025119; Tue, 11 Jul 2017 02:44:52 +0530 From: Franklin S Cooper Jr To: , , , , , , Subject: [PATCH] PM / Domains: Fix compilation error for devices that don't enable PM_SLEEP Date: Mon, 10 Jul 2017 16:14:48 -0500 Message-ID: <20170710211448.11046-1-fcooper@ti.com> X-Mailer: git-send-email 2.10.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170710_141523_382778_D8DCC647 X-CRM114-Status: UNSURE ( 6.82 ) X-CRM114-Notice: Please train this message. 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: Franklin S Cooper Jr 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 Set pm_genpd_poweroff_noirq to NULL if CONFIG_PM_SLEEP isn't enabled. This is the same approach done for other PM_SLEEP related functions. Without this patch building the kernel with the keystone_defconfig results in a compilation error. Fixes: 10da65423fdb ("PM / Domains: Call driver's noirq callbacks") Signed-off-by: Franklin S Cooper Jr --- drivers/base/power/domain.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/base/power/domain.c b/drivers/base/power/domain.c index 9649dce..c140a9d5 100644 --- a/drivers/base/power/domain.c +++ b/drivers/base/power/domain.c @@ -1182,6 +1182,7 @@ EXPORT_SYMBOL_GPL(pm_genpd_syscore_poweron); #define pm_genpd_thaw_noirq NULL #define pm_genpd_restore_noirq NULL #define pm_genpd_complete NULL +#define pm_genpd_poweroff_noirq NULL #endif /* CONFIG_PM_SLEEP */