From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Sun, 27 Apr 2014 20:07:55 +0200 Subject: [U-Boot] [PATCH v3 8/9] sunxi: non-FEL SPL boot support for sun7i In-Reply-To: <1398618034.19277.128.camel@hastur.hellion.org.uk> References: <1397844323.19277.26.camel@hastur.hellion.org.uk> <201404262046.12540.marex@denx.de> <1398618034.19277.128.camel@hastur.hellion.org.uk> Message-ID: <201404272007.55107.marex@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Sunday, April 27, 2014 at 07:00:34 PM, Ian Campbell wrote: > On Sat, 2014-04-26 at 20:46 +0200, Marek Vasut wrote: > > > +#define ALIGN(x, a) __ALIGN_MASK((x), (typeof(x))(a)-1) > > > +#define __ALIGN_MASK(x, mask) (((x)+(mask))&~(mask)) > > > > Isn't this already defined in include/common.h ? > > Yes but it seems that header isn't usable by tools/* AFAICT. I get a > boatload of compiler errors when I try... There are a couple of things which include it even in tools/ : # git grep common.h tools/ tools/patman/test.py: include/common.h | 8 ++++++ tools/patman/test.py:+#include tools/scripts/define2mk.sed:# which preprocesses the common.h header files and outputs the final tools/updater/cmd_flash.c:#include tools/updater/flash.c:#include tools/updater/flash_hw.c:#include tools/updater/update.c:#include tools/updater/utils.c:#include btw. I should have escaped the dot in common.h pattern, but whatever ... Best regards, Marek Vasut