Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp3918806rwn; Sun, 11 Sep 2022 00:54:17 -0700 (PDT) X-Google-Smtp-Source: AA6agR5ARTuScNOnaTLHOv46axk9cCQqF3wRUU6fxl/QI9t5PmyDoTWB1ulMdFSIusazgloHR133 X-Received: by 2002:a17:90a:1c02:b0:1e0:df7:31f2 with SMTP id s2-20020a17090a1c0200b001e00df731f2mr17664249pjs.222.1662882857706; Sun, 11 Sep 2022 00:54:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662882857; cv=none; d=google.com; s=arc-20160816; b=mEEE+Stn0Lk4zej7fg7jrEzHtMggHs5bulT4hBizwv0+6DjYlyBpK7DM2v4cGBIvWq LsgSSeUoFiGNOyrxJgtNzxemGiMMujUetxk8RcT0lnIBnOCnk3CdbgMHw5qthN4UEDSR 5Ks4LM2Xui3mRfgQFViCOJxHo142MSAMXM4VCQzzAlkkHkxMFXXhYTht4pdXp5b8MLOx 8XQrl1SNRmC3OI9v0UWGh7k77Tt8wY0fG4wOSeFhuVWdfr/6FaW6ogvidmz6KjZEhQd5 l4aIGO8UFAs8DdRdVfZYNvMfKoxjboQAbgTkEaGWaMGG1WeUri9LNtLYk/uYcWnTdpIu kzsQ== 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=ErIcgSGQlb5jq8Aq0NrnpRN4FUdlzFoBPmF4b//UfVQ=; b=PXxM2QJJ21dF0+UmhlL4fWEpSo5NR3c4WTim9vOdEfnmqfj3ViAGo0fwJDfhqT6F0s 7AFuu/2EQTaEKcC/o7xiFDiD8M3Dw29dojeyJHHyAUmJkUHfO5wWATAOpoNwGaLK1ZOC Ft7q4XFi7hE+21f0rKpphaeGhrMFhw62IBUTo2BwTEnw6494jQ5hgs2x0NY4zPKPsi+F jE7tAt0Mt731cNWNSKMNMrc4I5yvdnMpQ3ZaO/SoJZlcvrW5X37deQKHZmrJmEumJt8g NRE80FfbrtkVyQXPO06TEXfDAJntkRMfzUZVizzx1COoNQad9Ks/RK3GF9tdV1fWXzSo 77cw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=slDYJmis; 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 b2-20020a170903228200b0016efde92292si6616671plh.255.2022.09.11.00.54.06; Sun, 11 Sep 2022 00:54:17 -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=slDYJmis; 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 S229960AbiIKHZH (ORCPT + 99 others); Sun, 11 Sep 2022 03:25:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53272 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229923AbiIKHZD (ORCPT ); Sun, 11 Sep 2022 03:25:03 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A1CF2255A4 for ; Sun, 11 Sep 2022 00:25:02 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 1115B60E9A for ; Sun, 11 Sep 2022 07:25:02 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 21F1FC433D6; Sun, 11 Sep 2022 07:25:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1662881101; bh=OrAu6mHIVqYRRW/CQFimPqBKISrkvqtpRN9Epl3Dyxg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=slDYJmis3ItMPuBIHoHNT3dHscIivy08miuXqCAL0AjgKn5uM6Pr1LdrkTOmXpsEi 1J5/JHa5KHtCSKx8oyEtVUDwl3iUfGAH4pTzL8YswRreXy+A7Fdw1DDgRq+DQ0dLeS zRxd7J0HjaSiY3GEANn6RPX8rEBCTjQlPISulNHY= Date: Sun, 11 Sep 2022 09:25:23 +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 Sun, Sep 11, 2022 at 09:12:44AM +0200, Nam Cao wrote: > On Fri, Sep 9, 2022 at 8:03 PM Greg KH wrote: > > > > 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? > > I did not carefully look at the volatile usage here. After looking at it > again, using volatile is actually valid: the structure resides on coherent > memory. Are you sure? That's a very odd thing for a driver to need. Looks like they are allocating some dma memory and then pointing structures on top of that memory. Why would you need to have "volatile" markings on a structure definition for that? Dig into this some more please, I don't think this is correct. thanks, greg k-h