From mboxrd@z Thu Jan 1 00:00:00 1970 From: Heiko Schocher Date: Mon, 10 Jan 2011 08:09:05 +0100 Subject: [U-Boot] [PATCH 1/2] common: introduce a genutils.h file In-Reply-To: <20110109164626.BC660127@gemini.denx.de> References: <1291903238-29071-1-git-send-email-hs@denx.de> <1292232393-26481-1-git-send-email-hs@denx.de> <20110109164626.BC660127@gemini.denx.de> Message-ID: <4D2AB091.9030405@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 Hello Wolfgang, Wolfgang Denk wrote: > In message <1292232393-26481-1-git-send-email-hs@denx.de> you wrote: >> as discussed in thread >> http://thread.gmane.org/gmane.comp.boot-loaders.u-boot/76654 >> >> and as a result of this discussion Michael Zaidman >> proposed to create a genutils.h, see: >> >> http://thread.gmane.org/gmane.comp.boot-loaders.u-boot/78692 >> >> So, introduce this genutils.h, as BUILD_BUG_ON is also >> needed in sensor support. >> >> Signed-off-by: Heiko Schocher >> cc: Michael Zaidman >> --- >> maybe I should include genutils.h in common.h ? >> >> include/genutils.h | 30 ++++++++++++++++++++++++++++++ > > I do not like the idea of adding yet another nonstandard header file > with just a few definitions in it. > > Linux defines this is include/linux/kernel.h, i. e. in a pretty > central place, and we should porobably do the same. > > How about adding it to include/common.h instead? Hmm.. I thought exactly this should not go in common.h as a result from this thread: http://thread.gmane.org/gmane.comp.boot-loaders.u-boot/78692 bye, Heiko -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany