From patchwork Tue Dec 4 11:33:07 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 13356 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 4FC2F23E0D for ; Tue, 4 Dec 2012 11:39:56 +0000 (UTC) Received: from mail-ie0-f180.google.com (mail-ie0-f180.google.com [209.85.223.180]) by fiordland.canonical.com (Postfix) with ESMTP id ED4B9A18443 for ; Tue, 4 Dec 2012 11:39:55 +0000 (UTC) Received: by mail-ie0-f180.google.com with SMTP id c10so5707708ieb.11 for ; Tue, 04 Dec 2012 03:39:55 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:mime-version:content-type :content-transfer-encoding:x-gm-message-state; bh=b3FFUVRVwIffC7E7zRwGKYC23xn0WyaKRSYsCyQNOKI=; b=ivWe6jxa6yZLW3APg7O5rzjL49qmSkN/TBTDKZknZ1tjEzgtO/MI+eJD7NC2xyBoCY QUH5aP2Jru0gzjhFLKYca51rOiab4oJApv77YzlHDY14Nko6TrscRjD6a70kh0xGuGuN yAHUkDIqCCqUWZh4Bw/3tSIG/r0dS2ERIPMz2PU1ETEBi+j0uIMv9Gn0GFdoBnQYnsfk BcFA6HQr365SpOiwRDCMEym9OtiMc0E5zaBrmKglB14745ntceBnVRynZhwmw5QCLKpQ N0flsmSJQmjYTpUSxuIh4DKwb8sRgI17vRgmOjXB9TK3nVBI3c5JTsxvl0kNjaPDc5fm qzaQ== Received: by 10.43.125.133 with SMTP id gs5mr10820597icc.54.1354621195344; Tue, 04 Dec 2012 03:39:55 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.50.67.148 with SMTP id n20csp259279igt; Tue, 4 Dec 2012 03:39:54 -0800 (PST) Received: by 10.68.197.197 with SMTP id iw5mr37649859pbc.22.1354621194418; Tue, 04 Dec 2012 03:39:54 -0800 (PST) Received: from mail-pb0-f49.google.com (mail-pb0-f49.google.com [209.85.160.49]) by mx.google.com with ESMTPS id np6si2006154pbc.119.2012.12.04.03.39.53 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 04 Dec 2012 03:39:54 -0800 (PST) Received-SPF: neutral (google.com: 209.85.160.49 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.160.49; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.160.49 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) smtp.mail=sachin.kamat@linaro.org Received: by mail-pb0-f49.google.com with SMTP id un15so2674828pbc.8 for ; Tue, 04 Dec 2012 03:39:53 -0800 (PST) Received: by 10.68.213.233 with SMTP id nv9mr37571008pbc.155.1354621193828; Tue, 04 Dec 2012 03:39:53 -0800 (PST) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id sk1sm895886pbc.0.2012.12.04.03.39.50 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 04 Dec 2012 03:39:53 -0800 (PST) From: Sachin Kamat To: linux-mmc@vger.kernel.org Cc: cjb@laptop.org, ben-linux@fluff.org, sachin.kamat@linaro.org, patches@linaro.org Subject: [PATCH 1/1] mmc: sdhci-s3c: Fix compilation warning Date: Tue, 4 Dec 2012 17:03:07 +0530 Message-Id: <1354620787-20575-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.4.1 MIME-Version: 1.0 X-Gm-Message-State: ALoCoQlhGB7u36uufkEJ8Rxg3Y4w+iDKxAk8aQzL+R2f/Oq8MuDCxUQhzmbtKiVsP7nBHZIjQ9DQ 'sc' is used only when CONFIG_PM_RUNTIME is defined. Hence define it conditionally. Silences the following warning: drivers/mmc/host/sdhci-s3c.c: In function ‘sdhci_s3c_notify_change’: drivers/mmc/host/sdhci-s3c.c:378:20: warning: unused variable ‘sc’ [-Wunused-variable] Signed-off-by: Sachin Kamat Acked-by: Jaehoon Chung --- drivers/mmc/host/sdhci-s3c.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/drivers/mmc/host/sdhci-s3c.c b/drivers/mmc/host/sdhci-s3c.c index 7ea3aea..82a8de1 100644 --- a/drivers/mmc/host/sdhci-s3c.c +++ b/drivers/mmc/host/sdhci-s3c.c @@ -375,7 +375,9 @@ static struct sdhci_ops sdhci_s3c_ops = { static void sdhci_s3c_notify_change(struct platform_device *dev, int state) { struct sdhci_host *host = platform_get_drvdata(dev); +#ifdef CONFIG_PM_RUNTIME struct sdhci_s3c *sc = sdhci_priv(host); +#endif unsigned long flags; if (host) {