OSDN Git Service

Fix misc-macro-parentheses warnings in kexec_tools.
authorChih-Hung Hsieh <chh@google.com>
Wed, 18 May 2016 21:55:10 +0000 (14:55 -0700)
committerChih-Hung Hsieh <chh@google.com>
Wed, 18 May 2016 21:55:10 +0000 (14:55 -0700)
Bug: 28705665
Change-Id: Ie9f5ffafd9a89f412d7a6495002ada50f18b645e

kexec_tools/kexecload.c

index 18f5e64..2bf3d18 100644 (file)
@@ -21,7 +21,7 @@
 // Physical buffer address cannot overlap with other regions
 #define START_ADDRESS 0x44000000
 
-#define ROUND_TO_PAGE(address,pagesize) ((address + pagesize - 1) & (~(pagesize - 1)))
+#define ROUND_TO_PAGE(address,pagesize) (((address) + (pagesize) - 1) & (~((pagesize) - 1)))
 
 /*
  * Gives file position and resets current position to begining of file