acrn-hypervisor/hypervisor/include/lib
Shiqing Gao 05ad6d6628 hv: drop the macro arguments acting as formal parameter names
This patch fixes the following issue pointed by Xiangyang and Junjie.
There are some macro arguments acting as formal parameter names.
Drop such arguments since they make no difference to the expanded
implementation and they might confuse some developers.

Here is an example.
'ptr' is dropped in this patch, which is acting as a formal parameter
name and make no difference to the expanded implementation.

-#define build_atomic_load(name, size, type, ptr)       \
+#define build_atomic_load(name, size, type)            \
 static inline type name(const volatile type *ptr)      \
{                                                       \
        type ret;                                       \
        asm volatile("mov" size " %1,%0"                \
                        : "=r" (ret)                    \
                        : "m" (*ptr)                    \
                        : "cc", "memory");              \
        return ret;                                     \
}

Some minor coding style fixes are also included in this patch.
- use TAB for the alignment rather than mixing TAB with space
- fix some typo in the comments

Tracked-On: #861
Signed-off-by: Shiqing Gao <shiqing.gao@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
2018-09-27 16:07:22 +08:00
..
crypto HV: wrap and enable hkdf_sha256 key derivation based on mbedtls 2018-08-27 09:39:05 +08:00
atomic.h hv: drop the macro arguments acting as formal parameter names 2018-09-27 16:07:22 +08:00
bits.h hv: drop the macro arguments acting as formal parameter names 2018-09-27 16:07:22 +08:00
errno.h license: Replace license text with SPDX tag 2018-06-01 10:43:06 +08:00
list.h hv: treewide: fix 'Macro parameter not in brackets' 2018-09-07 10:22:00 +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:Fix Implict conversion:actual to formal param 2018-09-18 13:09:39 +08:00
spinlock.h hv: clean up spinlock 2018-09-14 09:44:44 +08:00
sprintf.h HV:treewide:fix "Reference parameter to procedure is reassigned" 2018-07-27 12:17:12 +08:00
types.h hv: remove unused MACROs 2018-09-18 09:43:43 +08:00
util.h hv: clean up some header files 2018-09-13 13:11:57 +08:00