Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp2193234ybh; Mon, 9 Mar 2020 00:37:07 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtF9bHqRR+NdCLY7DqTXrPcPKxW3/OXBMcPp+YSW21A8kpA6byRPWpPZDGOJDyOj3IJLSyL X-Received: by 2002:a9d:ed1:: with SMTP id 75mr12805063otj.229.1583739427198; Mon, 09 Mar 2020 00:37:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583739427; cv=none; d=google.com; s=arc-20160816; b=PCUoSuwp3h7Zq65AZkdw7seAg3PxirvV+GB0SzSNahmC1x7VWO1zVviznAAv5VVb/h StMMNL69zqrIlHr160g+hBw2PBGuoGYZnTt9WLgudgnLoTtBeJuZ5MNpiCOqm7LsaicQ 9gjYbgFBdBrHjif/eUBjgkfKeH1ReLEW8Rd6ajc7882bFf5Sc9rUEZd+r1BFSWeC3KZJ 3qz+y63Z3NGorffhR6pG2tVmkcIMipmYSQ9sZIxhcAgnyUBY37MSM0wfGu8qQ+PSYm1y xh2By1+13vzMozcMLBfqq75W/j2C2evfzi1DrjTkBljpf5bdlBJFHYWhZpFbITxg9P7U YUuQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=xSRi1sSdwn3ZnOCOJafgtYgnaZ1VIW9VaA5COD1u96Y=; b=VxUZ3jNAXqi3EWOfuHYbHcf7iFIeumqPKCu3TfT1eIY5hEd414p4tnjeyviEy1j+eF AJ6LMTASsqXXldIp05QT1F9Cb00CEzjTADDG2PwWlVfvypW5y5UiVk5DhlG4kwATmhac /WXaTw9JNMsaS6kRCov29Vj8DMWYelGsUXSNz1+9pVtL6hZ7qzGuw3Ii6zB2m0JCj6Pc WzB556zS+74mWNAYeNiQ9vI+BDHfbC7t7oASvQjLyHuJmDvkfvv7AdN/DJAaWuRH7RLh NVXJFQhCj9sS/+8EHhnF9NxwIZe173QD6H7V3+tgJiGGv9Yutz+WeAK2R3ikH4eu7mkM E0/A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h25si5695916otr.186.2020.03.09.00.36.54; Mon, 09 Mar 2020 00:37:07 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726248AbgCIHfw (ORCPT + 99 others); Mon, 9 Mar 2020 03:35:52 -0400 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:58219 "EHLO mail2-relais-roc.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725796AbgCIHfw (ORCPT ); Mon, 9 Mar 2020 03:35:52 -0400 X-IronPort-AV: E=Sophos;i="5.70,532,1574118000"; d="scan'208";a="439418215" Received: from abo-173-121-68.mrs.modulonet.fr (HELO hadrien) ([85.68.121.173]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 09 Mar 2020 08:35:24 +0100 Date: Mon, 9 Mar 2020 08:35:24 +0100 (CET) From: Julia Lawall X-X-Sender: jll@hadrien To: Shreeya Patel cc: Joe Perches , outreachy-kernel , gregkh@linuxfoundation.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, sbrivio@redhat.com, daniel.baluta@gmail.com, nramas@linux.microsoft.com, hverkuil@xs4all.nl, Larry.Finger@lwfinger.net Subject: Re: [Outreachy kernel] [PATCH] Staging: rtl8188eu: Add space around operators In-Reply-To: Message-ID: References: <20200308220004.9960-1-shreeya.patel23498@gmail.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 9 Mar 2020, Shreeya Patel wrote: > On Sun, 2020-03-08 at 16:05 -0700, Joe Perches wrote: > > On Mon, 2020-03-09 at 03:30 +0530, Shreeya Patel wrote: > > > Add space around operators for improving the code > > > readability. > > > > Hello again Shreeya. > > > I have some questions here... > > > The subject isn't really quite appropriate as you > > are not doing this space around operator addition > > for the entire subsystem. > > > > IMO, the subject should be: > > > > [PATCH] staging: rtl8188eu: rtw_mlme: Add spaces around operators > > > > because you are only performing this change on this > > single file. > > > > If you were to do this for every single file in the > > subsystem, you could have many individual patches with > > the exact same subject line. > > > > And it would be good to show in the changelog that you > > have compiled the file pre and post patch without object > > code change. > > > I'm not sure how to show this. Do you mean to add the output of > "make drivers/staging/rtl8188eu/core" before and after the changes? You are working on one specific file, maybe foo.c. Compile before making changes, which will give you foo.o. Rename that file to something else. Make your changes and compile again. Do a diff with the previously compiled file. It should produce nothing, indicating no difference. If this .o file doesn't change and you only changed this .c file, the whole compiled driver won't change either. > I also don't understand the meaning of no object code change. If we are > making the changes to code and then compiling it using the make command > then a new file with .o extension is created and replaced by the > previous one isn't it? > > > Also, it's good to show that git diff -w shows no source > > file changes. > > > > And this has to be... > git diff -w --shortstat drivers/staging/rtl8188eu/core/ --shortstat does not seem useful. What you hope to see is that it produces nothing. julia > Am I correct? > > Thanks > > > > Reported by checkpatch.pl > > > > > > Signed-off-by: Shreeya Patel > > > --- > > > drivers/staging/rtl8188eu/core/rtw_mlme.c | 40 +++++++++++------ > > > ------ > > > 1 file changed, 20 insertions(+), 20 deletions(-) > > > > When I try this using checkpatch --fix-inplace, I get > > 21 changes against the latest -next tree. > > > > What tree are you doing this against? > > > > > > -- > You received this message because you are subscribed to the Google Groups "outreachy-kernel" group. > To unsubscribe from this group and stop receiving emails from it, send an email to outreachy-kernel+unsubscribe@googlegroups.com. > To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/af1a27fb8c5f7efbaf99ce3055cf3801b366d627.camel%40gmail.com. >