From patchwork Thu Feb 13 03:19:09 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Shuah Khan X-Patchwork-Id: 3642171 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.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 4BC7D9F390 for ; Thu, 13 Feb 2014 03:20:01 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7C99A201B4 for ; Thu, 13 Feb 2014 03:20:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 10F512018E for ; Thu, 13 Feb 2014 03:19:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751320AbaBMDT4 (ORCPT ); Wed, 12 Feb 2014 22:19:56 -0500 Received: from qmta01.emeryville.ca.mail.comcast.net ([76.96.30.16]:41472 "EHLO qmta01.emeryville.ca.mail.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752023AbaBMDTT (ORCPT ); Wed, 12 Feb 2014 22:19:19 -0500 Received: from omta23.emeryville.ca.mail.comcast.net ([76.96.30.90]) by qmta01.emeryville.ca.mail.comcast.net with comcast id RfAl1n0041wfjNsA1fKK91; Thu, 13 Feb 2014 03:19:19 +0000 Received: from mail.gonehiking.org ([50.134.149.16]) by omta23.emeryville.ca.mail.comcast.net with comcast id RfKJ1n00P0MU7Qa8jfKJNn; Thu, 13 Feb 2014 03:19:19 +0000 Received: from lorien.sisa.samsung.com (lorien-wl.internal [192.168.1.40]) by mail.gonehiking.org (Postfix) with ESMTP id 1704D41103; Wed, 12 Feb 2014 20:19:18 -0700 (MST) From: Shuah Khan To: lenb@kernel.org, rjw@rjwysocki.net, rui.zhang@intel.com Cc: Shuah Khan , linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, shuahkhan@gmail.com Subject: [PATCH 5/6] drivers/acpi: fix sbs driver compile error when CONFIG_PM_SLEEP is undefined Date: Wed, 12 Feb 2014 20:19:09 -0700 Message-Id: <9b235e287cc48364565278baeee69accc96264e7.1392250669.git.shuah.kh@samsung.com> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: References: In-Reply-To: References: MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20121106; t=1392261559; bh=FEy4qtLPADdvvBpMJ5CsmzTPhZ4fNp/EGjJFt0kt/6U=; h=Received:Received:Received:From:To:Subject:Date:Message-Id: MIME-Version:Content-Type; b=mobqnWZ3b1mNeDjAILh1lvcgw82SSU+sFmNg8+Ho+cKXiyB06Z/vKmOrwFdBEKbFd XFXbYzAvPDZqONyBCoqzQb9nYCi88021nXN3ki8ng1AEPNBkxnWN1nj96Uf2uYTZus ED0vnLFrluCa4aDZBwNUeTx78z1eaq7Lh8fIMJ8B9nSiNIIb410XVqAca6wTNBu3Nh WDgxm3hq5hAIirCvv0+3E2VlVchh5wevyIxJ9EPQAhuRd1lQ7+QDnfNSJwdWQ/4tsx VCylPuVTw2e3UvNxLvpl57EWuMCdEp1qwnBFwdItYN9tiqEbqS/hiR+/8fO11Ka82i cxz/nrj7KIvVw== 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.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, 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 sbs driver defines acpi_sbs_resume() when CONFIG_PM_SLEEP is defined. This results in the following compile error when CONFIG_PM_SLEEP is undefined. CC [M] drivers/acpi/sbs.o drivers/acpi/sbs.c:674:8: error: ‘acpi_sbs_resume’ undeclared here (not in a function) Signed-off-by: Shuah Khan --- drivers/acpi/sbs.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/acpi/sbs.c b/drivers/acpi/sbs.c index d465ae6..48c92c6 100644 --- a/drivers/acpi/sbs.c +++ b/drivers/acpi/sbs.c @@ -668,6 +668,8 @@ static int acpi_sbs_resume(struct device *dev) acpi_sbs_callback(sbs); return 0; } +#else +#define acpi_sbs_resume NULL #endif static SIMPLE_DEV_PM_OPS(acpi_sbs_pm, NULL, acpi_sbs_resume);