2018-11-07 07:17:18

by Peng Hao

[permalink] [raw]
Subject: [PATCH] arm64: fix commit style in the comments

Use git commit description style 'commit <12+ chars of sha1>
("<title line>")' in the comments.

Signed-off-by: Peng Hao <[email protected]>
---
arch/arm64/kernel/sys32.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm64/kernel/sys32.c b/arch/arm64/kernel/sys32.c
index 0f8bcb7..8317a5a 100644
--- a/arch/arm64/kernel/sys32.c
+++ b/arch/arm64/kernel/sys32.c
@@ -40,8 +40,8 @@
* arbitrary binaries may rely upon it, so we must do the same.
* For more details, see commit:
*
- * 713c481519f19df9 ("[ARM] 3108/2: old ABI compat: statfs64 and
- * fstatfs64")
+ * commit 713c481519f19df9 ("[ARM] 3108/2: old ABI compat: statfs64
+ * and fstatfs64")
*/
if (sz == 88)
sz = 84;
--
1.8.3.1



2018-11-07 09:20:18

by Catalin Marinas

[permalink] [raw]
Subject: Re: [PATCH] arm64: fix commit style in the comments

On Wed, Nov 07, 2018 at 11:39:11PM +0800, Peng Hao wrote:
> Use git commit description style 'commit <12+ chars of sha1>
> ("<title line>")' in the comments.
>
> Signed-off-by: Peng Hao <[email protected]>
> ---
> arch/arm64/kernel/sys32.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/arch/arm64/kernel/sys32.c b/arch/arm64/kernel/sys32.c
> index 0f8bcb7..8317a5a 100644
> --- a/arch/arm64/kernel/sys32.c
> +++ b/arch/arm64/kernel/sys32.c
> @@ -40,8 +40,8 @@
> * arbitrary binaries may rely upon it, so we must do the same.
> * For more details, see commit:
> *
> - * 713c481519f19df9 ("[ARM] 3108/2: old ABI compat: statfs64 and
> - * fstatfs64")
> + * commit 713c481519f19df9 ("[ARM] 3108/2: old ABI compat: statfs64
> + * and fstatfs64")

Seriously, how does this help? It already states "see commit:" on the
previous line.

--
Catalin