From patchwork Thu Nov 6 13:28:01 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 40284 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f197.google.com (mail-lb0-f197.google.com [209.85.217.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 682F224237 for ; Thu, 6 Nov 2014 13:28:08 +0000 (UTC) Received: by mail-lb0-f197.google.com with SMTP id w7sf663889lbi.0 for ; Thu, 06 Nov 2014 05:28:07 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=0NPtjQqcJSY6x6P3D/cR4jFwWXWReHyuWho/Q3AYHYg=; b=eC2Q5dw7go4uy/2ggjL6ia7SBJULOWKYO9vesk/uxAGpQ+e7smWEyW0O419RXwg8wm MTLMsuF8BrsLd8VxnM+IxKrWRGchl2uXKd57oklwhAm2qzhN4/alnw4VhdJE9KHmt6sA u+0BUSxupqt/Jods24oR8onYtsXFSHhG/UaSEBdR1cLeJRBn4aRVXXeokITVOf2UUtOS +4qxBQa0WKIdTMyEwYfAqDn9O6aivc2Z6QDOKVSVJG0S3BJe080Ua2EmszSLA3IJZGtO 8OPRNyVLddDrjtKAQWKlZXZP27CbdnRA3JO8lqxSgdGRt/h6tX+kx+2/ZnNP1bQTHqPT kZMg== X-Gm-Message-State: ALoCoQlUgpGCKuQzishW6BHKNpXxm/8b/HxpCVSsYywZ63TmVHsBNIGfKNJJgK7juQ9x0jKY8QAq X-Received: by 10.194.133.40 with SMTP id oz8mr739210wjb.2.1415280486869; Thu, 06 Nov 2014 05:28:06 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.21.6 with SMTP id r6ls86885lae.5.gmail; Thu, 06 Nov 2014 05:28:06 -0800 (PST) X-Received: by 10.152.5.38 with SMTP id p6mr5076234lap.44.1415280486616; Thu, 06 Nov 2014 05:28:06 -0800 (PST) Received: from mail-la0-f41.google.com (mail-la0-f41.google.com. [209.85.215.41]) by mx.google.com with ESMTPS id la5si11400959lac.99.2014.11.06.05.28.06 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 06 Nov 2014 05:28:06 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.41 as permitted sender) client-ip=209.85.215.41; Received: by mail-la0-f41.google.com with SMTP id s18so2584075lam.14 for ; Thu, 06 Nov 2014 05:28:06 -0800 (PST) X-Received: by 10.112.189.10 with SMTP id ge10mr5000835lbc.23.1415280486484; Thu, 06 Nov 2014 05:28:06 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.112.184.201 with SMTP id ew9csp43360lbc; Thu, 6 Nov 2014 05:28:06 -0800 (PST) X-Received: by 10.194.79.201 with SMTP id l9mr5562135wjx.59.1415280485788; Thu, 06 Nov 2014 05:28:05 -0800 (PST) Received: from mail-wg0-f46.google.com (mail-wg0-f46.google.com. [74.125.82.46]) by mx.google.com with ESMTPS id qd3si3504584wjc.15.2014.11.06.05.28.05 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 06 Nov 2014 05:28:05 -0800 (PST) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 74.125.82.46 as permitted sender) client-ip=74.125.82.46; Received: by mail-wg0-f46.google.com with SMTP id x13so1181520wgg.5 for ; Thu, 06 Nov 2014 05:28:05 -0800 (PST) X-Received: by 10.181.11.169 with SMTP id ej9mr40010150wid.75.1415280485506; Thu, 06 Nov 2014 05:28:05 -0800 (PST) Received: from localhost.localdomain ([85.235.11.236]) by mx.google.com with ESMTPSA id fq1sm19530432wib.12.2014.11.06.05.28.04 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 06 Nov 2014 05:28:04 -0800 (PST) From: Ulf Hansson To: Herbert Xu , "David S. Miller" Cc: linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, Linus Walleij , Ulf Hansson Subject: [PATCH] crypto: ux500/hash: Silence compiler warning for !CONFIG_PM Date: Thu, 6 Nov 2014 14:28:01 +0100 Message-Id: <1415280481-14096-1-git-send-email-ulf.hansson@linaro.org> X-Mailer: git-send-email 1.9.1 X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: ulf.hansson@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.41 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , The system PM functions were unused when CONFIG_PM is unset. Let's move them inside CONFIG_PM_SLEEP to silence the compiler warning. Signed-off-by: Ulf Hansson --- drivers/crypto/ux500/hash/hash_core.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/crypto/ux500/hash/hash_core.c b/drivers/crypto/ux500/hash/hash_core.c index 1c73f4f..5af53b5 100644 --- a/drivers/crypto/ux500/hash/hash_core.c +++ b/drivers/crypto/ux500/hash/hash_core.c @@ -1881,6 +1881,7 @@ static void ux500_hash_shutdown(struct platform_device *pdev) __func__); } +#ifdef CONFIG_PM_SLEEP /** * ux500_hash_suspend - Function that suspends the hash device. * @dev: Device to suspend. @@ -1949,6 +1950,7 @@ static int ux500_hash_resume(struct device *dev) return ret; } +#endif static SIMPLE_DEV_PM_OPS(ux500_hash_pm, ux500_hash_suspend, ux500_hash_resume);