• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 
3 #include_next <linux/kernel.h>
4 
5 /* Workarounds for imx8image.c which uses kernel macros on host side */
6 
7 #ifndef ALIGN
8 #define ALIGN(x,a)		__ALIGN_MASK((x),(typeof(x))(a)-1)
9 #endif
10 
11 #ifndef __ALIGN_MASK
12 #define __ALIGN_MASK(x,mask)	(((x)+(mask))&~(mask))
13 #endif
14