Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp37123imm; Tue, 28 Aug 2018 15:30:40 -0700 (PDT) X-Google-Smtp-Source: ANB0VdamgcuJZQhraIqNn0zgsOuDJnYWX3OR4AMy5y/SBKLdaRlDEVdKCRnBgjk57ZhTH4OkdCHR X-Received: by 2002:a17:902:290a:: with SMTP id g10-v6mr3356337plb.110.1535495440782; Tue, 28 Aug 2018 15:30:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535495440; cv=none; d=google.com; s=arc-20160816; b=udU3cvbbZP/1gTb1/WbytV//f5wiC29dPjV+gWRCPTLR3zPx+dFymp2voCG35txWRz OMS98pWBV0ARhKZw3fFoFiG5+mg3easkDdiRN+bbhHaB3zS97ZM1JzI/L5sbwLcK23XQ edZVu/JicnTBiIFBx8Em6sgbFcEWJZvwHansYTp7Tc+PjKNv5cWIFwS9r1cRD5SjjHkh DXgk5iS8E+9nxeDT8k/d17lmfbmrNUOhoPADz2dzfOM+siVp507Ba+LFCEDMm4+pthWe LRWN2QLnhiBgQMk350H8XchmzIZy2a2HNtjcIEgDVs7OH3y0Y0C/6969mXzjlSAbyngk wW8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=L8MwGu5K3JPopr7scIHdFloNzJuRNy2bjOke80KbnsE=; b=uxij40W4r0/yySobNPDFiVJpDtuZxN3sI2Wn0io2OMZOpHmBa36H1XvGNjMaBLEbY2 CrZP6CmrRQgZ0YHmUbOtkMutIT+eGZpDzVOUxscg+uyA1l5qB/tOI2ew9jqcUfI/R2SZ CeLreTGw/8CFxhGZZqASEYYI9nyAjZlJEAonBxnVQxtANvUVzHaFW7WVeAN4/Qgj82Lq CtbK2qxDxUGv2DrWdY4ryKJTG99G05O8nFkfTB/2UM6mDPrrjxYcmnVIosxAIbzVh/yr cmwaGdSAznuFuTjBjZiYONPRKEYuduzDGAjLekVIAQiJ0RwSU6ccgMmu6yeEAywxQiVh OJ/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=fpjapg+3; 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 1-v6si2088953plt.148.2018.08.28.15.30.24; Tue, 28 Aug 2018 15:30:40 -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; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=fpjapg+3; 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 S1727569AbeH2CWm (ORCPT + 99 others); Tue, 28 Aug 2018 22:22:42 -0400 Received: from merlin.infradead.org ([205.233.59.134]:47388 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727293AbeH2CWl (ORCPT ); Tue, 28 Aug 2018 22:22:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=L8MwGu5K3JPopr7scIHdFloNzJuRNy2bjOke80KbnsE=; b=fpjapg+3j18bIefonxpeQBQSdx ME7+HDchGj7b7M7lu6g8nEW/3ZE1ujKoMPYynrwFu42K/rzmAS+3n08dUKt/kHYxRdRGhi8ONzYDX 0KnbY+cGxFx/HUsy+hf/OE2ndyKxkzx9+sn8/SWVpuO0mFwyG6gS/+sUQD8TKZ0zeivSKIXh+AXMR qce/W8Svl9vJ8hjJkaJgJ2cJcBKJqrnPCruOntEOCvtmhIEQNi/rG0avZvUabUsn3oC1/xzlV5SrC fnw3pDbqq8/OzV6ZSpqvX1kF/zxkOchDqz8egm6lZUAAHdM+w7FucqjCGGt+CsVww+aZla2yXwJfA O53KlVKg==; Received: from static-50-53-52-16.bvtn.or.frontiernet.net ([50.53.52.16] helo=midway.dunlab) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1fumTm-0005RT-SP; Tue, 28 Aug 2018 22:28:55 +0000 Subject: Re: [PATCH] Trivial numbering change in comments. To: Nathan Chancellor , Ray Clinton Cc: Greg Kroah-Hartman , =?UTF-8?Q?Arve_Hj=c3=b8nnev=c3=a5g?= , Todd Kjos , Martijn Coenen , Alistair Strachan , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, trivial@kernel.org References: <20180828220327.GA22320@flashbox> From: Randy Dunlap Message-ID: <1c9d6084-9bb6-597b-029c-daf4ffd85c77@infradead.org> Date: Tue, 28 Aug 2018 15:28:53 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20180828220327.GA22320@flashbox> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08/28/2018 03:03 PM, Nathan Chancellor wrote: > On Tue, Aug 28, 2018 at 04:08:18PM -0400, Ray Clinton wrote: >> I'm trying to get my feet wet in kernel dev and while working on a patch >> I noticed in a lengthy comment block that the number "2" was skipped >> in a description of the steps of a protocol. This patch is simply correcting >> this. This is for 4.18.0. >> >> It is a very trivial patch, but this is my first actual try at one and >> thought I >> might start out small (and I don't think you can get smaller than a single >> character change). Any and all advice (about this patch, email, or >> anything else) is very welcome. >> >> Thanks so much! >> Ray >> >> Signed-off-by: Ray Clinton >> --- >> drivers/staging/android/uapi/vsoc_shm.h | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/drivers/staging/android/uapi/vsoc_shm.h >> b/drivers/staging/android/uapi/vsoc_shm.h >> index 6291fb2..0301172 100644 >> --- a/drivers/staging/android/uapi/vsoc_shm.h >> +++ b/drivers/staging/android/uapi/vsoc_shm.h >> @@ -92,7 +92,7 @@ struct fd_scoped_permission_arg { >> * The transmitter can choose any appropriate hashing algorithm, including >> * hash = futex_offset & ((1 << num_nodes_lg2) - 1) >> * >> - * 3. The transmitter should atomically compare and swap futex_offset with 0 >> + * 2. The transmitter should atomically compare and swap futex_offset with 0 >> * at hash. There are 3 possible outcomes >> * a. The swap fails because the futex_offset is already in the table. >> * The transmitter should stop. >> -- >> 2.7.4 > > Hi Ray, > > Welcome to Linux kernel development and good first patch. Just a few > words of advice for any future patches that you submit! > > Make sure to include what subsystem you are modifying in the commit > title. You can see examples by using 'git log --online '; for s/online/oneline/ :) > this subsystem, it's usually "staging: android: vsoc:", making this > patch's title "staging: android: vsoc: Trivial numbering change in comments". > > I'd recommend keeping author details (such as your experience and other > info) in-between the '---' and the file names modified in the patch so > that they can be read by the maintainers/reviewers but not added to the > commit message by 'git am'. This is also helpful for adding comments > like what changed between versions of the patch or maybe something like > "I'm not sure this change is correct, it could also be done via , > I'd like some review". > > Small nits in the grand scheme of things but they'll come in handy as > you develop more and more complex patches and series. > > Reviewed-by: Nathan Chancellor > > Cheers! > Nathan > -- ~Randy