[PATCH] scripts/imx-usb-loader: Drop duplicate definition of ALIGN
Uwe Kleine-König
u.kleine-koenig at pengutronix.de
Tue Sep 15 05:45:40 EDT 2020
This fixes:
scripts/imx/imx-usb-loader.c:42: warning: "ALIGN" redefined
#define ALIGN(x, a) (((x) + (a) - 1) & ~((a) - 1))
In file included from scripts/imx/imx-usb-loader.c:35:
scripts/include/linux/kernel.h:10: note: this is the location of the previous definition
#define ALIGN(x, a) __ALIGN_MASK(x, (typeof(x))(a) - 1)
Fixes: a876d16e6ad3 ("scripts: define ALIGN(x) in scripts' <linux/kernel.h>")
Signed-off-by: Uwe Kleine-König <u.kleine-koenig at pengutronix.de>
---
scripts/imx/imx-usb-loader.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/scripts/imx/imx-usb-loader.c b/scripts/imx/imx-usb-loader.c
index 28f342633d43..e277d290352e 100644
--- a/scripts/imx/imx-usb-loader.c
+++ b/scripts/imx/imx-usb-loader.c
@@ -39,8 +39,6 @@
#define get_min(a, b) (((a) < (b)) ? (a) : (b))
-#define ALIGN(x, a) (((x) + (a) - 1) & ~((a) - 1))
-
#define FT_APP 0xaa
#define FT_CSF 0xcc
#define FT_DCD 0xee
--
2.27.0
More information about the barebox
mailing list