From patchwork Thu Sep 28 03:20:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: KaiLong Wang X-Patchwork-Id: 145720 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:cae8:0:b0:403:3b70:6f57 with SMTP id r8csp3045863vqu; Wed, 27 Sep 2023 20:25:51 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHhMZPVNzUxCS04j7olweY03c69Vsz2VSGLsZcXKgvLlTlWH44NKDBAu8xs3FUJ7HrEtcEj X-Received: by 2002:ac8:5a8d:0:b0:418:1499:5d65 with SMTP id c13-20020ac85a8d000000b0041814995d65mr52509qtc.40.1695871551203; Wed, 27 Sep 2023 20:25:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695871551; cv=none; d=google.com; s=arc-20160816; b=LRb6OGlBy6J1oTEkhEdOvUO4Fh6CIEi+MUkALCYmJ5VE7I4B6FBdUnrMrn2JVDlMDe fa8nc689CpT3dJ9vIBDSZxrANMPl3YMAYLKHPv44wc1hMSCjB400MileLadIAn9+v7mZ lKSVoOoxvswzhGXNUBUtYKVyucf42/QLYUTWoxzS0Zznnu+hl1GN0HlBKLwEYHzI57r6 gr+p1qkyzQ/kSsZtJiIAyzg2KxV9D0ReGw5LQa1MZRCRpMB0dSbAsx7P2oTVgeZyaRfK hFkfuN2KvO1o+UfqA3X0gB9dbM/3qBNZiGMpe+CTLuNHv+ci5C773b7Z5pLwrTgxN/cl xeaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:mime-version :content-transfer-encoding:subject:cc:to:from:date; bh=7MfDPa3oxNjNtm6UFOJpBSBW2oCfdyyvn6mPSELYH0w=; fh=0nFGbNfzY3gPck/tpjNGnbeoqAunzXtdRAO5si4k0U4=; b=BAOIPYhnC0wQRSALamBXMyJk6654PwInXFr/U5M5pXZedlPfgL9kKIj8qf/fOnwL1u ZwgPkLKa6rhSGNC3n9CcH2jqtIz9QRD+gVsly/+ekoXTmtYiGZ7NLBChGnOPH0ECJOWG GHTdP/hlUZ8cKWa1damIgvqDfkJmz+cvu7mhwhQdeRVIwmG7eRTcWViR9vqwYpaiOGk5 uXuLe0LjLvqyQCj686jnzenqPHFHzJjEvzaD/I2e/hjfbbhNF0oMiMKjC+zGDL7VOKrF sUBg/Eeqa+w9ZGZga55gUs5sQZGxlOnLnc/mTh9Ojhyr9c1xYIddSTqATGMeJHTmJhUz g/Tw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id r20-20020a6560d4000000b005783f4fa3a8si16613326pgv.203.2023.09.27.20.25.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Sep 2023 20:25:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 145D18093CBA; Wed, 27 Sep 2023 20:22:16 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230094AbjI1DWB (ORCPT + 20 others); Wed, 27 Sep 2023 23:22:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56514 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229437AbjI1DWA (ORCPT ); Wed, 27 Sep 2023 23:22:00 -0400 Received: from jari.cn (unknown [218.92.28.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D3FE094 for ; Wed, 27 Sep 2023 20:21:56 -0700 (PDT) Received: from wangkailong$jari.cn ( [182.148.12.64] ) by ajax-webmail-localhost.localdomain (Coremail) ; Thu, 28 Sep 2023 11:20:37 +0800 (GMT+08:00) X-Originating-IP: [182.148.12.64] Date: Thu, 28 Sep 2023 11:20:37 +0800 (GMT+08:00) X-CM-HeaderCharset: UTF-8 From: "KaiLong Wang" To: terrelln@fb.com Cc: linux-kernel@vger.kernel.org Subject: [PATCH] zstd: Clean up errors in zstd_decompress_block.h X-Priority: 3 X-Mailer: Coremail Webmail Server Version 2023.1-cmXT6 build 20230419(ff23bf83) Copyright (c) 2002-2023 www.mailtech.cn mispb-4e503810-ca60-4ec8-a188-7102c18937cf-zhkzyfz.cn MIME-Version: 1.0 Message-ID: <4102ea9a.8ae.18ad9cd7e6d.Coremail.wangkailong@jari.cn> X-Coremail-Locale: zh_CN X-CM-TRANSID: AQAAfwBn+D0F8RRl54G+AA--.638W X-CM-SenderInfo: 5zdqwypdlo00nj6mt2flof0/1tbiAQAIB2UT+K8AFwALsz X-Coremail-Antispam: 1Ur529EdanIXcx71UUUUU7IcSsGvfJ3iIAIbVAYjsxI4VWxJw CS07vEb4IE77IF4wCS07vE1I0E4x80FVAKz4kxMIAIbVAFxVCaYxvI4VCIwcAKzIAtYxBI daVFxhVjvjDU= X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Wed, 27 Sep 2023 20:22:18 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778250207712804132 X-GMAIL-MSGID: 1778250207712804132 Fix the following errors reported by checkpatch: ERROR: "foo* bar" should be "foo *bar" Signed-off-by: KaiLong Wang --- lib/zstd/decompress/zstd_decompress_block.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/zstd/decompress/zstd_decompress_block.h b/lib/zstd/decompress/zstd_decompress_block.h index 3d2d57a5d25a..f5d89fe89d32 100644 --- a/lib/zstd/decompress/zstd_decompress_block.h +++ b/lib/zstd/decompress/zstd_decompress_block.h @@ -45,9 +45,9 @@ typedef enum { * @return : decompressed block size, * or an error code (which can be tested using ZSTD_isError()) */ -size_t ZSTD_decompressBlock_internal(ZSTD_DCtx* dctx, - void* dst, size_t dstCapacity, - const void* src, size_t srcSize, const int frame, const streaming_operation streaming); +size_t ZSTD_decompressBlock_internal(ZSTD_DCtx *dctx, + void *dst, size_t dstCapacity, + const void *src, size_t srcSize, const int frame, const streaming_operation streaming); /* ZSTD_buildFSETable() : * generate FSE decoding table for one symbol (ll, ml or off) @@ -58,10 +58,10 @@ size_t ZSTD_decompressBlock_internal(ZSTD_DCtx* dctx, * defined in zstd_decompress_internal.h. * Internal use only. */ -void ZSTD_buildFSETable(ZSTD_seqSymbol* dt, - const short* normalizedCounter, unsigned maxSymbolValue, - const U32* baseValue, const U8* nbAdditionalBits, - unsigned tableLog, void* wksp, size_t wkspSize, +void ZSTD_buildFSETable(ZSTD_seqSymbol *dt, + const short *normalizedCounter, unsigned maxSymbolValue, + const U32 *baseValue, const U8 *nbAdditionalBits, + unsigned tableLog, void *wksp, size_t wkspSize, int bmi2);