From patchwork Fri Oct 13 06:57:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: KaiLong Wang X-Patchwork-Id: 152344 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2908:b0:403:3b70:6f57 with SMTP id ib8csp1706117vqb; Thu, 12 Oct 2023 23:59:54 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF0f1/J28gLeGaVZ25CnyaJOiCFwEgRmPHA+5/B6zrv+77gDotrJ/x90kLLtqDEtDaEULDi X-Received: by 2002:a05:6870:509:b0:1bf:9fa2:bfa3 with SMTP id j9-20020a056870050900b001bf9fa2bfa3mr28233133oao.1.1697180393929; Thu, 12 Oct 2023 23:59:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697180393; cv=none; d=google.com; s=arc-20160816; b=KnrfjOHsdLSjrQaItKGG3Zmuih+yArzlg/NXMKBhEQaa0trWOzIP7eqhtZQSjENvMQ ELt3hhHa7aA7fMfeK8eHHkHJU1SwHDDA7WZzxjUUqywk80dCfZBZix8ofqRt2H7pvsba bPRfS93Z6hrzx47HCAtBPJK7JxaCaWNyrJBla8VkY2bBh4a88ynHjwmACU934CrCNOtC qp3VNKsI8LBV9T59/Nl9pOcxXbBrJqq4b35cGwdvYGkn5G/qWCN6uAlGQSwYexIJSEFn La4/Ezj0GjARJ1ZhPaMkUkPeW7dpbhTl8dABB2YlhbLUfSqV05PrOgTuk8kepWWc6OTq 80TA== 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=kjt1RdasbFYPuIluRG2NQ1IyUgBek66/keG0YRASQYY=; fh=cSOmrESwLeOhg15ZhfpeJ988GJ0Aj/UHvv6Q7Yvh8Kk=; b=megGNSJlapYq+VL1IID1njrgJv/2a0Y8z9KNG58st2B1rYYLuuzXbz8nLGySfF1Zod SJwLcDR3yp3OESa6A9U53Yph8fyeWsii6EAw9k89xf9/6F7vXTL5YtTIequWiQatFNav 24lkmYXT5lNa4GuQSXYUUoUeMy9erOo2pisKdIY5m235Y+l1za7zlSro31x52t5RAzAI LUQKE1c9JqWstLHekSK+aFWuVruM9LtW9P8y0qlcHZ7gPps6I49+ZCRKlcGPc/27w8pV jzS5VcY2H7iJMit0w6LZB0CkIaUMGXKVLWzLzxnNJLv8kKLU4SVjZG7FjbpH4p+E2wVV uBMw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id v186-20020a6389c3000000b005ad14d37968si168381pgd.773.2023.10.12.23.59.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Oct 2023 23:59:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (Postfix) with ESMTP id 9015F80BD763; Thu, 12 Oct 2023 23:59:51 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229843AbjJMG7X (ORCPT + 19 others); Fri, 13 Oct 2023 02:59:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46750 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229692AbjJMG7W (ORCPT ); Fri, 13 Oct 2023 02:59:22 -0400 Received: from jari.cn (unknown [218.92.28.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0AC2991 for ; Thu, 12 Oct 2023 23:59:18 -0700 (PDT) Received: from wangkailong$jari.cn ( [182.148.14.172] ) by ajax-webmail-localhost.localdomain (Coremail) ; Fri, 13 Oct 2023 14:57:36 +0800 (GMT+08:00) X-Originating-IP: [182.148.14.172] Date: Fri, 13 Oct 2023 14:57:36 +0800 (GMT+08:00) X-CM-HeaderCharset: UTF-8 From: "KaiLong Wang" To: Jason@zx2c4.com Cc: linux-kernel@vger.kernel.org Subject: [PATCH] ceph: Clean up errors in mdsmap.c 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: <265b0c47.95f.18b27d38985.Coremail.wangkailong@jari.cn> X-Coremail-Locale: zh_CN X-CM-TRANSID: AQAAfwC3VUBg6ihlcd7BAA--.669W X-CM-SenderInfo: 5zdqwypdlo00nj6mt2flof0/1tbiAQABB2UlHDMAlgAVsr 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 fry.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 (fry.vger.email [0.0.0.0]); Thu, 12 Oct 2023 23:59:51 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1779622393194317322 X-GMAIL-MSGID: 1779622628550048836 Fix the following errors reported by checkpatch: ERROR: "foo* bar" should be "foo *bar" ERROR: spaces required around that '=' (ctx:VxW) Signed-off-by: KaiLong Wang --- fs/ceph/mdsmap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/ceph/mdsmap.c b/fs/ceph/mdsmap.c index 7dac21ee6ce7..bb596e00fd9c 100644 --- a/fs/ceph/mdsmap.c +++ b/fs/ceph/mdsmap.c @@ -82,7 +82,7 @@ int ceph_mdsmap_get_random_mds(struct ceph_mdsmap *m) } while (0) -static int __decode_and_drop_compat_set(void **p, void* end) +static int __decode_and_drop_compat_set(void **p, void *end) { int i; /* compat, ro_compat, incompat*/ @@ -186,7 +186,7 @@ struct ceph_mdsmap *ceph_mdsmap_decode(void **p, void *end, bool msgr2) ceph_decode_need(p, end, sizeof(u64) + 1, bad); global_id = ceph_decode_64(p); - info_v= ceph_decode_8(p); + info_v = ceph_decode_8(p); if (info_v >= 4) { u32 info_len; ceph_decode_need(p, end, 1 + sizeof(u32), bad);