Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp2283830rwn; Fri, 9 Sep 2022 11:06:20 -0700 (PDT) X-Google-Smtp-Source: AA6agR6rv/BtucGyq8nDHVVLIiCivNCBYu3BX/gGFosw9D+WAxrtBllLRcun1KVqJiXpBD1atFwl X-Received: by 2002:a17:906:9fc1:b0:761:9192:504f with SMTP id hj1-20020a1709069fc100b007619192504fmr10619596ejc.116.1662746780428; Fri, 09 Sep 2022 11:06:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662746780; cv=none; d=google.com; s=arc-20160816; b=mW1ToBCCyptVCwMN6Rs48N/vZonEDhbwQVGHjEdHKVH6f85GQFKPQQJivuTOuY1Acy 13VOTYxfjJ2eR4JO54oNq/vnlh4gNSGruDgrr2LAhwLyRjqboqAUR0564UR5QdfV+Bib 7R/W3TMOvaEsG5CFbzxSoQVzvnXMtucteB+/MLf4lrJDEOX30Illx4GmlUCFTAp69T+6 G61ZAmwGDK6k8K1UDI2pCjpjhZ4CQItV/eMzcNKn7Sk18Dnn806ig9DAbSodL/kPmU6b mJ1QJWveJuPHhcsKkUNYod0izL4WQNh52dMRCpi8Z4jBXVeDrMlQ8yAG9yLjByKA7zmQ 2x0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=J2i3AyaadyP+4HnNntF5NYDCGnkoTQkoypL6i5Rt7wc=; b=lRF9NFiDSpP5YUVO3KxycJliVfCnQugI8ZadoOezDZNY+HK+RWCHwsAKyYnubW+Kau lkIWfI6DFrvc+hUIy1dTMXHdz9H7SrgXY+mhWCq5qXE7POQXNmWb0wisfjtilvamhe9l VdFKzCK9iVYjAA0ArOD/u6uWkUgx50wlw+E4U+eG+9zfhr3s+my1utGbzfwXOHCtIxHW uz6HN8kX3nlaFklVBjh8WTsan96qJjOXzTAuXQo/oupb50VzvimcypLtiYLLApuP85GW khhei3mZjsotSDsDFO/ydjptKqE/RVa4KG7qjdPXgelBWaGdtWC1a8lPV8O7UhboG02H dveg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=fsKTJb6O; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qk8-20020a1709077f8800b00731335b93e9si1175996ejc.354.2022.09.09.11.05.53; Fri, 09 Sep 2022 11:06:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=fsKTJb6O; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229582AbiIISDQ (ORCPT + 99 others); Fri, 9 Sep 2022 14:03:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50044 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229491AbiIISDP (ORCPT ); Fri, 9 Sep 2022 14:03:15 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 41DF4B656C for ; Fri, 9 Sep 2022 11:03:14 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id A4C2FCE240A for ; Fri, 9 Sep 2022 18:03:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 63094C433D6; Fri, 9 Sep 2022 18:03:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1662746590; bh=bQwRnD4uoR7miTObIoza35eZR6TgzD9lzCalStKcSl8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=fsKTJb6OE8cnezYVusd+lWkGgVoJ8z+sAYkfLYTwON64B+I5lX+MDDri+LTLMPPER BahO2HIzQMPo8nYnhkAe8Kuta6NH8YIQy8rI8DUa6zoUr5dpwTCquZTIYfEJwqhciP nGHZ2f/+Nb9+a1vfmTR3ktIWMtdf+QZGlCu1AgcU= Date: Fri, 9 Sep 2022 20:03:08 +0200 From: Greg KH To: Nam Cao Cc: forest@alittletooquiet.net, linux-kernel@vger.kernel.org, linux-staging@lists.linux.dev Subject: Re: [PATCH v3 1/2] staging: vt6655: remove unnecessary volatile qualifier Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 09, 2022 at 02:17:55PM +0200, Nam Cao wrote: > Remove volatile qualifier for the member rd0 of struct vnt_rx_desc, > because there is no reason it must be volatile. > > Signed-off-by: Nam Cao > --- > drivers/staging/vt6655/desc.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/staging/vt6655/desc.h b/drivers/staging/vt6655/desc.h > index 17a40c53b8ff..3f0f287b1693 100644 > --- a/drivers/staging/vt6655/desc.h > +++ b/drivers/staging/vt6655/desc.h > @@ -182,7 +182,7 @@ struct vnt_rdes1 { > > /* Rx descriptor*/ > struct vnt_rx_desc { > - volatile struct vnt_rdes0 rd0; > + struct vnt_rdes0 rd0; You can not just remove this without describing _WHY_ it is ok to do so. Have you properly determined why it is, or is not, ok to use volatile here? And if so, why are you leaving: > volatile struct vnt_rdes1 rd1; > volatile __le32 buff_addr; > volatile __le32 next_desc; Those? Please read up on why volatile almost never makes any sense in the kernel (note, sometimes it does), and please write a better changelog text for when you submit the next version of this patch series. thanks, greg k-h