checkpatch.pl complains about the pointer symbol * being attached to the
type instead of being attached to the variable:
ERROR: "foo* bar" should be "foo *bar"
#85: FILE: ip/iplink_can.c:85:
+ const char* name)
ERROR: "foo* bar" should be "foo *bar"
#93: FILE: ip/iplink_can.c:93:
+static void print_ctrlmode(enum output_type t, __u32 flags, const char* key)
Fix those two warnings.
Signed-off-by: Vincent Mailhol <mailhol@kernel.org>
---
ip/iplink_can.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/ip/iplink_can.c b/ip/iplink_can.c
index 9f6084e63986bd05d25a050176f4640c30596b85..1afdf08825f3d9cbbb0454592d2ed7dc1388a6de 100644
--- a/ip/iplink_can.c
+++ b/ip/iplink_can.c
@@ -82,7 +82,7 @@ static void set_ctrlmode(char *name, char *arg,
}
static void print_flag(enum output_type t, __u32 *flags, __u32 flag,
- const char* name)
+ const char *name)
{
if (*flags & flag) {
*flags &= ~flag;
@@ -90,7 +90,7 @@ static void print_flag(enum output_type t, __u32 *flags, __u32 flag,
}
}
-static void print_ctrlmode(enum output_type t, __u32 flags, const char* key)
+static void print_ctrlmode(enum output_type t, __u32 flags, const char *key)
{
if (!flags)
return;
--
2.49.1
On Sun, 21 Sep 2025 16:32:30 +0900 Vincent Mailhol <mailhol@kernel.org> wrote: > checkpatch.pl complains about the pointer symbol * being attached to the > type instead of being attached to the variable: > > ERROR: "foo* bar" should be "foo *bar" > #85: FILE: ip/iplink_can.c:85: > + const char* name) > > ERROR: "foo* bar" should be "foo *bar" > #93: FILE: ip/iplink_can.c:93: > +static void print_ctrlmode(enum output_type t, __u32 flags, const char* key) > > Fix those two warnings. > > Signed-off-by: Vincent Mailhol <mailhol@kernel.org> > --- This is ok, to fix.
On 23/09/2025 at 07:10, Stephen Hemminger wrote: > On Sun, 21 Sep 2025 16:32:30 +0900 > Vincent Mailhol <mailhol@kernel.org> wrote: > >> checkpatch.pl complains about the pointer symbol * being attached to the >> type instead of being attached to the variable: >> >> ERROR: "foo* bar" should be "foo *bar" >> #85: FILE: ip/iplink_can.c:85: >> + const char* name) >> >> ERROR: "foo* bar" should be "foo *bar" >> #93: FILE: ip/iplink_can.c:93: >> +static void print_ctrlmode(enum output_type t, __u32 flags, const char* key) >> >> Fix those two warnings. >> >> Signed-off-by: Vincent Mailhol <mailhol@kernel.org> >> --- > > This is ok, to fix. With the other two patches being Nack-ed, we are only left with this one in the series. Do you want me to resend or do you prefer to directly cherry pick this one? Yours sincerely, Vincent Mailhol
© 2016 - 2025 Red Hat, Inc.