mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-01-05 23:57:10 +00:00
HV: treewide: fix violations of coding guideline C-PP-04
The coding guideline rule C-PP-04 requires that 'parentheses shall be used when referencing a MACRO parameter'. This patch adds parentheses to macro parameters or expressions that are not yet wrapped properly. This patch has no sematic impact. Tracked-On: #6776 Signed-off-by: Junjie Mao <junjie.mao@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -31,10 +31,10 @@
|
||||
* should be able to accommodate it and so that avoid the trampoline corruption.
|
||||
*/
|
||||
#define BZIMG_LOAD_PARAMS_SIZE (MEM_4K * 8)
|
||||
#define BZIMG_INITGDT_GPA(load_params_gpa) (load_params_gpa + 0UL)
|
||||
#define BZIMG_ZEROPAGE_GPA(load_params_gpa) (load_params_gpa + MEM_1K)
|
||||
#define BZIMG_CMDLINE_GPA(load_params_gpa) (load_params_gpa + MEM_1K + MEM_4K)
|
||||
#define BZIMG_EFIMMAP_GPA(load_params_gpa) (load_params_gpa + MEM_1K + MEM_4K + MEM_2K)
|
||||
#define BZIMG_INITGDT_GPA(load_params_gpa) ((load_params_gpa) + 0UL)
|
||||
#define BZIMG_ZEROPAGE_GPA(load_params_gpa) ((load_params_gpa) + MEM_1K)
|
||||
#define BZIMG_CMDLINE_GPA(load_params_gpa) ((load_params_gpa) + MEM_1K + MEM_4K)
|
||||
#define BZIMG_EFIMMAP_GPA(load_params_gpa) ((load_params_gpa) + MEM_1K + MEM_4K + MEM_2K)
|
||||
|
||||
/* TODO:
|
||||
* The value is referenced from Linux boot protocal for old kernels,
|
||||
|
||||
Reference in New Issue
Block a user