X-GM-THRID: 7021065776829300736 X-Received: by 2002:a05:6512:3987:: with SMTP id j7mr11892772lfu.637.1634734798663; Wed, 20 Oct 2021 05:59:58 -0700 (PDT) X-BeenThere: outreachy-kernel@googlegroups.com Received: by 2002:a2e:2204:: with SMTP id i4ls419272lji.4.gmail; Wed, 20 Oct 2021 05:59:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzgxGrO+aXP5vBmqZorLmwWAGNuy3NaXN6L1rRlcTCTQsNkdHS6xtUI7A7rQqxN9bYOdVKN X-Received: by 2002:a2e:9f51:: with SMTP id v17mr13584583ljk.428.1634734796910; Wed, 20 Oct 2021 05:59:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634734796; cv=none; d=google.com; s=arc-20160816; b=wx1adR+BRDsQ245gRRwW4L2Qhv8dn8Say3IFsZ2Gw1C3qu6GEzcL0j5l0eQ3Celv+/ OefmLgVggRtXKhZrz93KB9eU4rpSEhN+Yau/sXMfy0ebcyxv1DwE2FJ7xJitwNt69mhx CHnk6J0+bVxOy40IMpE+hwejnJA/hJf2hu8+IlA76URzC8fFtgxbPYvLid2rxkF/tG5v N0CNUBfDG86uTbQuh2MarplEZFIF9euHvnZIkSz/T88ip0iDSAHJkWIzTdsd9JJutFOa u4H3MzijOpwZhEvhaPt2TfCv5QAkw8l57dWF2cKgPiyXkLi8O2TMRh70YbQyD0SRUsg+ 82Eg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:user-agent:references:message-id:in-reply-to:subject :cc:to:from:date:ironport-hdrordr; bh=bUDnE62FvcCTlvJW04he1rWpIz0f5X0zGCUxDnsbZHU=; b=d9XYbt08t8czpZFOaS9Te2v6U9tSVkHyj6yO1VQpd6Cm1OKbIR4Lqh1pBZwEqNzhMy 3aAC2osTo+xZ7XX4reVZL5cHHKqYekEEPYXabSHhY+N7n6fApWHvJ1rGnxn96C8Red3m jHUF3YjDhKq4HzO0UzWx3hgPSDNmP92KFaNaWiBx74hEt7M5zq/784w4NGN2/QYI0Ij7 jJOoMKfrMksV1KP2rLPQOvGW8O4skhSw9Dfh75UgqSkXqgT8VsDYAAxgSwSmQriWyDKK qfSIUVigXn54WzhZ22rcWzD9AsbCIgm+BRNVDzi5TfD8lxOVnBQ7ABK5yLJOP6iTVHOS xeTA== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of julia.lawall@inria.fr designates 192.134.164.104 as permitted sender) smtp.mailfrom=julia.lawall@inria.fr Return-Path: Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr. [192.134.164.104]) by gmr-mx.google.com with ESMTPS id 8si122166lft.11.2021.10.20.05.59.56 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 20 Oct 2021 05:59:56 -0700 (PDT) Received-SPF: pass (google.com: domain of julia.lawall@inria.fr designates 192.134.164.104 as permitted sender) client-ip=192.134.164.104; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of julia.lawall@inria.fr designates 192.134.164.104 as permitted sender) smtp.mailfrom=julia.lawall@inria.fr IronPort-HdrOrdr: =?us-ascii?q?A9a23=3Aa/cxzankGqqFbF57j6JneJGJz3HpDfIr3DAb?= =?us-ascii?q?v31ZSRFFG/Fw9vre+MjzuiWetN98YhsdcJW7WZVoIkmskKKdg7NwAV7KZmCPhI?= =?us-ascii?q?LrFvAA0WKI+VPd8kPFmtK1mZ0QEZRWOZnASWJ3isv3+2CDfuoIytPvys+Vuds?= =?us-ascii?q?=3D?= X-IronPort-AV: E=Sophos;i="5.84,326,1620684000"; d="scan'208";a="396505127" Received: from 173.121.68.85.rev.sfr.net (HELO hadrien) ([85.68.121.173]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 20 Oct 2021 14:59:55 +0200 Date: Wed, 20 Oct 2021 14:59:55 +0200 (CEST) From: Julia Lawall X-X-Sender: jll@hadrien To: Karolina Drobnik cc: outreachy-kernel@googlegroups.com, gregkh@linuxfoundation.org, forest@alittletooquiet.net, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [Outreachy kernel] [PATCH] staging: vt6655: Rename `by_preamble_type` parameter In-Reply-To: <6089e564f89ceaa7303bf3a4b4c864bf1389ac25.camel@gmail.com> Message-ID: References: <20211020084033.414994-1-karolinadrobnik@gmail.com> <6089e564f89ceaa7303bf3a4b4c864bf1389ac25.camel@gmail.com> User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII On Wed, 20 Oct 2021, Karolina Drobnik wrote: > On Wed, 2021-10-20 at 10:54 +0200, Julia Lawall wrote: > > On Wed, 20 Oct 2021, Karolina Drobnik wrote: > > > > > Drop `by` prefix in the first parameter of `bb_get_frame_time` > > > function. > > > As the original argument, `byPreambleType`, was renamed to > > > `preamble_type`, > > > the parameter referring to it is now renamed to match the new > > > naming > > > convention. > > > Update `bb_get_frame_time` comment to reflect that change. > > > > > > This patch is a follow-up work to this commit: > > > Commit 548b6d7ebfa4 ("staging: vt6655: Rename byPreambleType > > > field") > > > > This is not going to be practical. If the previous patch is > > accepted, then this it not needed. > > This change was there before but Greg told me to do only one logical > change per patch (which was a struct member rename), so I reverted it. > I believe this is needed because this parameter still uses Hungarian > notation, which is against the LK coding style. Also, it makes sense to > update the name given my previous change. Sorry, I think I was not clear. It's not practical to explain constraints on other patches in the log message. > > > there needs to be a vn+1 putting the patches together into a series. > > I didn't know that it should be send this way, especially given the > fact that Outreachy applicants should first get 3-5 patches out before > creating a patchset. Or has something changed in this regard? I think that the 3-5 rule is not that important. The important thing is that if you want to make two different changes on the same file, either the first one has to be accepted before you submit the second one, or they have to be in a series. > > > @@ -1691,7 +1691,7 @@ static const unsigned short > > > awc_frame_time[MAX_RATE] = { > > > * > > > * Parameters: > > > * In: > > > - * by_preamble_type - Preamble Type > > > + * preamble_type - Preamble Type > > > * by_pkt_type - PK_TYPE_11A, PK_TYPE_11B, > > > PK_TYPE_11GB, PK_TYPE_11GA > > > > In the realm of small cleanups to this driver, the extra space in > > front of the - above is a bit annoying. > > I can add this in but will that still count as a one logical change? No. It's a different change. It's just a small whitespace issue, but it's not triggered by the other changes you have made. julia > I described the comment update, will that suffice? > > > > @@ -1717,7 +1717,7 @@ unsigned int bb_get_frame_time(unsigned char > > > by_preamble_type, > > > rate = (unsigned int)awc_frame_time[rate_idx]; > > > > > > if (rate_idx <= 3) { /* CCK mode */ > > > - if (by_preamble_type == 1) /* Short */ > > > + if (preamble_type == 1) /* Short */ > > > > I hope you will get around to replacing the 1 by the appropriate > > constant and removing the "Short" comment. > > I plan to do so after correcting the name variable. > > > On Wed, 2021-10-20 at 10:55 +0200, Greg KH wrote: > > On Wed, Oct 20, 2021 at 09:40:33AM +0100, Karolina Drobnik wrote: > > > Drop `by` prefix in the first parameter of `bb_get_frame_time` > > > function. > > > As the original argument, `byPreambleType`, was renamed to > > > `preamble_type`, > > > the parameter referring to it is now renamed to match the new > > > naming > > > convention. > > > Update `bb_get_frame_time` comment to reflect that change. > > > > > > This patch is a follow-up work to this commit: > > > Commit 548b6d7ebfa4 ("staging: vt6655: Rename byPreambleType > > > field") > > > > There is no need for these two lines in the changelog text. They can > > go > > below --- if you want to have them. > > Thank you for clarifying this. I've been following the Submitting > Patches docs[1] and thought this is needed. > > > Thanks, > Karolina > ------------------------------------------------------------------- > [1]: > https://elixir.bootlin.com/linux/latest/source/Documentation/process/submitting-patches.rst#L106 > > >