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: 5242011 X-Patchwork-Delegate: herbert@gondor.apana.org.au Return-Path: X-Original-To: patchwork-linux-crypto@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 C0D3C9F4D4 for ; Thu, 6 Nov 2014 13:28:13 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E058820107 for ; Thu, 6 Nov 2014 13:28:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 36A5520115 for ; Thu, 6 Nov 2014 13:28:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751037AbaKFN2I (ORCPT ); Thu, 6 Nov 2014 08:28:08 -0500 Received: from mail-wg0-f50.google.com ([74.125.82.50]:37370 "EHLO mail-wg0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751229AbaKFN2G (ORCPT ); Thu, 6 Nov 2014 08:28:06 -0500 Received: by mail-wg0-f50.google.com with SMTP id z12so1178000wgg.37 for ; Thu, 06 Nov 2014 05:28:05 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=0NPtjQqcJSY6x6P3D/cR4jFwWXWReHyuWho/Q3AYHYg=; b=RmKX4IG38MY87ptbkJZxphYsqoBm09j2xG+aC9TMZzJpRlyGyn68LflnuHnkpSTMB6 5/eXiv0+v33ZMAYz9+7dzBx9likR1tTcjKD0bSgnDtiejUypugXBfxLlB34JetiNoD6c vcWCyQukxCyY9aBLyYUGv+/JC2pfe7/soMwQ4qBeNAKX8f7oFs9/fMruGDdqdN3f9Bkp mHGr3B5IVaoclD9alczsC/7DL4diuKZ5BGeSPW78b/qn05w/Eg/ISz7qgIoJ/N0HK231 kht5ROamt5CFXgcTShstPqZQw1Z4Zj+uY0aW3SjsyZpFCTPIZW7QbAkbkC8Fu/JyDOap wRxw== X-Gm-Message-State: ALoCoQlgH9qSfOUUyvaP5e08+LZuW5xJFv4s4opg9ys2VERZ5MuqySXVyJ12F4jvdEUFWbt1xLUn 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 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, 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 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);