From patchwork Thu Feb 13 03:19:08 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Shuah Khan X-Patchwork-Id: 3642321 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 0C49A9F390 for ; Thu, 13 Feb 2014 03:22:18 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 35D7A20149 for ; Thu, 13 Feb 2014 03:22:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 62A59200F4 for ; Thu, 13 Feb 2014 03:22:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752023AbaBMDT4 (ORCPT ); Wed, 12 Feb 2014 22:19:56 -0500 Received: from qmta14.emeryville.ca.mail.comcast.net ([76.96.27.212]:40411 "EHLO qmta14.emeryville.ca.mail.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751902AbaBMDTT (ORCPT ); Wed, 12 Feb 2014 22:19:19 -0500 Received: from omta14.emeryville.ca.mail.comcast.net ([76.96.30.60]) by qmta14.emeryville.ca.mail.comcast.net with comcast id RfFU1n0021HpZEsAEfKK9A; Thu, 13 Feb 2014 03:19:19 +0000 Received: from mail.gonehiking.org ([50.134.149.16]) by omta14.emeryville.ca.mail.comcast.net with comcast id RfKH1n00C0MU7Qa8afKHx2; Thu, 13 Feb 2014 03:19:18 +0000 Received: from lorien.sisa.samsung.com (lorien-wl.internal [192.168.1.40]) by mail.gonehiking.org (Postfix) with ESMTP id 551D340229; Wed, 12 Feb 2014 20:19:17 -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 4/6] drivers/acpi: fix fan driver compile error when CONFIG_PM_SLEEP is undefined Date: Wed, 12 Feb 2014 20:19:08 -0700 Message-Id: <1e50ddee5b89d7566b9af4f5cb8b54e2614f04c0.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=9GN/41slBBA5g8XYwGWKotemjAzRNQ2NKX213U/agGc=; h=Received:Received:Received:From:To:Subject:Date:Message-Id: MIME-Version:Content-Type; b=UZGdtWIyv9DVHkMugCfa0kC9/4JZXRK0c6arU6aorfr1440frdhVUusKFcKhlKpyk ll/BYlhIak23y95Jy6bub+DbkUKGZ6tGTyCJK2/wp/4jo/OcBCge+noYGF96aq8Rg6 18LtgXmaSLC+mphPoXGcWYrpNlKnZO5F+4FB+pNvigjwFAcm/SRvRmyCa2u+uic5ud 3bRJlISvEAoAH5JwBpg9lo5YitQs3jA5LZYmU7aemfluMUgTicUb3q3nVu5QSY+uxZ yzDTle8+x1YibZPsndvzSNgzvitNZwOHCWFUTUXB6LvuXGwidUaT88F69aIYC2RZMJ RqtWh8vSpijoA== 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=ham 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 fan driver defines acpi_fan_suspend() and acpi_fan_resume() when CONFIG_PM_SLEEP is defined. This results in the following compile error when CONFIG_PM_SLEEP is undefined. drivers/acpi/fan.c:60:8: error: ‘acpi_fan_suspend’ undeclared here (not in a function) drivers/acpi/fan.c:60:8: error: ‘acpi_fan_resume’ undeclared here (not in a function) Signed-off-by: Shuah Khan --- drivers/acpi/fan.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/acpi/fan.c b/drivers/acpi/fan.c index 1fb6290..09e423f 100644 --- a/drivers/acpi/fan.c +++ b/drivers/acpi/fan.c @@ -55,6 +55,9 @@ MODULE_DEVICE_TABLE(acpi, fan_device_ids); #ifdef CONFIG_PM_SLEEP static int acpi_fan_suspend(struct device *dev); static int acpi_fan_resume(struct device *dev); +#else +#define acpi_fan_suspend NULL +#define acpi_fan_resume NULL #endif static SIMPLE_DEV_PM_OPS(acpi_fan_pm, acpi_fan_suspend, acpi_fan_resume);