From patchwork Fri Oct 13 03:23:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: chenguohua@jari.cn X-Patchwork-Id: 13420076 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 34B81CDB474 for ; Fri, 13 Oct 2023 03:25:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229445AbjJMDZZ (ORCPT ); Thu, 12 Oct 2023 23:25:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44894 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229436AbjJMDZY (ORCPT ); Thu, 12 Oct 2023 23:25:24 -0400 Received: from jari.cn (unknown [218.92.28.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8CBAFA9; Thu, 12 Oct 2023 20:25:22 -0700 (PDT) Received: from chenguohua$jari.cn ( [182.148.14.172] ) by ajax-webmail-localhost.localdomain (Coremail) ; Fri, 13 Oct 2023 11:23:40 +0800 (GMT+08:00) X-Originating-IP: [182.148.14.172] Date: Fri, 13 Oct 2023 11:23:40 +0800 (GMT+08:00) X-CM-HeaderCharset: UTF-8 From: chenguohua@jari.cn To: trond.myklebust@hammerspace.com, anna@kernel.org Cc: linux-nfs@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] NFS: Clean up errors in nfs_fs_sb.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: <11c6beae.946.18b270fac0f.Coremail.chenguohua@jari.cn> X-Coremail-Locale: zh_CN X-CM-TRANSID: AQAAfwDXaD48uChlgdjBAA--.623W X-CM-SenderInfo: xfkh0w5xrk3tw6md2xgofq/1tbiAQADEWUnvzMAGQARsV X-Coremail-Antispam: 1Ur529EdanIXcx71UUUUU7IcSsGvfJ3iIAIbVAYjsxI4VW3Jw CS07vEb4IE77IF4wCS07vE1I0E4x80FVAKz4kxMIAIbVAFxVCaYxvI4VCIwcAKzIAtYxBI daVFxhVjvjDU= Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org Fix the following errors reported by checkpatch: ERROR: "foo * bar" should be "foo *bar" Signed-off-by: GuoHua Cheng --- include/linux/nfs_fs_sb.h | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/include/linux/nfs_fs_sb.h b/include/linux/nfs_fs_sb.h index cd628c4b011e..0311178cb137 100644 --- a/include/linux/nfs_fs_sb.h +++ b/include/linux/nfs_fs_sb.h @@ -51,20 +51,20 @@ struct nfs_client { #define NFS_CS_PNFS 9 /* - Server used for pnfs */ struct sockaddr_storage cl_addr; /* server identifier */ size_t cl_addrlen; - char * cl_hostname; /* hostname of server */ - char * cl_acceptor; /* GSSAPI acceptor name */ + char *cl_hostname; /* hostname of server */ + char *cl_acceptor; /* GSSAPI acceptor name */ struct list_head cl_share_link; /* link in global client list */ struct list_head cl_superblocks; /* List of nfs_server structs */ - struct rpc_clnt * cl_rpcclient; + struct rpc_clnt *cl_rpcclient; const struct nfs_rpc_ops *rpc_ops; /* NFS protocol vector */ int cl_proto; /* Network transport protocol */ - struct nfs_subversion * cl_nfs_mod; /* pointer to nfs version module */ + struct nfs_subversion *cl_nfs_mod; /* pointer to nfs version module */ u32 cl_minorversion;/* NFSv4 minorversion */ unsigned int cl_nconnect; /* Number of connections */ unsigned int cl_max_connect; /* max number of xprts allowed */ - const char * cl_principal; /* used for machine cred */ + const char *cl_principal; /* used for machine cred */ struct xprtsec_parms cl_xprtsec; /* xprt security policy */ #if IS_ENABLED(CONFIG_NFS_V4) @@ -82,10 +82,10 @@ struct nfs_client { struct rpc_wait_queue cl_rpcwaitq; /* idmapper */ - struct idmap * cl_idmap; + struct idmap *cl_idmap; /* Client owner identifier */ - const char * cl_owner_id; + const char *cl_owner_id; u32 cl_cb_ident; /* v4.0 callback identifier */ const struct nfs4_minor_version_ops *cl_mvops; @@ -130,14 +130,14 @@ struct nfs_client { * NFS client parameters stored in the superblock. */ struct nfs_server { - struct nfs_client * nfs_client; /* shared client and NFS4 state */ + struct nfs_client *nfs_client; /* shared client and NFS4 state */ struct list_head client_link; /* List of other nfs_server structs * that share the same client */ struct list_head master_link; /* link in master servers list */ - struct rpc_clnt * client; /* RPC client handle */ - struct rpc_clnt * client_acl; /* ACL RPC client handle */ - struct nlm_host *nlm_host; /* NLM client handle */ + struct rpc_clnt *client; /* RPC client handle */ + struct rpc_clnt *client_acl; /* ACL RPC client handle */ + struct nlm_host *nlm_host; /* NLM client handle */ struct nfs_iostats __percpu *io_stats; /* I/O statistics */ atomic_long_t writeback; /* number of writeback pages */ unsigned int write_congested;/* flag set when writeback gets too high */