From: Yi Sun Date: Wed, 16 Aug 2017 09:03:29 +0000 (+0200) Subject: x86/psr: fix coding style issue X-Git-Tag: archive/raspbian/4.11.1-1+rpi1~1^2~66^2~1679 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=4befb4ed85cf5f6784f8c0aaf1d2dba1dbd26ac0;p=xen.git x86/psr: fix coding style issue In psr.c, we defined some macros but the coding style is not good. Use '(1u << X)' to replace '(1< --- diff --git a/xen/arch/x86/psr.c b/xen/arch/x86/psr.c index 84f213ccf6..c2036cbed4 100644 --- a/xen/arch/x86/psr.c +++ b/xen/arch/x86/psr.c @@ -31,9 +31,9 @@ * - PSR Intel Platform Shared Resource */ -#define PSR_CMT (1<<0) -#define PSR_CAT (1<<1) -#define PSR_CDP (1<<2) +#define PSR_CMT (1u << 0) +#define PSR_CAT (1u << 1) +#define PSR_CDP (1u << 2) #define CAT_CBM_LEN_MASK 0x1f #define CAT_COS_MAX_MASK 0xffff