mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-05-23 15:44:09 +00:00
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> |
||
---|---|---|
.. | ||
crypto | ||
atomic.h | ||
bits.h | ||
errno.h | ||
list.h | ||
mem_mgt.h | ||
rtl.h | ||
spinlock.h | ||
sprintf.h | ||
types.h | ||
util.h |