Skip to contentSkip to conversation

checkpatch.pl and assembly #defines

DISCUSSION Paul E. McKenney 2 participants 2 messages Dec 4, 2012

lore
Share & tools
lore
#0 lore raw

Hello, Andy,

The current checkpatch.pl complains about cpp macros defined as follows:

#define callit call my_function

Of course, if you do put parentheses around the definition, your assembler will complain. Could this complaint be downgraded to a warning? Or is there some way to recognize assembly cpp macros?

Thanx, Paul

#1 lore raw
Quoted 9 lines · Paul E. McKenney

Hello, Andy,

The current checkpatch.pl complains about cpp macros defined as follows:

#define callit call my_function

Of course, if you do put parentheses around the definition, your assembler will complain. Could this complaint be downgraded to a warning? Or is there some way to recognize assembly cpp macros?

Well all checkpatch output is warnings anyhow. Where are these being placed, perhaps there is a clue in that at least.

-apw