Commit c0e87ae2 authored by Bryan Thompson's avatar Bryan Thompson Committed by Greg Kroah-Hartman

staging: unisys: visorbus: Use CURRENT_FILE_PC in base postcode macro

Use CURRENT_FILE_PC directly in the POSTCODE_LINUX macro instead of
relying on passthrough macros to provide it.
Signed-off-by: default avatarBryan Thompson <bryan.thompson@unisys.com>
Signed-off-by: default avatarDavid Kershner <david.kershner@unisys.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent c7e04776
...@@ -242,10 +242,11 @@ enum event_pc { /* POSTCODE event identifier tuples */ ...@@ -242,10 +242,11 @@ enum event_pc { /* POSTCODE event identifier tuples */
*/ */
/* BASE FUNCTIONS */ /* BASE FUNCTIONS */
#define POSTCODE_LINUX(DRIVER_PC, EVENT_PC, pc16bit1, pc16bit2, severity) \ #define POSTCODE_LINUX(EVENT_PC, pc16bit1, pc16bit2, severity) \
do { \ do { \
unsigned long long post_code_temp; \ unsigned long long post_code_temp; \
post_code_temp = (((u64)DRIVER_PC) << 56) | (((u64)EVENT_PC) << 44) | \ post_code_temp = (((u64)CURRENT_FILE_PC) << 56) | \
(((u64)EVENT_PC) << 44) | \
((((u64)__LINE__) & 0xFFF) << 32) | \ ((((u64)__LINE__) & 0xFFF) << 32) | \
((((u64)pc16bit1) & 0xFFFF) << 16) | \ ((((u64)pc16bit1) & 0xFFFF) << 16) | \
(((u64)pc16bit2) & 0xFFFF); \ (((u64)pc16bit2) & 0xFFFF); \
...@@ -254,14 +255,13 @@ do { \ ...@@ -254,14 +255,13 @@ do { \
/* MOST COMMON */ /* MOST COMMON */
#define POSTCODE_LINUX_2(EVENT_PC, severity) \ #define POSTCODE_LINUX_2(EVENT_PC, severity) \
POSTCODE_LINUX(CURRENT_FILE_PC, EVENT_PC, 0, 0, severity) POSTCODE_LINUX(EVENT_PC, 0, 0, severity)
#define POSTCODE_LINUX_3(EVENT_PC, pc32bit, severity) \ #define POSTCODE_LINUX_3(EVENT_PC, pc32bit, severity) \
POSTCODE_LINUX(CURRENT_FILE_PC, EVENT_PC, (pc32bit >> 16), \ POSTCODE_LINUX(EVENT_PC, (pc32bit >> 16), (pc32bit & 0xFFFF), \
(pc32bit & 0xFFFF), severity) severity)
#define POSTCODE_LINUX_4(EVENT_PC, pc16bit1, pc16bit2, severity) \ #define POSTCODE_LINUX_4(EVENT_PC, pc16bit1, pc16bit2, severity) \
POSTCODE_LINUX(CURRENT_FILE_PC, EVENT_PC, pc16bit1, \ POSTCODE_LINUX(EVENT_PC, pc16bit1, pc16bit2, severity)
pc16bit2, severity)
#endif /* __IOMONINTF_H__ */ #endif /* __IOMONINTF_H__ */
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