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


Groups > linux.kernel > #1650440

[PATCH v5 3/6] linux/bug.h: correct "(foo*)" should be "(foo *)"

From Ian Abbott <abbotti@mev.co.uk>
Newsgroups linux.kernel
Subject [PATCH v5 3/6] linux/bug.h: correct "(foo*)" should be "(foo *)"
Date 2017-05-25 14:10 +0200
Message-ID <tKZKy-81K-29@gated-at.bofh.it> (permalink)
References <tKZKx-81K-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Correct this checkpatch.pl error:

|ERROR: "(foo*)" should be "(foo *)"
|#19: FILE: include/linux/bug.h:19:
|+#define BUILD_BUG_ON_NULL(e) ((void*)0)

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Kees Cook <keescook@chromium.org>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Jakub Kicinski <jakub.kicinski@netronome.com>
Cc: Rasmus Villemoes <linux@rasmusvillemoes.dk>
---
v5: Actually, there was no v1 thru v4.  I called this v5 to match the
series.
---
 include/linux/bug.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/bug.h b/include/linux/bug.h
index ca24007e2dc3..216a1b79653d 100644
--- a/include/linux/bug.h
+++ b/include/linux/bug.h
@@ -16,7 +16,7 @@ struct pt_regs;
 #define __BUILD_BUG_ON_NOT_POWER_OF_2(n) (0)
 #define BUILD_BUG_ON_NOT_POWER_OF_2(n) (0)
 #define BUILD_BUG_ON_ZERO(e) (0)
-#define BUILD_BUG_ON_NULL(e) ((void*)0)
+#define BUILD_BUG_ON_NULL(e) ((void *)0)
 #define BUILD_BUG_ON_INVALID(e) (0)
 #define BUILD_BUG_ON_MSG(cond, msg) (0)
 #define BUILD_BUG_ON(condition) (0)
-- 
2.11.0

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


Thread

[PATCH v5 0/6] kernel.h: container_of() pointer checking Ian Abbott <abbotti@mev.co.uk> - 2017-05-25 14:10 +0200
  [PATCH v5 4/6] linux/bug.h: correct "space required before that '-'" Ian Abbott <abbotti@mev.co.uk> - 2017-05-25 14:10 +0200
    Re: [PATCH v5 4/6] linux/bug.h: correct "space required before that '-'" Michal Nazarewicz <mina86@mina86.com> - 2017-05-25 16:10 +0200
    Re: [PATCH v5 4/6] linux/bug.h: correct "space required before that '-'" Michal Nazarewicz <mina86@mina86.com> - 2017-05-25 16:10 +0200
  [PATCH v5 1/6] asm-generic/bug.h: declare struct pt_regs; before function prototype Ian Abbott <abbotti@mev.co.uk> - 2017-05-25 14:10 +0200
  [PATCH v5 2/6] linux/bug.h: correct formatting of block comment Ian Abbott <abbotti@mev.co.uk> - 2017-05-25 14:10 +0200
    Re: [PATCH v5 2/6] linux/bug.h: correct formatting of block comment Michal Nazarewicz <mina86@mina86.com> - 2017-05-25 16:00 +0200
  [PATCH v5 3/6] linux/bug.h: correct "(foo*)" should be "(foo *)" Ian Abbott <abbotti@mev.co.uk> - 2017-05-25 14:10 +0200
    Re: [PATCH v5 3/6] linux/bug.h: correct "(foo*)" should be "(foo *)" Michal Nazarewicz <mina86@mina86.com> - 2017-05-25 16:00 +0200
  [PATCH v5 5/6] bug: split BUILD_BUG stuff out into <linux/build_bug.h> Ian Abbott <abbotti@mev.co.uk> - 2017-05-25 14:10 +0200
    Re: [PATCH v5 5/6] bug: split BUILD_BUG stuff out into <linux/build_bug.h> Michal Nazarewicz <mina86@mina86.com> - 2017-05-25 16:10 +0200
    Re: [PATCH v5 5/6] bug: split BUILD_BUG stuff out into <linux/build_bug.h> Kees Cook <keescook@chromium.org> - 2017-05-25 20:40 +0200
  [PATCH v5 6/6] kernel.h: handle pointers to arrays better in container_of() Ian Abbott <abbotti@mev.co.uk> - 2017-05-25 14:10 +0200
    Re: [PATCH v5 6/6] kernel.h: handle pointers to arrays better in container_of() Michal Nazarewicz <mina86@mina86.com> - 2017-05-25 16:10 +0200
    Re: [PATCH v5 6/6] kernel.h: handle pointers to arrays better in container_of() Kees Cook <keescook@chromium.org> - 2017-05-25 20:40 +0200
      Re: [PATCH v5 6/6] kernel.h: handle pointers to arrays better in  container_of() Ian Abbott <abbotti@mev.co.uk> - 2017-05-26 16:00 +0200

csiph-web