Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp3897278rwn; Sun, 11 Sep 2022 00:17:19 -0700 (PDT) X-Google-Smtp-Source: AA6agR4WXRW5bK0gjAN06z1wSFf0+cLw0A43VVspzD0+Z/ZuTIzJ9y/KmXOc5As7MdvS5PRnyBFG X-Received: by 2002:a05:6402:440c:b0:43a:1124:e56a with SMTP id y12-20020a056402440c00b0043a1124e56amr18376427eda.134.1662880639109; Sun, 11 Sep 2022 00:17:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662880639; cv=none; d=google.com; s=arc-20160816; b=IEEvnk3q/7kU9bLzPn1fHuUpONPx2bw8f6LqcW4SGUmWCvxdGa4HmHcJc6OAMbCGZs ThEG86xbX9pqHabZjyGceurczvnhP88sMVW7QHVGnwONCRwFkIRYb7VRN3dzagAX/6qC d5juCKXwaL7a1oCnrhuppF9YPOYB7AaWH7/mnJvlCSXp5ZB4q7NsGTLgRAbf9Q+lgkov IyqZjVVlImtNWmwEU8an7f7vd0GG0H1J0UqtyXpEScomy2a8MZ3Vi0aeQzkZ0+BSuHXy 7aki+W478R2i1F2yi69CGnsjKmh6zxuP0FSC0Eu9bBi844bwqIbuPpU6IdSdW2OsSaEI aFNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=fOne5REx3dfFRIt7Ms5taiBcmpnVEiUY4XZ+R/6BY9w=; b=cpgUvaXqHe3uaJgXJEPGFbi3YGBRycgBB/qiPyYYnMSYjudRiL+K5H85EXW6F9txYv kXpJKyiEITUFzhXH30w9MREWMEbdvBE1OVqTb8pU9/+3D2PLiH1/EbHMzggq+VEFciO8 8NdX8qxvGGapxboTt7TMXur6lnuot4OypjT+kZaq43b5MYNrMZNBYVZg4xARWvj3yaSv buien+1WIZ1e2xlkV8xpENiAXmvy/VfnZEraY6X4zJ3lnY9CRL/0TEk2ZDIrN2GBkXHl b8O4Jb0Cd924o8KDIpl229q1FVe5fRITkq8i798G7XnX1eesgxFm7q4Yhj1G8l1EO4hW wMTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=hMmnRYTS; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s5-20020a50ab05000000b00447b4d113a8si4499577edc.421.2022.09.11.00.16.53; Sun, 11 Sep 2022 00:17:19 -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=@gmail.com header.s=20210112 header.b=hMmnRYTS; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229846AbiIKHM6 (ORCPT + 99 others); Sun, 11 Sep 2022 03:12:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36472 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229845AbiIKHM5 (ORCPT ); Sun, 11 Sep 2022 03:12:57 -0400 Received: from mail-yw1-x112b.google.com (mail-yw1-x112b.google.com [IPv6:2607:f8b0:4864:20::112b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2143B27B3C for ; Sun, 11 Sep 2022 00:12:56 -0700 (PDT) Received: by mail-yw1-x112b.google.com with SMTP id 00721157ae682-3321c2a8d4cso65907217b3.5 for ; Sun, 11 Sep 2022 00:12:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=fOne5REx3dfFRIt7Ms5taiBcmpnVEiUY4XZ+R/6BY9w=; b=hMmnRYTSakinCEP6SGw6Jp7CEqe48xDiDxXrrMm2mZF3Sy1OsgVNst2xIKymbxYOV6 2oQu0Hy3We9J4fpDH7fv9iGty1ia4qVy8DtkWW5sNMD0MRcDk7C88jmFh3HD0X32kqPY vk3zlQS+1hzrHiajSwyKJrLP8sf59eT7eKUAKhCfsQVR89vwE9VMgZWkXzum+fuSfy12 oiCieHEb/xs/UNgCviwLRnc8RfILaTcCrT5UE4JiskvbEffD884O1AhwN5b/9HnT3e3t yb/OnSw4yGrtPojohdTF9qYb32Z1zjd21QjGalN734MnVJjn0NIOuJtRpzfc0pAkt42A pyIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=fOne5REx3dfFRIt7Ms5taiBcmpnVEiUY4XZ+R/6BY9w=; b=1F34MaAWbzrniKHojXGWX8bYVv0IvysZjQxHkyMNwtswe7mSJVOqHW0Va131rC2rpS ALkg4bAiEaWdfGSMx3r9NvNf8fJ2ovdahzWlFJvRxDutcWMwSyXjwvs76bSD1W1lofdi QW4DfkuELGAhh7Tt71XjZQIxyJx7FbLnNidWEeA9zLbC7u8P7IO3CVV79++bFJXch51W 9oLtQDcYShABXOZgLcwRtYaSPC5+z5BrOulU1t+mURsje6CBitbNYdHyoshJxHdH23vB ZrFYzk7l295mDyvTtlv9aVOaPYXwvhyMAOlGjnJeu3KIDxn4obCRf/bp/9ZSZDZnWX/A mu0g== X-Gm-Message-State: ACgBeo3ITa3F5aL+1GQKcWB0qXdt4pFf/1xrNaV1uzZejhh2qBAbha7e RCMepvtannJM5Rjkg5szbcLQUBUc5wDA97u4sPE= X-Received: by 2002:a0d:c981:0:b0:330:dc03:7387 with SMTP id l123-20020a0dc981000000b00330dc037387mr18272329ywd.380.1662880375353; Sun, 11 Sep 2022 00:12:55 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Nam Cao Date: Sun, 11 Sep 2022 09:12:44 +0200 Message-ID: Subject: Re: [PATCH v3 1/2] staging: vt6655: remove unnecessary volatile qualifier To: Greg KH Cc: forest@alittletooquiet.net, linux-kernel@vger.kernel.org, linux-staging@lists.linux.dev Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 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. Sorry for being careless. Best regards, Nam