Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp2271271ybx; Fri, 8 Nov 2019 02:07:28 -0800 (PST) X-Google-Smtp-Source: APXvYqyCXodEX8hGu/55J1tD9cU7+a3DeCJ3oCGhOi4aw5bqZB2MF+ymWfvlznnjZ6Lk00FWjwn+ X-Received: by 2002:a17:906:7e08:: with SMTP id e8mr7895859ejr.199.1573207648096; Fri, 08 Nov 2019 02:07:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573207648; cv=none; d=google.com; s=arc-20160816; b=j7CMS3M+itKKYsjWWl4tI89RjT2LQNNqSRJr+P6my5pbVLR4b8Oue6t718X8z5HTSO Ij79ndDmpxBrSsZD2qvbBdMQTiBtqXQX0YrSNglnqNG8lzYRWqqmWXT8CwrNXUz5UckJ G0QzjYTm2o8jvMYhKqkrqaqV7LjX9c9sw/szjn9PSYXFCGLgsXUUSEZPtFoAA18U3mox UqRxFJC6cw5EsQNe4fiQGNJ1RezGOHShywVrr/KcarhK7Vp9xtrAJl3S2k9RrXUlvHCo i1FbQvvTQino/JnWcTJuJJNA81JB75IQNjtTZcBGI5xZl1TbhSMKq5++xQt/6Qpnkowq SlMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=lC6Rkjy3TVUxRx/UkJEpYp4pAS/Xsi+0+ID04N6qrLk=; b=L5WyTHZQzVSkOXWBIzj+AKwUIq//mBRtPs0jFX60sbbxdFiS/rIKG+CMWGtOoIV49N DFRlAlNjxcO5+ohuNpOR1QV/waE47GPXHls4guI4wezXfU46gKsOWJW22EQfkBR+bfJ5 UzbuJqydZOlirGqO8sxCxWRCc5Khe312k+W8byRH2XyqkchJ34UWcUBi3njC9XtmRql/ zuoK5HilFOV1rYWtPGMfTP5zqWc/hYOXWIR5N2UOXSrk8WfpM0XVya36VJ3abwvcNNyX UrCNn3TxP8pskNKHtB6MFHNp68Qh08lObHBQSEgiSNrk0EvStB90HtRKB1o4eOmCFrbS pJJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2019-08-05 header.b=c6h9rDXp; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id gw9si3488872ejb.284.2019.11.08.02.07.01; Fri, 08 Nov 2019 02:07:28 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2019-08-05 header.b=c6h9rDXp; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731028AbfKHKGU (ORCPT + 99 others); Fri, 8 Nov 2019 05:06:20 -0500 Received: from userp2120.oracle.com ([156.151.31.85]:59908 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729873AbfKHKGU (ORCPT ); Fri, 8 Nov 2019 05:06:20 -0500 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.27/8.16.0.27) with SMTP id xA8A4x9I001795; Fri, 8 Nov 2019 10:05:56 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=corp-2019-08-05; bh=lC6Rkjy3TVUxRx/UkJEpYp4pAS/Xsi+0+ID04N6qrLk=; b=c6h9rDXpTZeTKMt/UAHRyxcJCa3LmlwbmCwd3WfWT2FHiYjk9b1XuIHdE+Q9e+VWtEa9 cBwQJ90CMjAzOilomMcgaXlZM2CcAhKXaFG9Nu6xmT/tGj6fBwqh1H908Lk6OwrZs7zU dUE9VNd2TVaBl1NGzbdqQV9MgRyaagI1EnQyq2rooCQroHr7kutic8477Jnb3E9gPOcI rha2gZSs2A8wjG0Uk011O0sGiWgX2KX/Y899/tCLcEcTkhmVjhqVSj4WhUMMiUqrtuZR s7I1Ydxoioxw7fFsMY0pYFCL1iHSK8Z0Dyz3QD3KVgQOZLnkjq/VgTk3S18UJZn8+Ao6 KA== Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by userp2120.oracle.com with ESMTP id 2w41w14btb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 08 Nov 2019 10:05:56 +0000 Received: from pps.filterd (aserp3030.oracle.com [127.0.0.1]) by aserp3030.oracle.com (8.16.0.27/8.16.0.27) with SMTP id xA8A4Iq9024070; Fri, 8 Nov 2019 10:05:55 GMT Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserp3030.oracle.com with ESMTP id 2w41whcqwd-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 08 Nov 2019 10:05:55 +0000 Received: from abhmp0009.oracle.com (abhmp0009.oracle.com [141.146.116.15]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id xA8A5rF7005134; Fri, 8 Nov 2019 10:05:54 GMT Received: from kadam (/41.57.98.10) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 08 Nov 2019 02:05:52 -0800 Date: Fri, 8 Nov 2019 13:05:40 +0300 From: Dan Carpenter To: Mathieu Poirier Cc: Wei Yongjun , Suzuki K Poulose , Alexander Shishkin , Yabin Cui , linux-arm-kernel , Linux Kernel Mailing List , kernel-janitors@vger.kernel.org Subject: Re: [PATCH -next] coresight: replicator: Fix missing spin_lock_init() Message-ID: <20191108100540.GQ10409@kadam> References: <20191106115651.113943-1-weiyongjun1@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9434 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1910280000 definitions=main-1911080099 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9434 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1910280000 definitions=main-1911080099 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 07, 2019 at 11:47:11AM -0700, Mathieu Poirier wrote: > On Wed, 6 Nov 2019 at 04:57, Wei Yongjun wrote: > > > > The driver allocates the spinlock but not initialize it. > > Use spin_lock_init() on it to initialize it correctly. > > > > This is detected by Coccinelle semantic patch. > > > > Fixes: 0093875ad129 ("coresight: Serialize enabling/disabling a link device.") > > Signed-off-by: Wei Yongjun > > --- > > drivers/hwtracing/coresight/coresight-replicator.c | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/drivers/hwtracing/coresight/coresight-replicator.c b/drivers/hwtracing/coresight/coresight-replicator.c > > index 43304196a1a6..e7dc1c31d20d 100644 > > --- a/drivers/hwtracing/coresight/coresight-replicator.c > > +++ b/drivers/hwtracing/coresight/coresight-replicator.c > > @@ -248,6 +248,7 @@ static int replicator_probe(struct device *dev, struct resource *res) > > } > > dev->platform_data = pdata; > > > > + spin_lock_init(&drvdata->spinlock); > > I have applied both patches but removed the "Fixes" line since the > commit is only visible in my local coresight next tree. > Unless you rebase the tree, then the Fixes tag will still be valid. (Probably local implies you rebase it I guess). regards, dan carpenter