Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1325203

Re: [PATCH 10/14] efi: Make checkpatch complain less about efi.h GUID additions

From Joe Perches <joe@perches.com>
Newsgroups linux.kernel
Subject Re: [PATCH 10/14] efi: Make checkpatch complain less about efi.h GUID additions
Date 2016-02-03 12:10 +0100
Message-ID <qY3tU-19p-9@gated-at.bofh.it> (permalink)
References <qXuPx-WW-3@gated-at.bofh.it> <qXuPy-WW-25@gated-at.bofh.it> <qY30S-K9-15@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Wed, 2016-02-03 at 11:33 +0100, Ingo Molnar wrote:
> * Matt Fleming <matt@codeblueprint.co.uk> wrote:
> 
> > From: Peter Jones <pjones@redhat.com>
> > 
> > This reformats the GUID definitions in include/linux/efi.h so that if
> > you add another one with the same style, checkpatch won't complain about
> > it.
> > 
> > Signed-off-by: Peter Jones <pjones@redhat.com>
> > Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
> > Signed-off-by: Matt Fleming <matt@codeblueprint.co.uk>
> > ---
> >  include/linux/efi.h | 63 +++++++++++++++++++++++++++++++++++------------------
> >  1 file changed, 42 insertions(+), 21 deletions(-)
> > 
> > diff --git a/include/linux/efi.h b/include/linux/efi.h
> > index 09f1559e7525..f468f7c53236 100644
> > --- a/include/linux/efi.h
> > +++ b/include/linux/efi.h
> > @@ -535,67 +535,88 @@ void efi_native_runtime_setup(void);
> >   *  EFI Configuration Table and GUID definitions
> >   */
> >  #define NULL_GUID \
> > -    EFI_GUID(  0x00000000, 0x0000, 0x0000, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 )
> > +	EFI_GUID(0x00000000, 0x0000, 0x0000, \
> > +		 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00)
> >  
> >  #define MPS_TABLE_GUID    \
> > -    EFI_GUID(  0xeb9d2d2f, 0x2d88, 0x11d3, 0x9a, 0x16, 0x0, 0x90, 0x27, 0x3f, 0xc1, 0x4d )
> > +	EFI_GUID(0xeb9d2d2f, 0x2d88, 0x11d3, \
> > +		 0x9a, 0x16, 0x00, 0x90, 0x27, 0x3f, 0xc1, 0x4d)
> 
> So I really think this is a step backwards.

Some people take checkpatch messages altogether too seriously.

from: https://lkml.org/lkml/2015/7/16/568
----------------------------------
The other thing that might help is for people to take
the warnings the script produces less seriously.

Maybe convert:

ERROR -> defect
WARNING -> unstylish
CHECK -> nitpick

or some such
----------------------------------
> Checkpatch should be fixed/enhanced to allow targeted exemption. Something like:
> 
> 
> 	#define CHECKPATCH_IGNORE
> 	...
> 	#undef CHECKPATCH_IGNORE
> 
> ... which checkpatch would parse and interpret accordingly.

A similar proposal: https://lkml.org/lkml/2016/1/30/175

checkpatch works on patches.
If the #define isn't in the patch scope the script won't know.

Perhaps it's simpler to add some facility to allow lines
with known keywords to exceed $max_line_length similar
to the format strings of logging functions.

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH 10/14] efi: Make checkpatch complain less about efi.h GUID additions Matt Fleming <matt@codeblueprint.co.uk> - 2016-02-01 23:10 +0100
  Re: [PATCH 10/14] efi: Make checkpatch complain less about efi.h  GUID additions Ingo Molnar <mingo@kernel.org> - 2016-02-03 11:40 +0100
    Re: [PATCH 10/14] efi: Make checkpatch complain less about efi.h  GUID additions Matt Fleming <matt@codeblueprint.co.uk> - 2016-02-03 11:50 +0100
      Re: [PATCH 10/14] efi: Make checkpatch complain less about efi.h  GUID additions Ingo Molnar <mingo@kernel.org> - 2016-02-03 12:00 +0100
        Re: [PATCH 10/14] efi: Make checkpatch complain less about efi.h  GUID additions Matt Fleming <matt@codeblueprint.co.uk> - 2016-02-03 12:20 +0100
          Re: [PATCH 10/14] efi: Make checkpatch complain less about efi.h  GUID additions Ingo Molnar <mingo@kernel.org> - 2016-02-03 12:30 +0100
    Re: [PATCH 10/14] efi: Make checkpatch complain less about efi.h  GUID additions Joe Perches <joe@perches.com> - 2016-02-03 12:10 +0100

csiph-web