Avoid gcc warnings by stripping off outer parentheses from the SHOW_DELTA*() macros; Reported-by: eibisidi
This commit is contained in:
15
convenient.h
15
convenient.h
@@ -123,15 +123,16 @@
|
||||
* as required.
|
||||
* Inspired from raspberry pi kernel src: arch/arm/mm/init.c:MLM()
|
||||
*/
|
||||
#define SHOW_DELTA_b(low, hi) ((low), (hi), ((hi) - (low)))
|
||||
#define SHOW_DELTA_K(low, hi) ((low), (hi), (((hi) - (low)) >> 10))
|
||||
#define SHOW_DELTA_M(low, hi) ((low), (hi), (((hi) - (low)) >> 20))
|
||||
#define SHOW_DELTA_G(low, hi) ((low), (hi), (((hi) - (low)) >> 30))
|
||||
#define SHOW_DELTA_MG(low, hi) ((low), (hi), (((hi) - (low)) >> 20), (((hi) - (low)) >> 30))
|
||||
#define SHOW_DELTA_b(low, hi) (low), (hi), ((hi) - (low))
|
||||
#define SHOW_DELTA_K(low, hi) (low), (hi), (((hi) - (low)) >> 10)
|
||||
#define SHOW_DELTA_M(low, hi) (low), (hi), (((hi) - (low)) >> 20)
|
||||
#define SHOW_DELTA_G(low, hi) (low), (hi), (((hi) - (low)) >> 30)
|
||||
#define SHOW_DELTA_MG(low, hi) (low), (hi), (((hi) - (low)) >> 20), (((hi) - (low)) >> 30)
|
||||
|
||||
#if (BITS_PER_LONG == 64)
|
||||
#define SHOW_DELTA_MGT(low, hi) ((low), (hi), (((hi) - (low)) >> 20), (((hi) - (low)) >> 30), (((hi) - (low)) >> 40))
|
||||
#define SHOW_DELTA_MGT(low, hi) (low), (hi), (((hi) - (low)) >> 20), (((hi) - (low)) >> 30), (((hi) - (low)) >> 40)
|
||||
#else // 32-bit
|
||||
#define SHOW_DELTA_MGT(low, hi) ((low), (hi), (((hi) - (low)) >> 20), (((hi) - (low)) >> 30))
|
||||
#define SHOW_DELTA_MGT(low, hi) (low), (hi), (((hi) - (low)) >> 20), (((hi) - (low)) >> 30)
|
||||
#endif
|
||||
|
||||
#ifdef __KERNEL__
|
||||
|
||||
Reference in New Issue
Block a user