Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5121171pxj; Wed, 9 Jun 2021 09:35:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxXPup3cZ5lZPY6DLm/5iZoKAXQGmjeMiZavDN3JICPyzXRPxhNyPYSY1oUGfYbsiejVXgB X-Received: by 2002:a17:906:c311:: with SMTP id s17mr742219ejz.202.1623256520681; Wed, 09 Jun 2021 09:35:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623256520; cv=none; d=google.com; s=arc-20160816; b=dFajkp+JiIbmq2LoXbVGPmG4EoJI2fF4Av5O3Ebez+3EOSIK4d3fl3bpQ9HTsnsJaM zfz8f49xUFC9Joo+yd810sUQjKI966Vk2ly8ZbYZh5DdmteE5ySJJl3M2eaLHOqScQjd hH+OnXcnmW1NZE6CSrvCcAhrJsfqDRKz805SndocMnR7sowhaqn6Kv1V50svmyxcZ3W+ x8TM+BsweelT5CCxI4WHYbDR7pqFq5t0TrAIw4kF3F0+0m1I8+/JEJb7Q7/PBTfOLPm+ bn9IXDUn+XCdoby6dt1/33vg5cinkq4Y6Ye7FNW+mS99KfWuKzIVYTwY2y5vKGmNBNhf pzFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=7A8Lzx3JNH8Knej0LOZp8Se8zAT8/K4eSFY+BUYCn+Y=; b=rJIrUFqzaMBcfumnFsMfJ9nZ6n2ouroBj/TD2X/mvTAXW/oP3J0L13NmPcXjJM8nKq Y9ss0KFTwNxPCBwWDqjIpVGqPCsYrvsov4oIW/nP5NNjOsLHREPqAQGI/yzIrH4RuROd lULWUCigCXXFE8B6Xl9BW7w+4mKCfXZ8jUSO7UCu3w4p4IEjVY7dNGCl+Lodw9mSN7FZ eRUoPTNcVM+K7b+Qui6wUS7DwMlMPBYCDr+/KvxKcs+FG4D/IrPna1TMnELyQBpdrBio i61ad+ToGmszMEeT3kvT+7AXV8ZKjoORynASs+jKwAs2oVUEsRWWIN6fZYzEcfrKY+7c xq2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=XoqsOIZE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id os28si255810ejb.695.2021.06.09.09.34.56; Wed, 09 Jun 2021 09:35:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=XoqsOIZE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236543AbhFIQBB (ORCPT + 99 others); Wed, 9 Jun 2021 12:01:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59040 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233575AbhFIQBA (ORCPT ); Wed, 9 Jun 2021 12:01:00 -0400 Received: from mail-pl1-x62b.google.com (mail-pl1-x62b.google.com [IPv6:2607:f8b0:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0EFF0C061574 for ; Wed, 9 Jun 2021 08:59:06 -0700 (PDT) Received: by mail-pl1-x62b.google.com with SMTP id v12so12750509plo.10 for ; Wed, 09 Jun 2021 08:59:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to; bh=7A8Lzx3JNH8Knej0LOZp8Se8zAT8/K4eSFY+BUYCn+Y=; b=XoqsOIZEl68LpLTfHhMfg6Kdu8VFMUUT8kjlmo1E5DmeORCfJL3+p/yhpzoRgoq9Py Bkt4iIXQ8M3AEKJrV3LogcjfdwISrr2t7JcK3czokPfCQulLF8JGJsGPqmHbMiZzM9Wj tKlR+fiYt8Pf1ob7ycblioULBT1erwj2It6MI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to; bh=7A8Lzx3JNH8Knej0LOZp8Se8zAT8/K4eSFY+BUYCn+Y=; b=kRSOxKxm3fDahoAEopXmApjqIvU2szU24gtR0VWtgcUZ+TEzsdKL4uwdbiBPZQT/mn CB8nbLqbWD1xNSYCAX6RyFrIYaFVd6hOeJ6aL7Diey/GEJMlyF+LIiV5vKp+/of5Raza LbMUCmd+Yr+NcYJyOZEjD2h+MIuE26D0VV3LJqfJC/3BNWPdNoy/TvycX2TcoMLH2NdZ GtX7Co1lts4XaVa9WQ40O54SF7D8e9gZew7gZ1kVO/gwrboNcUgrClVt6Cw9ZzVp2+yF HgcTyCzWjuiqcfAf0ENGAYgmHUYknXABUkiNk14US3vW8p37m5/Hi2J5BDJVAEsTg1qs JcDQ== X-Gm-Message-State: AOAM5313mfzN56IYL1twirCPHyonDpEYFkStBSJRAUAX4ZckfhRaCfDG /gxn7sn1H+B5iBABXSApm2YSBw== X-Received: by 2002:a17:902:b288:b029:111:4a4f:9916 with SMTP id u8-20020a170902b288b02901114a4f9916mr424778plr.24.1623254345393; Wed, 09 Jun 2021 08:59:05 -0700 (PDT) Received: from lbrmn-lnxub113.ric.broadcom.net ([192.19.228.250]) by smtp.gmail.com with ESMTPSA id q68sm5637631pjq.45.2021.06.09.08.59.03 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 09 Jun 2021 08:59:04 -0700 (PDT) Subject: Re: [PATCH -next v2] misc: bcm-vk: use list_move_tail instead of list_del/list_add_tail in bcm_vk_msg.c To: Baokun Li , linux-kernel@vger.kernel.org, Arnd Bergmann , Greg Kroah-Hartman Cc: weiyongjun1@huawei.com, yuehaibing@huawei.com, yangjihong1@huawei.com, yukuai3@huawei.com, bcm-kernel-feedback-list@broadcom.com, kernel-janitors@vger.kernel.org, Hulk Robot , desmond.yan@broadcom.com References: <20210609071430.1337400-1-libaokun1@huawei.com> From: Scott Branden Message-ID: Date: Wed, 9 Jun 2021 08:59:02 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20210609071430.1337400-1-libaokun1@huawei.com> Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-256; boundary="000000000000a9d85905c4575ad4" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --000000000000a9d85905c4575ad4 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit On 2021-06-09 12:14 a.m., Baokun Li wrote: > Using list_move_tail() instead of list_del() + list_add_tail() in bcm_vk_msg.c. > > Reported-by: Hulk Robot > Signed-off-by: Baokun Li Acked-by: Scott Branden > --- > V1->V2: > CC mailist > > drivers/misc/bcm-vk/bcm_vk_msg.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/drivers/misc/bcm-vk/bcm_vk_msg.c b/drivers/misc/bcm-vk/bcm_vk_msg.c > index 6efc52b49af6..066b9ef7fcd7 100644 > --- a/drivers/misc/bcm-vk/bcm_vk_msg.c > +++ b/drivers/misc/bcm-vk/bcm_vk_msg.c > @@ -354,8 +354,7 @@ static void bcm_vk_drain_all_pend(struct device *dev, > for (num = 0; num < chan->q_nr; num++) { > list_for_each_entry_safe(entry, tmp, &chan->pendq[num], node) { > if ((!ctx) || (entry->ctx->idx == ctx->idx)) { > - list_del(&entry->node); > - list_add_tail(&entry->node, &del_q); > + list_move_tail(&entry->node, &del_q); > } > } > } > --000000000000a9d85905c4575ad4 Content-Type: application/pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIIQcAYJKoZIhvcNAQcCoIIQYTCCEF0CAQExDzANBglghkgBZQMEAgEFADALBgkqhkiG9w0BBwGg gg3HMIIFDTCCA/WgAwIBAgIQeEqpED+lv77edQixNJMdADANBgkqhkiG9w0BAQsFADBMMSAwHgYD VQQLExdHbG9iYWxTaWduIFJvb3QgQ0EgLSBSMzETMBEGA1UEChMKR2xvYmFsU2lnbjETMBEGA1UE AxMKR2xvYmFsU2lnbjAeFw0yMDA5MTYwMDAwMDBaFw0yODA5MTYwMDAwMDBaMFsxCzAJBgNVBAYT AkJFMRkwFwYDVQQKExBHbG9iYWxTaWduIG52LXNhMTEwLwYDVQQDEyhHbG9iYWxTaWduIEdDQyBS MyBQZXJzb25hbFNpZ24gMiBDQSAyMDIwMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA vbCmXCcsbZ/a0fRIQMBxp4gJnnyeneFYpEtNydrZZ+GeKSMdHiDgXD1UnRSIudKo+moQ6YlCOu4t rVWO/EiXfYnK7zeop26ry1RpKtogB7/O115zultAz64ydQYLe+a1e/czkALg3sgTcOOcFZTXk38e aqsXsipoX1vsNurqPtnC27TWsA7pk4uKXscFjkeUE8JZu9BDKaswZygxBOPBQBwrA5+20Wxlk6k1 e6EKaaNaNZUy30q3ArEf30ZDpXyfCtiXnupjSK8WU2cK4qsEtj09JS4+mhi0CTCrCnXAzum3tgcH cHRg0prcSzzEUDQWoFxyuqwiwhHu3sPQNmFOMwIDAQABo4IB2jCCAdYwDgYDVR0PAQH/BAQDAgGG MGAGA1UdJQRZMFcGCCs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