Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1955693AbdDZFjk convert rfc822-to-8bit (ORCPT ); Wed, 26 Apr 2017 01:39:40 -0400 Received: from szxga01-in.huawei.com ([45.249.212.187]:5800 "EHLO dggrg01-dlp.huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1035058AbdDZFjd (ORCPT ); Wed, 26 Apr 2017 01:39:33 -0400 From: "weiyongjun (A)" To: Vinod Koul CC: Wei Yongjun , Liam Girdwood , Mark Brown , Jaroslav Kysela , "Takashi Iwai" , Pardha Saradhi K , G Kranthi , Hardik T Shah , Jeeja KP , "alsa-devel@alsa-project.org" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH -next] ASoC: Intel: Skylake: Fix to use list_for_each_safe() when delete items Thread-Topic: [PATCH -next] ASoC: Intel: Skylake: Fix to use list_for_each_safe() when delete items Thread-Index: AQHSvXQDEp7MJg8QVkaPwiit8BRlSqHU7/eAgADIBFCAAOWMgIAAhjsA Date: Wed, 26 Apr 2017 05:39:06 +0000 Message-ID: <6AADFAC011213A4C87B956458587ADB47C853A@SZXEMI508-MBX.china.huawei.com> References: <20170425032817.21959-1-weiyj.lk@gmail.com> <20170425040035.GY6263@localhost> <6AADFAC011213A4C87B956458587ADB47BD834@SZXEMI508-MBX.china.huawei.com> <20170426053803.GE6263@localhost> In-Reply-To: <20170426053803.GE6263@localhost> Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.177.30.138] Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A020205.5900327E.00FC,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0, ip=169.254.9.187, so=2014-11-16 11:51:01, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: 0a89ffbeba25ee504f983f453ab72692 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1283 Lines: 36 > -----Original Message----- > From: Vinod Koul [mailto:vinod.koul@intel.com] > Sent: Wednesday, April 26, 2017 1:38 PM > To: weiyongjun (A) > Cc: Wei Yongjun ; Liam Girdwood > ; Mark Brown ; Jaroslav > Kysela ; Takashi Iwai ; Pardha Saradhi K > ; G Kranthi > ; Hardik T Shah > ; Jeeja KP ; alsa- > devel@alsa-project.org; linux-kernel@vger.kernel.org > Subject: Re: [PATCH -next] ASoC: Intel: Skylake: Fix to use > list_for_each_safe() when delete items > > On Tue, Apr 25, 2017 at 07:57:57AM +0000, weiyongjun (A) wrote: > > > > > > > > Since we will remove items off the list using list_del() we need > > > > to use a safe version of the list_for_each() macro aptly named > > > > list_for_each_safe(). > > > > > > ah yes, god catch > > > > > > > This is detected by Coccinelle semantic patch. > > > > > > It is a good practice to include the script you used, do you mind adding > > > that in the log? > > > > > > > Sure. > > Sorry I meant this should be in changelog of the patch :) OK, I will add this and send the v2 version patch later.