[U-Boot] [PATCH 1/3] The BUILD_BUG_ON macros moved from ubi_uboot.h to common.h

Michael Zaidman michael.zaidman at gmail.com
Fri Apr 2 12:56:41 CEST 2010


On Fri, Apr 2, 2010 at 11:52 AM, Mike Frysinger <vapier at gentoo.org> wrote:
> On Thursday 01 April 2010 13:16:53 Michael Zaidman wrote:
>> The BUILD_BUG_ON macros made availible for rest of the u-boot code
>> by moving it from ubi_uboot.h to common.h. In Linux kernel this
>> widely used macros is defined in kernel.h file.
>
> compiler.h might be a better place so that it is available to host tools too
> -mike
>
The common.h includes image.h which includes compiler.h, so
technically it should works also. I have a doubt however -  what about
location of similar staff such as BUG, BUG_ON, debug, error, etc.
Should it also be moved into compiler.h file?


More information about the U-Boot mailing list