Received: by 2002:a25:1104:0:0:0:0:0 with SMTP id 4csp115562ybr; Fri, 22 May 2020 02:23:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzA+XTE3Jk+os7+6o3HAaovu5EgTQwgxHE3Cr+Q3dMHwPBousOlxmXunhTw8+iEqI5XHT52 X-Received: by 2002:a17:906:fb15:: with SMTP id lz21mr6942548ejb.538.1590139428764; Fri, 22 May 2020 02:23:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590139428; cv=none; d=google.com; s=arc-20160816; b=CCpmyDc3dH3LdRlf5ajUjAnGfFTEji8XzaBAHa5lMlWP4NXEpE0lk/kTez4AtTJgNS j90x/tY0BwCindMvHpB9P2mFBxwb11rQVqNs7JRnjAV7JBaipzaKK02fNbIx00gGA8vK 7UBOsjOpQ5rrzD8DQmBt8xyn+4xOn5+m5JzByheG31IYTUyYuZWMKT9VGiLrF9C27h3j VHVsAUq+8ofYxSCrm1ktlSJknIy3TNhXqSxkYdHHPQNn4+Kp3ofWa628hVwTjIc9XPLR SbDjirFX08QLdev/vqvabmC3zYYOim+dmLRZmcH5ujDjHPYuV7t4g9x6oA9I7moa9lRi 3PcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:organization:in-reply-to :content-disposition:mime-version:references:mail-followup-to :message-id:subject:cc:to:from:date; bh=B6v3cdP2Ak6mtwlyIBeW9tkxC2QswATzrb8xQlE7q4g=; b=HF8jqk1e81GUv39RFsWmEK9t26amxqvXLNgRYsPZMgNECgVu1tyGyytfitj8xhgZGj XbOUk2kW7+gomgHpWW3IsLM6AAwXXKXCM79qSkqYuWTq7NY3cQjA2tUgG4PTw/Pcv1TE 6ksGSlcQIbqZDMeS/R9+YqsOYEWr3Keh5pcujjWLHlYjk4IIDb5p8AyotVvOtGA7Gx25 TvTUfDS4hvs8QRAKzeq+QgVmngD+brii17j0+yIX+fVHHgmPRIUKpLCxXi1Vmyf9eq2e rJyTx9Zcd3JFXhFYoB7Lbdw1EGJ9xe7IlFOmYo/BHJACy34a4TBJts9nJOajqChsNP1V RMQA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c15si4463967edm.218.2020.05.22.02.23.24; Fri, 22 May 2020 02:23:48 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729322AbgEVJVy (ORCPT + 99 others); Fri, 22 May 2020 05:21:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34192 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728068AbgEVJVx (ORCPT ); Fri, 22 May 2020 05:21:53 -0400 Received: from hera.aquilenet.fr (hera.aquilenet.fr [IPv6:2a0c:e300::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 53DDAC061A0E for ; Fri, 22 May 2020 02:21:53 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 1F7462D2B; Fri, 22 May 2020 11:21:50 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OYOLJKbB0yKe; Fri, 22 May 2020 11:21:48 +0200 (CEST) Received: from function (lfbn-bor-1-797-11.w86-234.abo.wanadoo.fr [86.234.239.11]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 3DEC82C0C; Fri, 22 May 2020 11:21:48 +0200 (CEST) Received: from samy by function with local (Exim 4.93) (envelope-from ) id 1jc3sA-00GDlb-Nu; Fri, 22 May 2020 11:21:46 +0200 Date: Fri, 22 May 2020 11:21:46 +0200 From: Samuel Thibault To: MugilRaj Cc: William Hubbs , Chris Brannon , Kirk Reiser , Greg Kroah-Hartman , speakup@linux-speakup.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] taging: speakup: remove volatile Message-ID: <20200522092146.6ijoma4re7ijai7a@function> Mail-Followup-To: Samuel Thibault , MugilRaj , William Hubbs , Chris Brannon , Kirk Reiser , Greg Kroah-Hartman , speakup@linux-speakup.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org 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> Organization: I am not organized User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, MugilRaj, le ven. 22 mai 2020 14:46:28 +0530, a ecrit: > fix checkpatch.pl warning, which is Use of volatile is usually wrong: see > Documentation/process/volatile-considered-harmful.rst Yes, but the proper fix is usually not to just remove the volatile qualifier, which will not fix anything and potentially break things. Fixing this requires really understanding what is at stake here, between the read_buff_add function and the use of synth_full(). That goes through interrupt handlers, tty disciplines, and the actual behavior expected by speakup. Not a simple task, henceforth :) > Signed-off-by: MugilRaj > --- > drivers/staging/speakup/speakup_decext.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/staging/speakup/speakup_decext.c b/drivers/staging/speakup/speakup_decext.c > index ddbb7e9..22baaeb 100644 > --- a/drivers/staging/speakup/speakup_decext.c > +++ b/drivers/staging/speakup/speakup_decext.c > @@ -21,7 +21,7 @@ > #define SYNTH_CLEAR 0x03 > #define PROCSPEECH 0x0b > > -static volatile unsigned char last_char; > +static unsigned char last_char; > > static void read_buff_add(u_char ch) > { > -- > 2.7.4 >