From patchwork Tue Jun 25 08:54:45 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Baltieri X-Patchwork-Id: 2775381 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 95B31C0AB1 for ; Tue, 25 Jun 2013 08:57:40 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id F022F201BE for ; Tue, 25 Jun 2013 08:57:35 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9CEC0201BD for ; Tue, 25 Jun 2013 08:57:34 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UrP34-00064t-Ue; Tue, 25 Jun 2013 08:56:27 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1UrP2o-0008Js-9f; Tue, 25 Jun 2013 08:56:10 +0000 Received: from mail-ee0-x22c.google.com ([2a00:1450:4013:c00::22c]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UrP2j-0008Hi-KC for linux-arm-kernel@lists.infradead.org; Tue, 25 Jun 2013 08:56:06 +0000 Received: by mail-ee0-f44.google.com with SMTP id c13so6613084eek.31 for ; Tue, 25 Jun 2013 01:55:43 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=Me4D58Fx0hkIKMHmQij4yimxiwxJJFIvBT/uhSy8+yo=; b=Gipiq7xA6x0JFFfkdjlvCRNER3/b9/VwzEusbkbaB+rSeluXxvTxu13N/72G0HAwSf gZOwcgS7XhpdRX91Yf7UYIbLyCcXktyRaxSkvh/IziZET2Qeidn+ygtfyO06e/ktA6oo YyxIUsxLqz+uaJVix7z1QkHXw9kF3b8kwD5G3s53wChctS1sx9k4L4iWnTyRv/vxovhU iYBVm19pAQPqB4D46virbwpp4McZs9nEQut45vXkhw4ukSx8LAy/XsCc0l6axu3Bnx4T jG75sJv6IEkP/nfTF3K5KOiFNmcY6vBLpsvW8MdsoTfXMFNmqdSxsFr+EV6Q4uxHL8rc TCwA== X-Received: by 10.14.110.194 with SMTP id u42mr28818265eeg.128.1372150543606; Tue, 25 Jun 2013 01:55:43 -0700 (PDT) Received: from localhost (host156-187-dynamic.52-82-r.retail.telecomitalia.it. [82.52.187.156]) by mx.google.com with ESMTPSA id n5sm34322335eed.9.2013.06.25.01.55.41 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 25 Jun 2013 01:55:42 -0700 (PDT) From: Fabio Baltieri To: Herbert Xu Subject: [PATCH 2/6] crypto: ux500/hash: add missing static qualifiers Date: Tue, 25 Jun 2013 10:54:45 +0200 Message-Id: <1372150489-25594-3-git-send-email-fabio.baltieri@linaro.org> X-Mailer: git-send-email 1.8.2 In-Reply-To: <1372150489-25594-1-git-send-email-fabio.baltieri@linaro.org> References: <1372150489-25594-1-git-send-email-fabio.baltieri@linaro.org> X-Gm-Message-State: ALoCoQkolDEIoBDrXxDLLS3ZAiKJutHVHdDHLwCOw0Ff8x0EO0sZK4/krsw7rkAhtReX3my5S9z8 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130625_045605_856469_8013A48C X-CRM114-Status: UNSURE ( 9.72 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -1.9 (-) Cc: Fabio Baltieri , Linus Walleij , linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, Lee Jones , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-5.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable 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 Add missing static qualifiers to hash_process_data and hash_hw_final. Signed-off-by: Fabio Baltieri --- drivers/crypto/ux500/hash/hash_core.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/crypto/ux500/hash/hash_core.c b/drivers/crypto/ux500/hash/hash_core.c index 154f437..dbf7b63 100644 --- a/drivers/crypto/ux500/hash/hash_core.c +++ b/drivers/crypto/ux500/hash/hash_core.c @@ -792,8 +792,7 @@ void hash_begin(struct hash_device_data *device_data, struct hash_ctx *ctx) HASH_CLEAR_BITS(&device_data->base->str, HASH_STR_NBLW_MASK); } -int hash_process_data( - struct hash_device_data *device_data, +static int hash_process_data(struct hash_device_data *device_data, struct hash_ctx *ctx, struct hash_req_ctx *req_ctx, int msg_length, u8 *data_buffer, u8 *buffer, u8 *index) { @@ -992,7 +991,7 @@ out: * hash_hw_final - The final hash calculation function * @req: The hash request for the job. */ -int hash_hw_final(struct ahash_request *req) +static int hash_hw_final(struct ahash_request *req) { int ret = 0; struct crypto_ahash *tfm = crypto_ahash_reqtfm(req);