From patchwork Fri Jun 22 14:37:22 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Glauber X-Patchwork-Id: 10482283 X-Patchwork-Delegate: herbert@gondor.apana.org.au Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 27CE960230 for ; Fri, 22 Jun 2018 14:37:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 07E9128EC8 for ; Fri, 22 Jun 2018 14:37:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F0BCE28F60; Fri, 22 Jun 2018 14:37:58 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 50A4228F63 for ; Fri, 22 Jun 2018 14:37:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932170AbeFVOhz (ORCPT ); Fri, 22 Jun 2018 10:37:55 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:51416 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933645AbeFVOhx (ORCPT ); Fri, 22 Jun 2018 10:37:53 -0400 Received: by mail-wm0-f66.google.com with SMTP id r15-v6so2488139wmc.1 for ; Fri, 22 Jun 2018 07:37:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=+fGwWfgzrCq0IckTLu104C6zw2HCi28otlFun3HtxTU=; b=aRBtDRPQS16mh8RUXirp9IRIzfIFCGZLuRV74+4wjkiaH9bHjj+NDzXViQDl5EL7IY wjY5WpJAa/cfVYeQbAq1Q+fGT4hJzbaM6vA1Eun7gArRpJ1beQlqGuu0G67iJ8UFBCZQ Ax/t33gloPWQnyGhV4+Z99gH8eO8a39f8zXWSJt8J3b3rbUNdy32lZ7M60gTn6W6/hJw BrjW+NaAyPnZjlnncNQ5wDL30/aygIWCucSOz3VYwZaISjA8jCi8950nMk3g4PZJmsw5 pK0aYbmPw50HGT60AJeiFQ8jyWRRjHh/ig5Y6FdJyK1x979ZklRdumpYq2bktQeue5h7 x2nQ== X-Gm-Message-State: APt69E1XIxClXoq5AeLniJCgi4qqwPbvNyORLc3Jl7uZmgPV40yk98Fc ey4wVHgKQKU3PiVciwwbT5UZaUre X-Google-Smtp-Source: ADUXVKKx0paMOiRMsSTboMc3ehyjTLnj5OIIVjFoEre4XhIOwQQHiLvF6SGYjZIImooUQokMjmpVjg== X-Received: by 2002:a1c:cfc2:: with SMTP id f185-v6mr1900588wmg.101.1529678272728; Fri, 22 Jun 2018 07:37:52 -0700 (PDT) Received: from hc.cavium.com (dslb-088-066-107-231.088.066.pools.vodafone-ip.de. [88.66.107.231]) by smtp.gmail.com with ESMTPSA id a5-v6sm6553033wro.12.2018.06.22.07.37.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 22 Jun 2018 07:37:52 -0700 (PDT) From: Jan Glauber To: Herbert Xu Cc: "David S . Miller" , linux-crypto@vger.kernel.org, Mahipal Challa , Jan Glauber Subject: [PATCH 5/5] crypto: thunderx_zip - Make functions static Date: Fri, 22 Jun 2018 16:37:22 +0200 Message-Id: <20180622143722.9406-6-jglauber@cavium.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180622143722.9406-1-jglauber@cavium.com> References: <20180622143722.9406-1-jglauber@cavium.com> Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Make functions static where possible, found by sparse. Signed-off-by: Jan Glauber --- drivers/crypto/cavium/zip/zip_crypto.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/crypto/cavium/zip/zip_crypto.c b/drivers/crypto/cavium/zip/zip_crypto.c index b92b6e7e100f..f9e99a15d2a0 100644 --- a/drivers/crypto/cavium/zip/zip_crypto.c +++ b/drivers/crypto/cavium/zip/zip_crypto.c @@ -69,7 +69,7 @@ static void zip_static_init_zip_ops(struct zip_operation *zip_ops, zip_ops->csum = 1; /* Adler checksum desired */ } -int zip_ctx_init(struct zip_kernel_ctx *zip_ctx, int lzs_flag) +static int zip_ctx_init(struct zip_kernel_ctx *zip_ctx, int lzs_flag) { struct zip_operation *comp_ctx = &zip_ctx->zip_comp; struct zip_operation *decomp_ctx = &zip_ctx->zip_decomp; @@ -107,7 +107,7 @@ int zip_ctx_init(struct zip_kernel_ctx *zip_ctx, int lzs_flag) return -ENOMEM; } -void zip_ctx_exit(struct zip_kernel_ctx *zip_ctx) +static void zip_ctx_exit(struct zip_kernel_ctx *zip_ctx) { struct zip_operation *comp_ctx = &zip_ctx->zip_comp; struct zip_operation *dec_ctx = &zip_ctx->zip_decomp; @@ -119,9 +119,9 @@ void zip_ctx_exit(struct zip_kernel_ctx *zip_ctx) zip_data_buf_free(dec_ctx->output, MAX_OUTPUT_BUFFER_SIZE); } -int zip_compress(const u8 *src, unsigned int slen, - u8 *dst, unsigned int *dlen, - struct zip_kernel_ctx *zip_ctx) +static int zip_compress(const u8 *src, unsigned int slen, + u8 *dst, unsigned int *dlen, + struct zip_kernel_ctx *zip_ctx) { struct zip_operation *zip_ops = NULL; struct zip_state *zip_state; @@ -155,9 +155,9 @@ int zip_compress(const u8 *src, unsigned int slen, return ret; } -int zip_decompress(const u8 *src, unsigned int slen, - u8 *dst, unsigned int *dlen, - struct zip_kernel_ctx *zip_ctx) +static int zip_decompress(const u8 *src, unsigned int slen, + u8 *dst, unsigned int *dlen, + struct zip_kernel_ctx *zip_ctx) { struct zip_operation *zip_ops = NULL; struct zip_state *zip_state;