Commit 13d58a98 authored by Benjamin Romer's avatar Benjamin Romer Committed by Greg Kroah-Hartman

staging: unisys: fix ULTRA_SPAR_CHANNEL_CLIENT_CHK_TRANSITION macro

Rename the macro to SPAR_CHANNEL_CLIENT_CHK_TRANSITION, and rename
CamelCase parameters to:

chanId => id
logCtx => log
Signed-off-by: default avatarBenjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 10b133c7
...@@ -114,12 +114,12 @@ ULTRA_CHANNELCLI_STRING(u32 v) ...@@ -114,12 +114,12 @@ ULTRA_CHANNELCLI_STRING(u32 v)
(((o) == CHANNELCLI_BUSY) && ((n) == CHANNELCLI_OWNED)) || (0)) \ (((o) == CHANNELCLI_BUSY) && ((n) == CHANNELCLI_OWNED)) || (0)) \
? (1) : (0)) ? (1) : (0))
#define ULTRA_CHANNEL_CLIENT_CHK_TRANSITION(old, new, chanId, logCtx, \ #define SPAR_CHANNEL_CLIENT_CHK_TRANSITION(old, new, id, log, \
file, line) \ file, line) \
do { \ do { \
if (!ULTRA_VALID_CHANNELCLI_TRANSITION(old, new)) \ if (!ULTRA_VALID_CHANNELCLI_TRANSITION(old, new)) \
pr_info("%s Channel StateTransition INVALID! (%s) %s(%d)-->%s(%d) @%s:%d\n", \ pr_info("%s Channel StateTransition INVALID! (%s) %s(%d)-->%s(%d) @%s:%d\n", \
chanId, "CliState<x>", \ id, "CliState<x>", \
ULTRA_CHANNELCLI_STRING(old), \ ULTRA_CHANNELCLI_STRING(old), \
old, \ old, \
ULTRA_CHANNELCLI_STRING(new), \ ULTRA_CHANNELCLI_STRING(new), \
...@@ -131,7 +131,7 @@ ULTRA_CHANNELCLI_STRING(u32 v) ...@@ -131,7 +131,7 @@ ULTRA_CHANNELCLI_STRING(u32 v)
#define ULTRA_CHANNEL_CLIENT_TRANSITION(pChan, chanId, \ #define ULTRA_CHANNEL_CLIENT_TRANSITION(pChan, chanId, \
newstate, logCtx) \ newstate, logCtx) \
do { \ do { \
ULTRA_CHANNEL_CLIENT_CHK_TRANSITION( \ SPAR_CHANNEL_CLIENT_CHK_TRANSITION( \
readl(&(((struct channel_header __iomem *) \ readl(&(((struct channel_header __iomem *) \
(pChan))->cli_state_os)), \ (pChan))->cli_state_os)), \
newstate, \ newstate, \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment