From: David Binder Date: Fri, 17 Mar 2017 15:27:22 +0000 (-0400) Subject: staging: unisys: visorbus: vmcallinterface.h: Fix #define formatting X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=07b7eef2c507c7494da0f62fd87e2197c386b856;p=openwrt%2Fstaging%2Fblogic.git staging: unisys: visorbus: vmcallinterface.h: Fix #define formatting In an effort to create a more uniform coding style within the Unisys s-Par driver set, this patch adjusts the formatting of all #define directives within this source file to match the following template, and thereby eliminate irregular usage of whitespace: Reviewed-by: Tim Sell The amount of whitespace used between the and the is dependent on what is needed to make the surrounding #define directives as uniform as possible. Signed-off-by: David Binder Signed-off-by: David Kershner Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/unisys/visorbus/vmcallinterface.h b/drivers/staging/unisys/visorbus/vmcallinterface.h index 3ba1ed7d42e3..06bd3000ecf9 100644 --- a/drivers/staging/unisys/visorbus/vmcallinterface.h +++ b/drivers/staging/unisys/visorbus/vmcallinterface.h @@ -59,7 +59,7 @@ __unisys_extended_vmcall_gnuc(unsigned long long tuple, #endif /* */ /* define subsystem number for AppOS, used in uislib driver */ -#define MDS_APPOS 0x4000000000000000L /* subsystem = 62 - AppOS */ +#define MDS_APPOS 0x4000000000000000L /* subsystem = 62 - AppOS */ enum vmcall_monitor_interface_method_tuple { /* VMCALL identification tuples */ /* Note: when a new VMCALL is added: * - the 1st 2 hex digits correspond to one of the @@ -83,14 +83,14 @@ enum vmcall_monitor_interface_method_tuple { /* VMCALL identification tuples */ }; #define VMCALL_SUCCESS 0 -#define VMCALL_SUCCESSFUL(result) (result == 0) +#define VMCALL_SUCCESSFUL(result) (result == 0) #define unisys_vmcall(tuple, reg_ebx, reg_ecx) \ __unisys_vmcall_gnuc(tuple, reg_ebx, reg_ecx) #define unisys_extended_vmcall(tuple, reg_ebx, reg_ecx, reg_edx) \ __unisys_extended_vmcall_gnuc(tuple, reg_ebx, reg_ecx, reg_edx) #define ISSUE_IO_VMCALL(method, param, result) \ - (result = unisys_vmcall(method, (param) & 0xFFFFFFFF, \ + (result = unisys_vmcall(method, (param) & 0xFFFFFFFF, \ (param) >> 32)) /* Structures for IO VMCALLs */ @@ -162,16 +162,16 @@ enum event_pc { /* POSTCODE event identifier tuples */ * entered/exited from. */ -#define POSTCODE_LINUX(EVENT_PC, pc16bit1, pc16bit2, severity) \ -do { \ - unsigned long long post_code_temp; \ - post_code_temp = (((u64)CURRENT_FILE_PC) << 56) | \ - (((u64)EVENT_PC) << 44) | \ - ((((u64)__LINE__) & 0xFFF) << 32) | \ - ((((u64)pc16bit1) & 0xFFFF) << 16) | \ - (((u64)pc16bit2) & 0xFFFF); \ - unisys_extended_vmcall(VMCALL_POST_CODE_LOGEVENT, severity, \ - MDS_APPOS, post_code_temp); \ +#define POSTCODE_LINUX(EVENT_PC, pc16bit1, pc16bit2, severity) \ +do { \ + unsigned long long post_code_temp; \ + post_code_temp = (((u64)CURRENT_FILE_PC) << 56) | \ + (((u64)EVENT_PC) << 44) | \ + ((((u64)__LINE__) & 0xFFF) << 32) | \ + ((((u64)pc16bit1) & 0xFFFF) << 16) | \ + (((u64)pc16bit2) & 0xFFFF); \ + unisys_extended_vmcall(VMCALL_POST_CODE_LOGEVENT, severity, \ + MDS_APPOS, post_code_temp); \ } while (0) #endif /* __VMCALLINTERFACE_H__ */