Received: by 2002:a25:1104:0:0:0:0:0 with SMTP id 4csp161302ybr; Fri, 22 May 2020 03:38:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwasWd9lyGBow3dHV3Lt8km8LzQrbHHhLUvI8jLB6x2IexJKQgyGke7P/DmhdRDnJHSfxgU X-Received: by 2002:a50:ee1a:: with SMTP id g26mr2383724eds.18.1590143930054; Fri, 22 May 2020 03:38:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590143930; cv=none; d=google.com; s=arc-20160816; b=oUBP/CugRAK/YBXRgcokuz+oLLB18MfPQx8cHvgJmgHYNCbLkVG9Yrj+Ll8d7vrIZT CiWYUIp58CVXsV8LE1ElOQuZPOydojYX5KWG6j//eIhZrNP2w7KWgAeg+7VxKMzz9hY0 UDq3V3wGGfKCmgXDAt9iHu/wuiTG5/p+BwzrPg4X1PmYP5cqn2Vf6CZYHQcH8IPm9DNj fEBbW3KYL6rfm8RVwkPYf/l66Ca96m44T+JWn2v6dnWZvhezMWLDX6qAkXr0ekmQm5Nd 4uEb0m4j19Fq3/FerehjBV+Gedcir7APP37FfeHrjvL8P4SrJVlvZI1FQYzSRti2CNCg Solw== 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=K27L96mmV4GmzDbNladkq7oBFSKsiC4OG9GSzTfY0Ak=; b=EV/GRBZBQ9fPk6KW5fg0ZQ55AcMATDaOPgOMSlZZ++tzjhheB9Az3r/tDX6KVK5FIP CesCd9PtVd68MQBLAq8u01xObP4TNYESf+A0Cguv6kzcY8A6565Edktlg+4mwXxQadIK fflgT53wubwOUe5xjv53U88l0iMNt7zpHAje1igtMnA53DsLpE3LOyZ2qSysojoPwqyf /9bLKvytAFs/eP8Vm/haqQT7Fbvi+bCJ0nVUpv0Mz45e7ixSp1bR552pehLXixBjJXEx /rqMje5dvdvSbIkRi9rY707wLhL//czV2onx2JP7iOcfAkYuv6HbHKUCy8g9u3PsCA9g EIWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=BCpOf+BK; 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=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j18si4354096edq.98.2020.05.22.03.38.25; Fri, 22 May 2020 03:38:50 -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=@oracle.com header.s=corp-2020-01-29 header.b=BCpOf+BK; 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=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728657AbgEVKgm (ORCPT + 99 others); Fri, 22 May 2020 06:36:42 -0400 Received: from userp2130.oracle.com ([156.151.31.86]:48602 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728362AbgEVKgm (ORCPT ); Fri, 22 May 2020 06:36:42 -0400 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 04MAXNnw065360; Fri, 22 May 2020 10:36:21 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-2020-01-29; bh=K27L96mmV4GmzDbNladkq7oBFSKsiC4OG9GSzTfY0Ak=; b=BCpOf+BKx5AqZuHLlQvpkhfyOOlTJ2mOxlBW1TFVIzh3GdXhVWby1IxuqOq2J6Cgikvc 1nHdQ4FRh1opqD1mtvnxyWpkK/lazqvA81Szytq3Ifor6fXs8He485Rnc8G6DHdX2nKb 1Ak9x9YzyG5Zp9q+SFPzcYI1UJJIBPgAEmebcDCO+s9KyKjGqHf9oZJsVMXLbfUEAydH k3iOGswe2xdTMG6Rw3yq1wfRz2y741cauIcTPbLUg7yUA/27cMssCgL+KzkZxn6sD5Q2 T6LsQgjKIkTUhHh+m+NKIxbJer/YFT4t+/dqxfp6FBbj9pgj/Gqh628O/TpAJMRo2it2 +Q== Received: from aserp3020.oracle.com (aserp3020.oracle.com [141.146.126.70]) by userp2130.oracle.com with ESMTP id 3127krn4hb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 22 May 2020 10:36:21 +0000 Received: from pps.filterd (aserp3020.oracle.com [127.0.0.1]) by aserp3020.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 04MAXGkp165946; Fri, 22 May 2020 10:34:20 GMT Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserp3020.oracle.com with ESMTP id 312t3e55g5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 22 May 2020 10:34:20 +0000 Received: from abhmp0016.oracle.com (abhmp0016.oracle.com [141.146.116.22]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id 04MAYEBO031342; Fri, 22 May 2020 10:34:17 GMT Received: from kadam (/41.57.98.10) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 22 May 2020 03:34:13 -0700 Date: Fri, 22 May 2020 13:34:07 +0300 From: Dan Carpenter To: MugilRaj Cc: devel@driverdev.osuosl.org, Kirk Reiser , Greg Kroah-Hartman , speakup@linux-speakup.org, linux-kernel@vger.kernel.org, Samuel Thibault , Chris Brannon Subject: Re: [PATCH] taging: speakup: remove volatile Message-ID: <20200522103406.GK30374@kadam> References: <1590138989-6091-1-git-send-email-dmugil2000@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1590138989-6091-1-git-send-email-dmugil2000@gmail.com> User-Agent: Mutt/1.9.4 (2018-02-28) X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9628 signatures=668686 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 spamscore=0 mlxlogscore=788 phishscore=0 mlxscore=0 malwarescore=0 suspectscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2004280000 definitions=main-2005220086 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9628 signatures=668686 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 phishscore=0 spamscore=0 bulkscore=0 clxscore=1011 priorityscore=1501 mlxscore=0 impostorscore=0 suspectscore=0 mlxlogscore=822 malwarescore=0 cotscore=-2147483648 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2004280000 definitions=main-2005220086 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 22, 2020 at 02:46:28PM +0530, MugilRaj wrote: > fix checkpatch.pl warning, which is Use of volatile is usually wrong: see > Documentation/process/volatile-considered-harmful.rst > Signed-off-by: MugilRaj Please put a blank before the Signed-off-by line. Probably there should be a space between your first and last name. It's supposed to your legal name like for signing a legal document so use whatever is appropriate legal documents in your country. Also the Documentation/process/volatile-considered-harmful.rst explains that people often use "volatile" when they should be using locking for synchronization. That seems to be the case here. So the correct fix is to add locking. That's a little bit complicated to do and requires testing. If we apply this patch, then we have silenced the warning so now someone will have to look for the bug. But if we leave it as-is, then everyone will know that the code is buggy. So let's leave it as-is until we are able to fix the bug. It's always better to have easy to find bugs, than hidden bugs. regards, dan carpenter