From patchwork Fri Oct 13 06:53:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: KaiLong Wang X-Patchwork-Id: 152342 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2908:b0:403:3b70:6f57 with SMTP id ib8csp1705018vqb; Thu, 12 Oct 2023 23:56:10 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFECOH7qg5nKzNC/bDtdUKbAVnHFhIbJ8QeaC2NFDwuIhmAk2CJ2hz/RUsJbX8f+/k8warb X-Received: by 2002:a05:6a20:431e:b0:13d:fff1:c672 with SMTP id h30-20020a056a20431e00b0013dfff1c672mr29541797pzk.4.1697180169734; Thu, 12 Oct 2023 23:56:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697180169; cv=none; d=google.com; s=arc-20160816; b=Pbi4ZDuMvMHGasWvDL43jRnCPyOr7/TiGd/rjFCL57iZzpgbKFVZKB/TQFxCWak/9D s4QgV8DNLtAabSD8Uj5ZBYdoreQB5JkEVPBYRDVykmDfHM1Z65IawJjxraYy1ysdZBWa pDlB4j8gDRi8DOxS+6Py0EYjyRvaEXQiqRlcPQfMJsjVc6pDg+3Ltgot0n6GbJ3F8VEc eFRLpCMhJWTlahXMWGCAh6vyrzttcb70oeHDFBExqlvQSaPX2hEBiqAGOcSDuPXdO1pd VtGl7f1ecWpFv47bJyPP/w54VsRuegpkv/jDhcAvOC43D1DCT+FPvZARvUHiDMoyOX6R Ccng== 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=fBkeEUbsF2TCRHmipkpW+G8nkUJp3HBkPJ1hextA5pc=; b=ET4Xr62I2adbkWLzJacK4sKcCU/WXmzHnGvulA7yjBsEKpOPJjxyRmmuL+rKuZbIft Dl2s5zrpRPn8JwsDn3Z1iMZKTPmY56bbn6YeRujo/Tdw8OdG+7Zn72+WneRZacrUnTrU qFm5CEDPO07TrMlvFtwZdnFim95QRZ3F+CgGKvrN546Fh3JqiDvDCevXODWt9DYLEF9+ 35/NJJxl+rdy7HCV3WsY1lodEb8enFctM2oKdQGKPQFplv2ujQzvF6yrnxkQmwoGnBG2 Xw1GgvMiUAFdHrmV6sJORURy5Z7zviGzS42lEkYr8Or83dEj0Aao5aFcvxYthskH8JqZ Qjqw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id j1-20020a170902690100b001bc02b730f3si3782950plk.242.2023.10.12.23.56.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Oct 2023 23:56:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (Postfix) with ESMTP id 4EEE281F382D; Thu, 12 Oct 2023 23:56:06 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229862AbjJMGzj (ORCPT + 19 others); Fri, 13 Oct 2023 02:55:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35704 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229869AbjJMGzi (ORCPT ); Fri, 13 Oct 2023 02:55:38 -0400 Received: from jari.cn (unknown [218.92.28.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 61A13F1; Thu, 12 Oct 2023 23:55:35 -0700 (PDT) Received: from wangkailong$jari.cn ( [182.148.14.172] ) by ajax-webmail-localhost.localdomain (Coremail) ; Fri, 13 Oct 2023 14:53:53 +0800 (GMT+08:00) X-Originating-IP: [182.148.14.172] Date: Fri, 13 Oct 2023 14:53:53 +0800 (GMT+08:00) X-CM-HeaderCharset: UTF-8 From: "KaiLong Wang" To: xiubli@redhat.com, idryomov@gmail.com, jlayton@kernel.org Cc: ceph-devel@vger.kernel.org, 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: <5722ebe7.95d.18b27d0200e.Coremail.wangkailong@jari.cn> X-Coremail-Locale: zh_CN X-CM-TRANSID: AQAAfwDXaD6B6ShlYt7BAA--.631W X-CM-SenderInfo: 5zdqwypdlo00nj6mt2flof0/1tbiAQABB2UlHDMAlgARsv 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 pete.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 (pete.vger.email [0.0.0.0]); Thu, 12 Oct 2023 23:56:06 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1779622393194317322 X-GMAIL-MSGID: 1779622393194317322 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);