From patchwork Fri Oct 13 07:03:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: KaiLong Wang X-Patchwork-Id: 152347 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2908:b0:403:3b70:6f57 with SMTP id ib8csp1709140vqb; Fri, 13 Oct 2023 00:06:07 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHst2JMLA8slX5VwFbFsmzTtj8SBzShQuIVi5SVuAhjoHFxgVlGEtW3Zs455RCbFpBl1XB1 X-Received: by 2002:a05:6a00:10c2:b0:68f:c9f6:f366 with SMTP id d2-20020a056a0010c200b0068fc9f6f366mr29409500pfu.0.1697180767005; Fri, 13 Oct 2023 00:06:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697180766; cv=none; d=google.com; s=arc-20160816; b=KtTssoZIMVtqdnxhoCSeXqp1VtZMML13Vq9za/vzXxZ4gipEFpOMZYOJ6j1dSne1Oh kCQl0EsR2YUT8L1SmtAs6v5pCeLuIT+sKXCz9kUuB1RHbhccMjbjxnCLEMpIGx8dPj3c 96+nUVVlrJhP4hXArR/iINRw9GKZHPXzuNTVl0rnjkrnXNMJocudidiLi+9OJuI1UiAE ZLYepzt5Q4wXNKyC8Vb12hLv7vYaZnPTERETNlvWz5RTW9rXCQ/1n+tI90rKXcjlBXyl Qy1B5EnbyCOPgvNngG0zWa56JcDIyrMJ1UXUkMB5i/xkLzc/7/pHKG6dBxIUh5V0f129 9nSw== 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=/Mjf7FH7gF6Ds1ZjEDvyW8NHCvKCNuIRuwnHbvCwxCk=; fh=fBkeEUbsF2TCRHmipkpW+G8nkUJp3HBkPJ1hextA5pc=; b=BSV77LOcc6zBcLCl9pWQY2abkRT2s/K99ZZ0xa4WwWRlLAKzjYRlkcY7qOxKnavoCa /OBgggfM+vYsR8lqn5hyqqHfGQFxgyBLjBOuajf3IqKU6IzwaYt3KSEjF+n7Ibl1dmVm qErhG+8h/F59dD5NO8BL9vltrULQ2Ncb7V1ArPCr8bO+F+LAFjiLCgAFMrjhaOsQwCw+ qT9LezQOsjfR3eDwVmHV8InENxYNXnh/4z6M4qENHdFV280iojq4kV6cFRDNtZ/brCcR g48tdsrCuarNYyW/5vaelWlQcrLNbSkLnJNIrXwNgXeKzca9pA/qOTBxBCrI10xpVLlB PuzA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id bd10-20020a056a00278a00b0068fa57d2486si2455722pfb.125.2023.10.13.00.06.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Oct 2023 00:06:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (Postfix) with ESMTP id 359FC8076C8D; Fri, 13 Oct 2023 00:05:30 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229845AbjJMHFE (ORCPT + 19 others); Fri, 13 Oct 2023 03:05:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42598 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229692AbjJMHFB (ORCPT ); Fri, 13 Oct 2023 03:05:01 -0400 Received: from jari.cn (unknown [218.92.28.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6DDDD91; Fri, 13 Oct 2023 00:05:00 -0700 (PDT) Received: from wangkailong$jari.cn ( [182.148.14.172] ) by ajax-webmail-localhost.localdomain (Coremail) ; Fri, 13 Oct 2023 15:03:18 +0800 (GMT+08:00) X-Originating-IP: [182.148.14.172] Date: Fri, 13 Oct 2023 15:03:18 +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 locks.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: <5bea2493.963.18b27d8bfb6.Coremail.wangkailong@jari.cn> X-Coremail-Locale: zh_CN X-CM-TRANSID: AQAAfwC3VUC26yhlit7BAA--.671W X-CM-SenderInfo: 5zdqwypdlo00nj6mt2flof0/1tbiAQABB2UlHDMAlgAXsp 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 groat.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 (groat.vger.email [0.0.0.0]); Fri, 13 Oct 2023 00:05:30 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1779623019772627414 X-GMAIL-MSGID: 1779623019772627414 Fix the following errors reported by checkpatch: ERROR: need consistent spacing around '-' (ctx:WxV) Signed-off-by: KaiLong Wang --- fs/ceph/locks.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/ceph/locks.c b/fs/ceph/locks.c index cb51c7e9c8e2..f956f613dd93 100644 --- a/fs/ceph/locks.c +++ b/fs/ceph/locks.c @@ -141,7 +141,7 @@ static int ceph_lock_message(u8 lock_type, u16 operation, struct inode *inode, length = le64_to_cpu(req->r_reply_info.filelock_reply->start) + le64_to_cpu(req->r_reply_info.filelock_reply->length); if (length >= 1) - fl->fl_end = length -1; + fl->fl_end = length - 1; else fl->fl_end = 0;