From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750829AbdEIVK6 (ORCPT ); Tue, 9 May 2017 17:10:58 -0400 Received: from mx2.suse.de ([195.135.220.15]:48748 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750707AbdEIVK5 (ORCPT ); Tue, 9 May 2017 17:10:57 -0400 Date: Tue, 9 May 2017 23:10:55 +0200 From: Michal Hocko To: linux-kernel@vger.kernel.org Cc: akpm@linux-foundation.org, mm-commits@vger.kernel.org Subject: Re: + mm-vmalloc-fix-vmalloc-users-tracking-properly-checkpatch-fixes.patch added to -mm tree Message-ID: <20170509211054.GB16325@dhcp22.suse.cz> References: <591227df.Hc5/RikdRAQRbI8/%akpm@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <591227df.Hc5/RikdRAQRbI8/%akpm@linux-foundation.org> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue 09-05-17 13:34:39, Andrew Morton wrote: > From: Andrew Morton > Subject: mm-vmalloc-fix-vmalloc-users-tracking-properly-checkpatch-fixes > > ERROR: Please use git commit description style 'commit <12+ chars of sha1> ("")' - ie: 'commit 0123456789ab ("commit description")' > #4: > 1f5307b1e094 ("mm, vmalloc: properly track vmalloc users") has pulled > > WARNING: Possible unwrapped commit description (prefer a maximum 75 chars per line) > #12: > >> arch/m68k/include/asm/mcf_pgtable.h:339:43: error: 'init_mm' undeclared (first use in this function) > > ERROR: Please use git commit description style 'commit <12+ chars of sha1> ("<title line>")' - ie: 'commit 0123456789ab ("commit description")' > #36: > This patch reverts 1f5307b1e094 and reimplements the original fix in a > > WARNING: line over 80 characters > #71: FILE: include/linux/vmalloc.h:85: > +static inline void *__vmalloc_node_flags_caller(unsigned long size, int node, gfp_t flags, void* caller) > > ERROR: "foo* bar" should be "foo *bar" > #71: FILE: include/linux/vmalloc.h:85: > +static inline void *__vmalloc_node_flags_caller(unsigned long size, int node, gfp_t flags, void* caller) > > ERROR: "foo* bar" should be "foo *bar" > #92: FILE: include/linux/vmalloc.h:96: > + int node, gfp_t flags, void* caller); > > WARNING: line over 80 characters > #143: FILE: mm/vmalloc.c:1820: > +void *__vmalloc_node_flags_caller(unsigned long size, int node, gfp_t flags, void *caller) > > total: 4 errors, 3 warnings, 80 lines checked > > NOTE: For some of the reported defects, checkpatch may be able to > mechanically convert to the typical style using --fix or --fix-inplace. > > ./patches/mm-vmalloc-fix-vmalloc-users-tracking-properly.patch has style problems, please review. Thanks for the fixups Andrew! While you are at it I've noticed that I forgot to revert the comment for the originally inlined __vmalloc_node_flags which is no longer relevant. Could to fold this as well please? --- diff --git a/include/linux/vmalloc.h b/include/linux/vmalloc.h index 268b3a919a5f..0e8e125b1ed6 100644 --- a/include/linux/vmalloc.h +++ b/include/linux/vmalloc.h @@ -87,11 +87,6 @@ static inline void *__vmalloc_node_flags_caller(unsigned long size, int node, gf return __vmalloc_node_flags(size, node, flags); } #else -/* - * We really want to have this inlined due to caller tracking. This - * function is used by the highlevel vmalloc apis and so we want to track - * their callers and inlining will achieve that. - */ extern void *__vmalloc_node_flags_caller(unsigned long size, int node, gfp_t flags, void* caller); #endif -- Michal Hocko SUSE Labs