* Checkpatch possible false positive
@ 2011-12-22 18:39 Marco Navarra
2012-01-05 19:21 ` Andy Whitcroft
0 siblings, 1 reply; 2+ messages in thread
From: Marco Navarra @ 2011-12-22 18:39 UTC (permalink / raw)
To: Andy Whitcroft; +Cc: linux-kernel
Hello
after running checkpatch on some files, it returns "ERROR: Macros with
complex values should be enclosed in parenthesis" while processing
code like this:
#define SOMEVALUE 'x'
It happens on agpgart.h, checkpatch complains about line 30 that
corresponds to:
#define AGPIOC_BASE 'A'
Running it on elf.h returns the same error on these lines
#define ELFMAG1 'E'
#define ELFMAG2 'L'
#define ELFMAG3 'F'
Do you think this could be a false positive?
The tree is linux-next and checkaptch version is 0.32
Thank you
Marco
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Checkpatch possible false positive
2011-12-22 18:39 Checkpatch possible false positive Marco Navarra
@ 2012-01-05 19:21 ` Andy Whitcroft
0 siblings, 0 replies; 2+ messages in thread
From: Andy Whitcroft @ 2012-01-05 19:21 UTC (permalink / raw)
To: Marco Navarra; +Cc: linux-kernel
On Thu, Dec 22, 2011 at 07:39:29PM +0100, Marco Navarra wrote:
> Hello
>
> after running checkpatch on some files, it returns "ERROR: Macros with
> complex values should be enclosed in parenthesis" while processing
> code like this:
> #define SOMEVALUE 'x'
>
> It happens on agpgart.h, checkpatch complains about line 30 that
> corresponds to:
> #define AGPIOC_BASE 'A'
> Running it on elf.h returns the same error on these lines
> #define ELFMAG1 'E'
> #define ELFMAG2 'L'
> #define ELFMAG3 'F'
>
> Do you think this could be a false positive?
> The tree is linux-next and checkaptch version is 0.32
It does seem likley this is something which can be without ()'s. I will
see if we can stop it being picked up.
-apw
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-01-05 19:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-22 18:39 Checkpatch possible false positive Marco Navarra
2012-01-05 19:21 ` Andy Whitcroft
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.