From patchwork Tue Feb 25 14:57:44 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Felipe Balbi X-Patchwork-Id: 25300 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vc0-f199.google.com (mail-vc0-f199.google.com [209.85.220.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 2394920143 for ; Tue, 25 Feb 2014 14:59:47 +0000 (UTC) Received: by mail-vc0-f199.google.com with SMTP id hu8sf14701855vcb.10 for ; Tue, 25 Feb 2014 06:59:46 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:cc:subject:date:message-id :mime-version:sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe:content-type :content-transfer-encoding; bh=Y8+ABP5mgBpmN5Am/u9ruDe2VGc+IAkhBvBYkJG7tUk=; b=V/+819MHO27RjrSrI58lk5PfUGH3zcE7n4D2r3MZJoEcnBolG1MfgPW20C7Qk+1Imf SL9+TAV4tugsWHN1klR6vbVcHe3Qn3ubDen6APccFE8Y6NXQlbRxC9rSNyKKsvkYJ8rA dVGB0hJAOU245lDIHvX9uxDVimaGdRz09S7HVDz9KTT0mH3bvhIDSXqzsQKSuFt1QteE oPEhbtioqGouuk5fbpl+/865YQVBzEn+KnsG3Mx95q+Ax3vY037IjM7c+oMaRe3JYN7X PivbCcozB2lN/2W1lZFcSafGCRYTRm/g5zHFZFdH1hKoRH+Nqhca78bMcOLqlA1WyMLt p3qQ== X-Gm-Message-State: ALoCoQlUf0SJt+lCgUqeOHNuTOcMbewXyHhmGImbpG1sg7uuQ4R0k1fgevlaPSI3JNBT0guhbZgq X-Received: by 10.58.58.41 with SMTP id n9mr790221veq.23.1393340386926; Tue, 25 Feb 2014 06:59:46 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.43.246 with SMTP id e109ls1186911qga.89.gmail; Tue, 25 Feb 2014 06:59:46 -0800 (PST) X-Received: by 10.220.106.84 with SMTP id w20mr1502115vco.18.1393340386787; Tue, 25 Feb 2014 06:59:46 -0800 (PST) Received: from mail-vc0-f170.google.com (mail-vc0-f170.google.com [209.85.220.170]) by mx.google.com with ESMTPS id sx1si6830747vdc.101.2014.02.25.06.59.46 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 25 Feb 2014 06:59:46 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.170 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.170; Received: by mail-vc0-f170.google.com with SMTP id hu8so7396683vcb.15 for ; Tue, 25 Feb 2014 06:59:46 -0800 (PST) X-Received: by 10.220.88.204 with SMTP id b12mr1452129vcm.3.1393340386699; Tue, 25 Feb 2014 06:59:46 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.174.196 with SMTP id u4csp144991vcz; Tue, 25 Feb 2014 06:59:46 -0800 (PST) X-Received: by 10.68.200.74 with SMTP id jq10mr45480pbc.169.1393340385486; Tue, 25 Feb 2014 06:59:45 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id wq4si3893448pbc.137.2014.02.25.06.59.44; Tue, 25 Feb 2014 06:59:44 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753234AbaBYO71 (ORCPT + 26 others); Tue, 25 Feb 2014 09:59:27 -0500 Received: from arroyo.ext.ti.com ([192.94.94.40]:59897 "EHLO arroyo.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753179AbaBYO7Z (ORCPT ); Tue, 25 Feb 2014 09:59:25 -0500 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by arroyo.ext.ti.com (8.13.7/8.13.7) with ESMTP id s1PExA35008972; Tue, 25 Feb 2014 08:59:10 -0600 Received: from DFLE73.ent.ti.com (dfle73.ent.ti.com [128.247.5.110]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id s1PExACk009479; Tue, 25 Feb 2014 08:59:10 -0600 Received: from dflp32.itg.ti.com (10.64.6.15) by DFLE73.ent.ti.com (128.247.5.110) with Microsoft SMTP Server id 14.3.174.1; Tue, 25 Feb 2014 08:59:09 -0600 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id s1PEx9n9009190; Tue, 25 Feb 2014 08:59:09 -0600 From: Felipe Balbi To: CC: , , , Linux Kernel Mailing List , Felipe Balbi Subject: [PATCH] mmc: host: dw: fix possible build error Date: Tue, 25 Feb 2014 08:57:44 -0600 Message-ID: <1393340264-22687-1-git-send-email-balbi@ti.com> X-Mailer: git-send-email 1.9.0 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: balbi@ti.com X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.170 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Fix the following build errors: drivers/mmc/host/dw_mmc-k3.c: In function ‘dw_mci_k3_suspend’: drivers/mmc/host/dw_mmc-k3.c:58:2: error: implicit declaration of function ‘dw_mci_suspend’ [-Werror=implicit-function-declaration] ret = dw_mci_suspend(host); ^ drivers/mmc/host/dw_mmc-k3.c: In function ‘dw_mci_k3_resume’: drivers/mmc/host/dw_mmc-k3.c:76:2: error: implicit declaration of function ‘dw_mci_resume’ [-Werror=implicit-function-declaration] return dw_mci_resume(host); ^ drivers/mmc/host/dw_mmc-k3.c: At top level: drivers/mmc/host/dw_mmc-k3.c:53:12: warning: ‘dw_mci_k3_suspend’ defined but not used [-Wunused-function] static int dw_mci_k3_suspend(struct device *dev) ^ drivers/mmc/host/dw_mmc-k3.c:65:12: warning: ‘dw_mci_k3_resume’ defined but not used [-Wunused-function] static int dw_mci_k3_resume(struct device *dev) ^ Signed-off-by: Felipe Balbi --- drivers/mmc/host/dw_mmc-k3.c | 2 ++ drivers/mmc/host/dw_mmc.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/host/dw_mmc-k3.c b/drivers/mmc/host/dw_mmc-k3.c index f567c21..650f9cc 100644 --- a/drivers/mmc/host/dw_mmc-k3.c +++ b/drivers/mmc/host/dw_mmc-k3.c @@ -50,6 +50,7 @@ static int dw_mci_k3_probe(struct platform_device *pdev) return dw_mci_pltfm_register(pdev, drv_data); } +#ifdef CONFIG_PM_SLEEP static int dw_mci_k3_suspend(struct device *dev) { struct dw_mci *host = dev_get_drvdata(dev); @@ -75,6 +76,7 @@ static int dw_mci_k3_resume(struct device *dev) return dw_mci_resume(host); } +#endif /* CONFIG_PM_SLEEP */ static SIMPLE_DEV_PM_OPS(dw_mci_k3_pmops, dw_mci_k3_suspend, dw_mci_k3_resume); diff --git a/drivers/mmc/host/dw_mmc.h b/drivers/mmc/host/dw_mmc.h index 6bf24ab..1f7a745 100644 --- a/drivers/mmc/host/dw_mmc.h +++ b/drivers/mmc/host/dw_mmc.h @@ -185,7 +185,7 @@ extern int dw_mci_probe(struct dw_mci *host); extern void dw_mci_remove(struct dw_mci *host); -#ifdef CONFIG_PM +#ifdef CONFIG_PM_SLEEP extern int dw_mci_suspend(struct dw_mci *host); extern int dw_mci_resume(struct dw_mci *host); #endif