Fix ALIGN_UP duplicate definition error

ALIGN_UP has been defined in nuttx.h

Signed-off-by: wangmingrong1 <wangmingrong1@xiaomi.com>
This commit is contained in:
wangmingrong1
2024-11-20 10:28:50 +08:00
committed by Xiang Xiao
parent 540036ab60
commit d41e3da911
+2 -2
View File
@@ -23,6 +23,8 @@
****************************************************************************/ ****************************************************************************/
#include <nuttx/config.h> #include <nuttx/config.h>
#include <nuttx/nuttx.h>
#include <sys/types.h> #include <sys/types.h>
#include <stdint.h> #include <stdint.h>
#include <assert.h> #include <assert.h>
@@ -43,8 +45,6 @@
* Pre-processor Definitions * Pre-processor Definitions
****************************************************************************/ ****************************************************************************/
#define ALIGN_UP(x, a) (((x) + (a) - 1) & ~((a) - 1))
/* Configuration ************************************************************/ /* Configuration ************************************************************/
/* Terminology. /* Terminology.