Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp6406297pxb; Tue, 15 Feb 2022 01:33:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJx2kKViLt2rBYVG4XcnwVwcss3ajZXE4c/srct4aH+h6oGgbNn+X0cUlosToaQjvfuCbVJS X-Received: by 2002:a17:907:7286:: with SMTP id dt6mr2213409ejc.285.1644917628050; Tue, 15 Feb 2022 01:33:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644917628; cv=none; d=google.com; s=arc-20160816; b=lAY2URfAcsWEP82YunluP/1fdDACG5TT/GtMcpsrh4oYVciZGv48qbTY3UyRGa8Cct YrvFkLqvBz9mRclzskl5fVxLELv+Llql1DYe9rgINGFXaNOcwo/yKW/3QEOp/YQQG0DQ sRjaWmJIxxwkFyJEmSjLJELMq3HunDxrd5a6+uMe5N8bMcz1jE1tWvQDU/rfRZOUSASy Qm7l+kK9tI7ktdIapvhA4a2SHpTnAUEe2A1EmISc8LulxAvNmqmNMdFS7/AN1Vp8iBWM T0bzuOWNzqS4w9czE/KQgPB92zRb/hTnIpe0sp+eDrhXoUIS+TlBXiLfatUqMMLNKtCo 9CUQ== 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=xxNE0TFx978UWTdZuF/X+Zjl/Zu9B/EL8TKg3OsvIYY=; b=quQO+dOgHaCWrtZq3KCXTUcoFZl6H0EuNLNoQtnBwOI8bsU33lD3Di4EnjKpkms0Iw 1U1BKMoZrEKibq4NtpAorf15460smssOl/Sey8soW9Uhi5+5CiFupGVlTIHWeNUXWqHT dUPwWFGFYXWE0pg22Wno0gMG+Mzu20FPuG2pp99StGAIkeikUjwWkQ0eQ92uZVti2g+X z8AozrRqm358Kp22luh9fhqY8qdHSq/y1k+s30px2GY5u+cxnnbyvWezT8jEI8G4wdaY Z1QPJehZ99HJCoHY1NH9hBaD0N1Z+V8vETScQcHrgxG3J8qYBrAjVmFyWPBOoGYp0hVA v7AA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TwRuwjv5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hd15si11465060ejc.263.2022.02.15.01.33.25; Tue, 15 Feb 2022 01:33:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-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=@linaro.org header.s=google header.b=TwRuwjv5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233081AbiBOGuC (ORCPT + 99 others); Tue, 15 Feb 2022 01:50:02 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:60332 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231484AbiBOGuB (ORCPT ); Tue, 15 Feb 2022 01:50:01 -0500 Received: from mail-pf1-x432.google.com (mail-pf1-x432.google.com [IPv6:2607:f8b0:4864:20::432]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AFC3C13DD7 for ; Mon, 14 Feb 2022 22:49:52 -0800 (PST) Received: by mail-pf1-x432.google.com with SMTP id l19so27518614pfu.2 for ; Mon, 14 Feb 2022 22:49:52 -0800 (PST) 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=xxNE0TFx978UWTdZuF/X+Zjl/Zu9B/EL8TKg3OsvIYY=; b=TwRuwjv5NQx8hyoVuJc3q1UScxc4G6geUNNju6BBx3rxlr507gzM3/q+3cJRq7JbJL rQBa6ZMNFUY8R7ThS0GDaHZLiKeE3VSgPJqaRafTxyZF/RO5UsHOyPBZpfq9fyWkrN1X TQLns8TdWSW2uSYd5VdU8i+qeitKzOPpW4/AHK5wSG1zkHTuK+MaEFvV89tIE45FHH/I XNlNoDy2raD6uycXHzuYtzbAnAbiDV/kzVCyGijRuA8c8YATKYrLr9fPpjGkIp1Pf71K XNRqZxKfp/ges7iowGzN6LieEiYIUjEn/VhGBFPp/+vzqQ7DRPA4RYtB7mxTDBZLgIp0 V7mg== 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=xxNE0TFx978UWTdZuF/X+Zjl/Zu9B/EL8TKg3OsvIYY=; b=7c/zk/yyPwkp1pw/6yQQ7N0QDJq5u1a2CsqM9LvWq0cAnl1+v/4gwuj6lxxC8BsMWS icxg2gggW6UOXrqctfyyjuU095xg5/R5G2MWL8ZrAXIMJXD5fvDmk7V34VjwGU8ExVcZ SmlOPJ3l5b9yA361snV1GE0bfTT/FOnJxnK+GHnjwHQgwilQtzduE58q7Nhps1p3921G Uwtu8VIfmvZZBhOkpj3E/nIWCBGabvqADb0LKtDnMq+AepU1B8V9/q6USIio2FRBeBF1 wj/hhgRnMs3pFMB8KjwLEQm5HliomcqR7WlozclANWzwEcaMhUy+GRWYQQlOFKsrEaf3 MLFA== X-Gm-Message-State: AOAM531562NY5kcELynfnmGtrWxsvSEp40k0QoP0mLTOTZL9wJ0sZGC+ CErT8XqcnJk0t+JP9wh5uaQRtEyPqzK36kQ58O5q5g== X-Received: by 2002:a63:1518:: with SMTP id v24mr359768pgl.568.1644907792253; Mon, 14 Feb 2022 22:49:52 -0800 (PST) MIME-Version: 1.0 References: <20220209032745.38570-1-cai.huoqing@linux.dev> <302e8426-5a22-23dd-2b3b-7eb6d0ee2e8d@amd.com> In-Reply-To: <302e8426-5a22-23dd-2b3b-7eb6d0ee2e8d@amd.com> From: Jens Wiklander Date: Tue, 15 Feb 2022 07:49:41 +0100 Message-ID: Subject: Re: [PATCH] tee: amdtee: Make use of the helper macro LIST_HEAD() To: Rijo Thomas Cc: Cai Huoqing , Sumit Garg , Devaraj Rangasamy , Dan Carpenter , op-tee@lists.trustedfirmware.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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-kernel@vger.kernel.org On Wed, Feb 9, 2022 at 8:16 AM Rijo Thomas wrote: > > > > On 2/9/2022 8:57 AM, Cai Huoqing wrote: > > Replace "struct list_head head = LIST_HEAD_INIT(head)" with > > "LIST_HEAD(head)" to simplify the code. > > > > Signed-off-by: Cai Huoqing > > --- > > drivers/tee/amdtee/call.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/drivers/tee/amdtee/call.c b/drivers/tee/amdtee/call.c > > index 07f36ac834c8..cec6e70f0ac9 100644 > > --- a/drivers/tee/amdtee/call.c > > +++ b/drivers/tee/amdtee/call.c > > @@ -122,7 +122,7 @@ static int amd_params_to_tee_params(struct tee_param *tee, u32 count, > > } > > > > static DEFINE_MUTEX(ta_refcount_mutex); > > -static struct list_head ta_list = LIST_HEAD_INIT(ta_list); > > +static LIST_HEAD(ta_list); > > > > Reviewed-by: Rijo Thomas I'm picking up this. Thanks, Jens > > Thanks, > Rijo > > > static u32 get_ta_refcount(u32 ta_handle) > > { > >