Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp3473066imm; Sun, 1 Jul 2018 22:56:11 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLWCqvyr9yPOSakmWcGzvV/nA8LA+E+XkVWTozeYiVqvoUS85St4i/SuV1lwdTfmJNH03tP X-Received: by 2002:a63:35c3:: with SMTP id c186-v6mr20479934pga.217.1530510971074; Sun, 01 Jul 2018 22:56:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530510971; cv=none; d=google.com; s=arc-20160816; b=EWcsk0fYER4xRRI7gey3B5s1Flnr4QVSESwc9dc3z2bfSs0rhjsBtotkqDzYNUzKGE EPtqxgbOAgA4WFanO1nj4vl//D1kh0o6XcVjo63uIEg3vNNrwatMcYDkcRRfTzDmG6eZ B+P6Q20nUEnr+np7nLrs84p3lmxhlePrny4/ZwXHgTBbjLOsAJ1MGOGeLXIsyrs8kGPE MXQRmVnogFDfFGuXpzy9IYbUgErx5r30j0i6wLlkacVXAzOzyKvUTjd+OzixcwfUnCPN 4F7tdbXeUJjYJxKNcIWgB6AofW/B5Mgas42NGGZRH1laT0X7IajTwIp2vUmitxVHG7TE XGMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature:arc-authentication-results; bh=+SF5TPNL8R/X1mDUmkFmIwi3uuoL/xmFfSzAu/HaAVc=; b=LeqP74dr5E4LfNxGdz39AhL41kGoiidFiqK7u9Msxc8tcHIYDIMs8OGv41FWQPDD4i 3U2Lmt7DnsthI8HtWLh2jiH2Iazr3hKK0n5YMWhQYhwaahpCXSIrBUZxX4AX0CCYRpon sZOch16RVILOJv1/0Opwl5p7Z9495wo+tt1E8xdyw8lM/jSfT3paWTix4b6pmUFTlRk9 7cFqilwWP/xuGYUAk8UjoL9iyYwWttsdGe2oCyZHoLZiZe5BDYvBUt5laMC2bZBxNrzW UtdSrpppMo4oTS4/e0iYnX3pKIpSD6kJ1kJiFuTK4OaU4Ab19RWqwzioLk4/JdtmpOti pYoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@CAVIUMNETWORKS.onmicrosoft.com header.s=selector1-cavium-com header.b=N3lGDY4v; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 11-v6si2991199pfw.89.2018.07.01.22.55.56; Sun, 01 Jul 2018 22:56:11 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@CAVIUMNETWORKS.onmicrosoft.com header.s=selector1-cavium-com header.b=N3lGDY4v; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753057AbeGBFqB (ORCPT + 99 others); Mon, 2 Jul 2018 01:46:01 -0400 Received: from mail-eopbgr730070.outbound.protection.outlook.com ([40.107.73.70]:15983 "EHLO NAM05-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752684AbeGBFp5 (ORCPT ); Mon, 2 Jul 2018 01:45:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=+SF5TPNL8R/X1mDUmkFmIwi3uuoL/xmFfSzAu/HaAVc=; b=N3lGDY4vGJxM7R6bEWVHb2ddNGobD0AkJ8CerZq7uKLNIxokkiQFV6vpVfkwxd4q1AVRgPQlCx8w33JqG0/8GgALKJSmcMeK0nWqd3RfEjMJ+QszXvu6ibiYaTz7xHzXwMpUwLbKApqvkAxoplDAdvBYL3FHTADoyXuoJbqBDeg= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jan.Glauber@cavium.com; Received: from hc (82.212.12.226) by BYAPR07MB4600.namprd07.prod.outlook.com (2603:10b6:a02:f2::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.906.23; Mon, 2 Jul 2018 05:45:52 +0000 Date: Mon, 2 Jul 2018 07:45:40 +0200 From: Jan Glauber To: Colin King Cc: Herbert Xu , "David S . Miller" , Robert Richter , linux-crypto@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] crypto: zip: make several functions static Message-ID: <20180702054540.GA14359@hc> References: <20180630113049.4402-1-colin.king@canonical.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180630113049.4402-1-colin.king@canonical.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Originating-IP: [82.212.12.226] X-ClientProxiedBy: VI1PR08CA0182.eurprd08.prod.outlook.com (2603:10a6:800:d2::12) To BYAPR07MB4600.namprd07.prod.outlook.com (2603:10b6:a02:f2::28) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: b678440c-be8f-42f9-ebff-08d5dfdf13bd X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989117)(5600053)(711020)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(2017052603328)(7153060)(7193020);SRVR:BYAPR07MB4600; X-Microsoft-Exchange-Diagnostics: 1;BYAPR07MB4600;3:73A6W6actSJ1CfeKpbTYuArHfTGzDDSicyOafEWbfXTUbvOmOVWg4mmxJ9Xznb2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N9pubkmZOFFTwxi8BVKyrADgtKm8XhjoUjYQqt48bSy1x5ZZ8mEKicIhnrpYTt9YaK8Wrwwqd0HkcxweFUfvORakvp+ep1FXYud5NSbEHzS9Hts20w7dIR8AtUNiO7sfxmvA3z3NVZS/o2onejBSGxI/ne77zVSPUiYK+ot20NPrmIrJfWSoUg0gjNrZhys+u3imNQZHfStFnG8R12P6h0s0TPGKryZfQ6RgDpf6zxChiQ1tC6fjBGwP1Fged8Y8vpbJG9iL9QUAXlw0dzyraM;4:xNeQ8iWNnG1aDrV9bO4BplXCgICv+h/cYhB6HQ5wI7NkW5I6ZzGFpoxHQpeUmOHeBqtiymC2GiQ3Znhti1AA3ZTKIOL+yFxYstrtlwPolcpmOGdQtDK+lDVS0bohr0pZSSGtTPokzeK2bNuii+f549UIHsKaAqYWYe1rU3p37sBk8VJNcYL6ubihxD4hOAhL8mYlnGZHZ6oJ0RnRo+J1gWsRCBTRvVBN3VPaGzDoxUHDM+rAR3NJoOHWKoVNO9JtsNk3nbpNV9YIlUj/zCjAfMgbQhooZ+9o4ej0O8JzN2sb9BBRg5Dvdx+SdsqvlXrX X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(198206253151910); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231254)(944501410)(52105095)(10201501046)(3002001)(93006095)(93001095)(149027)(150027)(6041310)(20161123564045)(20161123558120)(20161123560045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011)(7699016);SRVR:BYAPR07MB4600;BCL:0;PCL:0;RULEID:;SRVR:BYAPR07MB4600; X-Forefront-PRVS: 07215D0470 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(396003)(39860400002)(366004)(376002)(136003)(346002)(189003)(199004)(33716001)(229853002)(86362001)(6666003)(6916009)(966005)(2906002)(68736007)(956004)(72206003)(186003)(97736004)(11346002)(16526019)(55016002)(26005)(50466002)(52116002)(6496006)(6306002)(76176011)(386003)(9686003)(33896004)(1076002)(33656002)(5660300001)(316002)(16586007)(23726003)(476003)(3846002)(7736002)(6116002)(305945005)(58126008)(54906003)(47776003)(6246003)(486006)(25786009)(478600001)(8936002)(8676002)(81156014)(81166006)(106356001)(53936002)(66066001)(446003)(105586002)(44832011)(4326008)(18370500001);DIR:OUT;SFP:1101;SCL:1;SRVR:BYAPR07MB4600;H:hc;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BYAPR07MB4600;23:u2f9TxN+rd/N8iA5nZGp2kiohv6P/bd2ZEBHLgwAk?= =?us-ascii?Q?NjMUoQUf9qJleqdReWnS2LBPH86Dmg6LBYPyMcP/ueRWlsC9SAX9S+MS32cG?= =?us-ascii?Q?VIFX0enwI7/2S73Fp78LSdhR4CoStIX4n1Si4sLi1vt/3NbOanM7gUXOQra8?= =?us-ascii?Q?I9juEkWpR+DGSVpaw/7vqhHMT6jbFRhPobcYiDhPvky5IN1UQ5/RX0gKkvdF?= =?us-ascii?Q?WjaazFmEK+hTfwAxcUEzT7BIYj8z+ezcTEYm4lOHEHrB3w3dxSArhS+S/BB8?= =?us-ascii?Q?Ax6DRebP72P6nuodZT3Qxq4fb5mwHxPtYqQscD4xDrc2YgH9TXW+QWI1braT?= =?us-ascii?Q?3MbHZXS0MP1MhlJUJScKBc3C1AxY8Ryv6ar6zdre2fXqvN2pm5QqTInG+vma?= =?us-ascii?Q?ANUBjhd+ER21+5Fj/znBx9C79AbulhNE/QwtP+3T7fx1FpKcb1AHyZ+6dRac?= =?us-ascii?Q?+4ByH1rFUNGvkEG0JAivJSzEwHDuCWshY4sFVNLto6Vp+K5zbdqzHie7g79D?= =?us-ascii?Q?isvrdFRhJfAb+65wgruX3O68MGfEAMyueW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IE48mw+TzKyyvGaWu4tqgHw= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;BYAPR07MB4600;7:sR4x0azKPiCcqkeXCV+8MWjkM0fXA3LEaSm2LDbPsZSgfId92Zu0h+2UHe0GK8U/AmFTmEkNyZ1WCdt8nVyigYcfoPCJcG+VDJENtHFkdVZmqet3M0ulIvTHPux9gaN8UwICJv7RxDCgYqX+05yb02r+sI0CeyukWFf3ZA324TNcKRmA8ojihrvF1VA+ThjlrVoJQMgNEO72hTap0AnAjW137fASNl75h9Al89BkltH8oVTsYpluFGKSrDeRr779 X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Jul 2018 05:45:52.6875 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b678440c-be8f-42f9-ebff-08d5dfdf13bd X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR07MB4600 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Colin, I've already posted a similar patch: https://patchwork.kernel.org/patch/10482283/ --Jan On Sat, Jun 30, 2018 at 12:30:49PM +0100, Colin King wrote: > From: Colin Ian King > > The functions zip_ctx_exit, zip_compress, zip_decompress and zip_ctx_init > are local to the source and do not need to be in global scope, so make > them static. > > Cleans up sparse warnings: > symbol 'zip_ctx_exit' was not declared. Should it be static? > symbol 'zip_compress' was not declared. Should it be static? > symbol 'zip_decompress' was not declared. Should it be static? > symbol 'zip_ctx_init' was not declared. Should it be static? > > Signed-off-by: Colin Ian King > --- > 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; > -- > 2.17.1