Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp42396pxb; Tue, 12 Apr 2022 16:15:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw45qp9BqLARkwj/Zq1ZWcGgvMCSWlLmAXkBj7762TjDOAt9W/RxfFqKPmrSXJZS4mA5p6w X-Received: by 2002:a17:902:d88a:b0:156:1609:1e62 with SMTP id b10-20020a170902d88a00b0015616091e62mr39826549plz.143.1649805303571; Tue, 12 Apr 2022 16:15:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649805303; cv=none; d=google.com; s=arc-20160816; b=bp83gO+7WWAjWG5WMdIwk9FXKoZ/4XUeT/tuR8HXJ0Ccj/zXyYvt9dAijApxTLfS7P da9hIbqT4XR4HRJq5zQ93P7aG7WG51FuLdt2gGtmqnPPsqwApP/I3eXCDpHlmKWSk/ze 7LqR1EZMEd63F25h36UwsKBHZxsKxhuNo+aN7RWhcnnfoO8iyTCI0eBNGKsBdoZh6RwG 4U/SkqQcjWijxKB6wyAcy6S/Ix43yi9K2OVgi1IW/OMgLIZHOkMg5FOeTugp1NzAq++Q HKxcOdeJm6IYxYHY6sVMFBwYKmN75j4VVAJf3ichPt3cSZhYKHglC1bSzzKe07Skfzjh C80A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=e3rfORwlh+GfqoV3kM6mCVh4CbmOsNbVFGcxLf2a93Y=; b=0dcI2nkIA85wqU+YgMEK+fFVXZAqhYvyTKZrv4aEIh12Bwd3H8BdMb/xcqQFs4li1B JBxjMhh49LPkujbF8n4xH+aVs3N7ArxfoI3P+pqWYJhKfGxKpxYjMOGdshM2J5T060LZ dOXd0xpnDFTTQeGoZojUjf67yt6R4usfCvrBWY2/4Kq4ppolOLvTh1VG5R4rz6bubMHo wYVyAngpdq/Tf7HENo1Vs03n67ej9QPI5soTl55GJysWJC2kxiJzxfrUmaQsFnfvzKbO BFy7s2Tn9m9hYpBMsRRVyKeFpi8H5PzZXwMuOsryOfwLBdKUUeLIhl7zPGyA589R00AS U05g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="tUzS/ZzN"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id u10-20020a170902e80a00b00156966c019bsi7033934plg.537.2022.04.12.16.15.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Apr 2022 16:15:03 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="tUzS/ZzN"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7CF7621590D; Tue, 12 Apr 2022 14:59:05 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346059AbiDKMam (ORCPT + 99 others); Mon, 11 Apr 2022 08:30:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51318 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346053AbiDKMal (ORCPT ); Mon, 11 Apr 2022 08:30:41 -0400 Received: from mail-pg1-x534.google.com (mail-pg1-x534.google.com [IPv6:2607:f8b0:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1F16039BA5 for ; Mon, 11 Apr 2022 05:28:27 -0700 (PDT) Received: by mail-pg1-x534.google.com with SMTP id k14so14089298pga.0 for ; Mon, 11 Apr 2022 05:28:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=e3rfORwlh+GfqoV3kM6mCVh4CbmOsNbVFGcxLf2a93Y=; b=tUzS/ZzNqMYlIK7xIRTzMRkB0E+u5pTIJc5hG2P+LzCVsM81KuY0HBTxPxRMvXMkzv oArvRyInh5BVoQ3NN8F1ULSlphST13oZQDkTAy7PISkJ/sw/GGwKDY73Ef1i6rS2/CQf fnZ2blBUbpt4VRCKuMf03pLBSIH/fOsSYSBaG23dUmknp/oe7F0mizwZhCJKFo1n6rwq sSIHsxmnjhbUHl3E/SkzJbB92zo11E2aDLbTndlxflxTwhBFLCLW0ELK+AXg30SA1Hhu qqK2l7tOTMABUv5l157AdADgW2SkC1fNQrZtWK1B/mWqqgrL9GWxiBaAfpv5IhGPnjOM gtVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=e3rfORwlh+GfqoV3kM6mCVh4CbmOsNbVFGcxLf2a93Y=; b=R4z2q6PiEd6OpME49jQlZ9SxzDtwmB23rJkjxrIIWQY8Jz3cuveBrUER3fvtrlPRpg DUOwWk3Icht9yKth0L79/8I6TuSgDfZywXo/mhiJQsLZ88MbM+aEfo4CUDsK2lavLwtu 6A3bieBg7S57pHk65KpHtPRhwLwwOHkuu6maZmBcxBXAITJz2YsCWc1VuXqajHGeAfpA jyXAcLAA9zZlSmGTrTb1do9wBASZOQQsAn2cmE8128ZqzywdY65JblyCQ/M1Tq/OX/qB SUYnSw327yN06/v6jqHr2MCDEZd9JjtmtzQvbetu4hv7TNEVvHhe0742Q4PYi4U0hlKq 7/Xg== X-Gm-Message-State: AOAM533Tr3PSTTwVK5iTmNoM9WXQbQSh3NSB5EP+QQa/NtR01mXKWl3H Qp/frxQNN1jrRv+2K2fKLFWpp3N8LjjX8W0xBELuyw== X-Received: by 2002:a65:6a97:0:b0:398:ae2:d207 with SMTP id q23-20020a656a97000000b003980ae2d207mr25656875pgu.197.1649680106538; Mon, 11 Apr 2022 05:28:26 -0700 (PDT) MIME-Version: 1.0 References: <20220321130341.935535-1-jens.wiklander@linaro.org> <20220321130341.935535-2-jens.wiklander@linaro.org> In-Reply-To: <20220321130341.935535-2-jens.wiklander@linaro.org> From: Sumit Garg Date: Mon, 11 Apr 2022 17:58:15 +0530 Message-ID: Subject: Re: [PATCH v2 1/4] optee: rename rpc_arg_count to rpc_param_count To: Jens Wiklander Cc: linux-kernel@vger.kernel.org, op-tee@lists.trustedfirmware.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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-kernel@vger.kernel.org On Mon, 21 Mar 2022 at 18:33, Jens Wiklander wrote: > > Renames the field rpc_arg_count in struct optee to rpc_param_count. > Function parameter names and local variables are also renamed to match. > > Signed-off-by: Jens Wiklander > --- > drivers/tee/optee/call.c | 6 +++--- > drivers/tee/optee/ffa_abi.c | 10 +++++----- > drivers/tee/optee/optee_private.h | 4 ++-- > 3 files changed, 10 insertions(+), 10 deletions(-) > Reviewed-by: Sumit Garg -Sumit > diff --git a/drivers/tee/optee/call.c b/drivers/tee/optee/call.c > index bd49ec934060..a9a237d20c61 100644 > --- a/drivers/tee/optee/call.c > +++ b/drivers/tee/optee/call.c > @@ -113,12 +113,12 @@ struct tee_shm *optee_get_msg_arg(struct tee_context *ctx, size_t num_params, > struct optee_msg_arg *ma; > > /* > - * rpc_arg_count is set to the number of allocated parameters in > + * rpc_param_count is set to the number of allocated parameters in > * the RPC argument struct if a second MSG arg struct is expected. > * The second arg struct will then be used for RPC. > */ > - if (optee->rpc_arg_count) > - sz += OPTEE_MSG_GET_ARG_SIZE(optee->rpc_arg_count); > + if (optee->rpc_param_count) > + sz += OPTEE_MSG_GET_ARG_SIZE(optee->rpc_param_count); > > shm = tee_shm_alloc_priv_buf(ctx, sz); > if (IS_ERR(shm)) > diff --git a/drivers/tee/optee/ffa_abi.c b/drivers/tee/optee/ffa_abi.c > index a5eb4ef46971..7686f7020616 100644 > --- a/drivers/tee/optee/ffa_abi.c > +++ b/drivers/tee/optee/ffa_abi.c > @@ -678,7 +678,7 @@ static bool optee_ffa_api_is_compatbile(struct ffa_device *ffa_dev, > > static bool optee_ffa_exchange_caps(struct ffa_device *ffa_dev, > const struct ffa_dev_ops *ops, > - unsigned int *rpc_arg_count) > + unsigned int *rpc_param_count) > { > struct ffa_send_direct_data data = { OPTEE_FFA_EXCHANGE_CAPABILITIES }; > int rc; > @@ -693,7 +693,7 @@ static bool optee_ffa_exchange_caps(struct ffa_device *ffa_dev, > return false; > } > > - *rpc_arg_count = (u8)data.data1; > + *rpc_param_count = (u8)data.data1; > > return true; > } > @@ -772,7 +772,7 @@ static void optee_ffa_remove(struct ffa_device *ffa_dev) > static int optee_ffa_probe(struct ffa_device *ffa_dev) > { > const struct ffa_dev_ops *ffa_ops; > - unsigned int rpc_arg_count; > + unsigned int rpc_param_count; > struct tee_shm_pool *pool; > struct tee_device *teedev; > struct tee_context *ctx; > @@ -788,7 +788,7 @@ static int optee_ffa_probe(struct ffa_device *ffa_dev) > if (!optee_ffa_api_is_compatbile(ffa_dev, ffa_ops)) > return -EINVAL; > > - if (!optee_ffa_exchange_caps(ffa_dev, ffa_ops, &rpc_arg_count)) > + if (!optee_ffa_exchange_caps(ffa_dev, ffa_ops, &rpc_param_count)) > return -EINVAL; > > optee = kzalloc(sizeof(*optee), GFP_KERNEL); > @@ -805,7 +805,7 @@ static int optee_ffa_probe(struct ffa_device *ffa_dev) > optee->ops = &optee_ffa_ops; > optee->ffa.ffa_dev = ffa_dev; > optee->ffa.ffa_ops = ffa_ops; > - optee->rpc_arg_count = rpc_arg_count; > + optee->rpc_param_count = rpc_param_count; > > teedev = tee_device_alloc(&optee_ffa_clnt_desc, NULL, optee->pool, > optee); > diff --git a/drivers/tee/optee/optee_private.h b/drivers/tee/optee/optee_private.h > index e77765c78878..e80c5d9b62ec 100644 > --- a/drivers/tee/optee/optee_private.h > +++ b/drivers/tee/optee/optee_private.h > @@ -143,7 +143,7 @@ struct optee_ops { > * @notif: notification synchronization struct > * @supp: supplicant synchronization struct for RPC to supplicant > * @pool: shared memory pool > - * @rpc_arg_count: If > 0 number of RPC parameters to make room for > + * @rpc_param_count: If > 0 number of RPC parameters to make room for > * @scan_bus_done flag if device registation was already done. > * @scan_bus_wq workqueue to scan optee bus and register optee drivers > * @scan_bus_work workq to scan optee bus and register optee drivers > @@ -161,7 +161,7 @@ struct optee { > struct optee_notif notif; > struct optee_supp supp; > struct tee_shm_pool *pool; > - unsigned int rpc_arg_count; > + unsigned int rpc_param_count; > bool scan_bus_done; > struct workqueue_struct *scan_bus_wq; > struct work_struct scan_bus_work; > -- > 2.31.1 >