Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp1226704rwi; Thu, 3 Nov 2022 02:44:49 -0700 (PDT) X-Google-Smtp-Source: AMsMyM42JPk1dJZs7A+X1n9qkRzCqhZnhw7r7cHnasem0/OoVOJ1dDZg3R2uaDSyJvwUqwWoW2v+ X-Received: by 2002:a17:906:5dcc:b0:78d:fb98:6f85 with SMTP id p12-20020a1709065dcc00b0078dfb986f85mr29485144ejv.123.1667468688740; Thu, 03 Nov 2022 02:44:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667468688; cv=none; d=google.com; s=arc-20160816; b=iplRDGjTjkFxS1B8v8aWi4EUWTxMvwscKpubDJZC/IwCDlcWc1ZbUcAn+AyvmGEzUi Jas15mLW+3dFgZzM8Wc8DYD+j47EnYpdGR9II8daXjV18ALRTy3LctXa7aKcm7262KG2 aB2QExpyAnD9KEFtxMywD4sgc2nEfaP1TCfqk499Zxx7WRP/ajPBhVtJIda6+aXMqWVE iOwpAv/nYiBisZCL3ZJ2OiG/fHiBUuFMq8SD6UmRehA2i+j7rJMtoI9Ud7WVRzGBiWAS +DHiG2ZPUFe8dWQpCQSEerDrdfy9Mtn0OGJBNY3pH3r5JcmqfcRh479NTtCEza3ctTg9 EreA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=DI3/JcjMYWC7RpkEjo0xiLN9TjeZgjpVeP6KlF+ve4o=; b=RjIn2dh8WKgUyDZmibS5CYChnTgXVp9w5+FzpOZkeh/4o0cdprEE5alOgJb1sr3Vx3 I/AVaDE9yauIfZjtuTsV31tPrknUZc1pzWdlakeNygi/NB5anA96ZPQzVbZs3GCbh/QV AIOacTJZ95SoNbUmydCGtEU7kFG0NUVzDEWkKfPE1Iu+hZkgrTqwoVHqokEWJMpNE9Qb 3FXqefdMghdnJn//OzS9ALvxjQKTz+597G4RyKIK6CmMUBI7WVX9y+UIDa/R9P0fTsc6 HbLjGzODVe08pBQRsq6oGH+etJU3+5TQ3yQSnHRJE1hB9buY6E2dYLtLj9GE3tpIX+4H aorg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=t8PHRGgi; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ne11-20020a1709077b8b00b007833cbbb747si795176ejc.578.2022.11.03.02.44.06; Thu, 03 Nov 2022 02:44:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=t8PHRGgi; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230301AbiKCJoB (ORCPT + 99 others); Thu, 3 Nov 2022 05:44:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54870 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230324AbiKCJn7 (ORCPT ); Thu, 3 Nov 2022 05:43:59 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0B35DE000; Thu, 3 Nov 2022 02:43:58 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 98C5961DE9; Thu, 3 Nov 2022 09:43:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 563B0C433D7; Thu, 3 Nov 2022 09:43:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1667468637; bh=XzEvIrX1GsJ9EJXjvZzaDHnIgE7EMAXUzm9XgvvGA7Q=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=t8PHRGgiyQduCdaSCfdlX7Pcura6DQWd5KeEQhVc8rr1ozBzsuw+z4zbTe9DGy6dc isIQI+INlKVjQW7nbmAxU+qC0ub2oiZcbZXSblzBXokVY15hsCfBtcJzScFPn4/tTJ +jtLjI6UVhzhSdWMvOtKM8EhyGeikyrSxE0ynWOLPlV4fyryKNGaccc1tcTZrII7V4 1qOCGg5IrEiSQPWsdGc5N2MXB84QJWUz1rHk2hAPKRb+H+oAMDYHs2+uB1gjK+i+J8 f3+PeJ2AyrwvgXr+twxTipCh4fXOwDttYxBWmmO2i6U3eZeK5MUIOT8Uz3Sh31me58 2aFSSFU7GLdGw== Message-ID: <6e67efff3f5f72d7bcdf90b972cd758e0e98e853.camel@kernel.org> Subject: Re: [PATCH] sunrpc: svc: Remove unnecessary (void*) conversions From: Jeff Layton To: Li zeming , chuck.lever@oracle.com, trond.myklebust@hammerspace.com, anna@kernel.org Cc: linux-nfs@vger.kernel.org, linux-kernel@vger.kernel.org Date: Thu, 03 Nov 2022 05:43:55 -0400 In-Reply-To: <20221103013510.3062-1-zeming@nfschina.com> References: <20221103013510.3062-1-zeming@nfschina.com> Content-Type: text/plain; charset="ISO-8859-15" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.4 (3.44.4-2.fc36) MIME-Version: 1.0 X-Spam-Status: No, score=-8.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Thu, 2022-11-03 at 09:35 +0800, Li zeming wrote: > The iov_base pointer does not need to cast the type. >=20 > Signed-off-by: Li zeming > --- > include/linux/sunrpc/svc.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/include/linux/sunrpc/svc.h b/include/linux/sunrpc/svc.h > index daecb009c05b..4b0eead91c94 100644 > --- a/include/linux/sunrpc/svc.h > +++ b/include/linux/sunrpc/svc.h > @@ -222,7 +222,7 @@ static inline __be32 svc_getu32(struct kvec *iov) > =20 > static inline void svc_ungetu32(struct kvec *iov) > { > - __be32 *vp =3D (__be32 *)iov->iov_base; > + __be32 *vp =3D iov->iov_base; > iov->iov_base =3D (void *)(vp - 1); > iov->iov_len +=3D sizeof(*vp); > } Reviewed-by: Jeff Layton