acrn-hypervisor/hypervisor/include/lib
Xiangyang Wu 77c3917544 HV:treewide:avoid using multiple # or ## in a macro
In the C99 standard, the order of evaluation associated with
multiple #, multiple ## or a mix of # and ## preprocessor
operator is unspecified. For this case, gcc 7.3.0 manual
does not specify related implementation. So it is unsafe
to use multiple # or ## in a macro.
BTW, there are some macros with one or more "##" which are
not used by hypervisor.

Update relate codes to avoid using multiple # or ## in a macro;
Remove unused macros with one or more "##";
Remove "struct __hack;" at the end of GETCC since it is useless.

Note:
     '##' operator usage constraints: A ## preprocessing token shall
     not occur at the beginning or at the end of a replacement list
     for either form of macro definition.
V1--V2:
	Update relate codes to avoid using multiple # or ## in a macro.
V2-->V3:
	Remove unused macros with one or more "##";
	Remove "struct __hack;" at the end of GETCC since it is useless.

Signed-off-by: Xiangyang Wu <xiangyang.wu@linux.intel.com>
Reviewed-by: Junjie Mao <junjie.mao@intel.com>
2018-08-02 13:10:16 +08:00
..
crypto license: Replace license text with SPDX tag 2018-06-01 10:43:06 +08:00
atomic.h HV:treewide:Update the type of return value and parameters of atomic operations 2018-07-19 14:39:47 +08:00
bits.h HV: Rename functions beginning with "_" 2018-07-30 10:11:54 +08:00
errno.h license: Replace license text with SPDX tag 2018-06-01 10:43:06 +08:00
list.h HV: Rename functions beginning with "_" 2018-07-30 10:11:54 +08:00
macros.h HV:treewide:avoid using multiple # or ## in a macro 2018-08-02 13:10:16 +08:00
mem_mgt.h HV:treewide:Update return type of function ffs64 and ffz64 2018-07-02 15:11:22 +08:00
rtl.h HV:treewide:fix "Reference parameter to procedure is reassigned" 2018-07-27 12:17:12 +08:00
spinlock.h HV: handle integral issue report by MISRA-C 2018-07-16 16:24:29 +08:00
sprintf.h HV:treewide:fix "Reference parameter to procedure is reassigned" 2018-07-27 12:17:12 +08:00
stdarg.h license: Replace license text with SPDX tag 2018-06-01 10:43:06 +08:00
types.h HV:lib:fix "signed/unsigned conversion without cast" 2018-07-04 12:18:38 +08:00
util.h HV: Bracket for the same level of precendence 2018-07-24 10:10:39 +08:00