Re: bug in checkpatch (on pointers to typedefs?)

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Benny Halevy <bhalevy@...>
Cc: Marcin Slusarz <marcin.slusarz@...>, LKML <linux-kernel@...>
Date: Monday, February 11, 2008 - 12:40 pm

On Mon, Feb 11, 2008 at 06:05:48PM +0200, Benny Halevy wrote:

But that isn't actually syntactically correct code is it?  You have types
as parameters like a function declaration, but no return type.  So there
is no hint to checkpatch that this is a function declaration and therefore
the parameters are not expected to be types, nor are they checked as such.

The following diff is clean on the latest version of checkpatch:

Signed-off-by: john@smith.net
---
diff a/f.c b/f.c
--- a/f.c
+++ b/f.c
@@ -1,0 +1,2 @@
+void foo(int a, my_uint32 *);
+int bar(int a, my_uint32_t *);
EOF

Could you try out the version of checkpatch at the URL below on the real
patch you are using to test, and let me know if it works.  There are
a number of improvements to type tracking in the face of ifdef's and
the like.  If it doesn't could I have the hunk which fails:

  http://www.kernel.org/pub/linux/kernel/people/apw/checkpatch/checkpatch.pl-next

-apw
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
bug in checkpatch (on pointers to typedefs?), Marcin Slusarz, (Sun Feb 10, 10:33 am)
Re: bug in checkpatch (on pointers to typedefs?), Jan Engelhardt, (Wed Feb 13, 3:43 pm)
Re: bug in checkpatch (on pointers to typedefs?), Andy Whitcroft, (Thu Feb 14, 6:06 am)
Re: bug in checkpatch (on pointers to typedefs?), Jan Engelhardt, (Thu Feb 14, 2:29 pm)
Re: bug in checkpatch (on pointers to typedefs?), Andy Whitcroft, (Mon Feb 11, 6:23 am)
Re: bug in checkpatch (on pointers to typedefs?), Marcin Slusarz, (Mon Feb 11, 2:09 pm)
Re: bug in checkpatch (on pointers to typedefs?), Benny Halevy, (Mon Feb 11, 12:05 pm)
Re: bug in checkpatch (on pointers to typedefs?), Andy Whitcroft, (Mon Feb 11, 12:40 pm)
Re: bug in checkpatch (on pointers to typedefs?), Benny Halevy, (Mon Feb 11, 12:58 pm)
Re: bug in checkpatch (on pointers to typedefs?), Andy Whitcroft, (Mon Feb 11, 2:42 pm)
Re: bug in checkpatch (on pointers to typedefs?), Benny Halevy, (Tue Feb 12, 4:21 am)