From: Tom Rini Date: Fri, 9 Mar 2018 09:29:39 -0500 Subject: [U-Boot] [PATCH v2] common: add a prototype for mach_cpu_init() In-Reply-To: References: <1520432900-9601-1-git-send-email-patrick.delaunay@st.com> <20180307144548.GU22474@bill-the-cat.ec.rr.com> Message-ID: <20180309142939.GJ1770@bill-the-cat.ec.rr.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: u-boot@lists.denx.de On Thu, Mar 08, 2018 at 09:57:58AM +0900, Masahiro Yamada wrote: > 2018-03-07 23:45 GMT+09:00 Tom Rini : > > On Wed, Mar 07, 2018 at 03:28:20PM +0100, Patrick Delaunay wrote: > > > >> avoid warning: no previous prototype for ‘mach_cpu_init’ > >> > >> Signed-off-by: Patrick Delaunay > > > > Reviewed-by: Tom Rini > > > > -- > > > People tend to put all sort of misc thingy into common.h > but this is one of the ugliest parts in U-Boot. > > Most of files parse that contains > unrelated / unnecessary defines. > Please realize this madness. > > I have tried to slim it down several times, > but people have added more and more. So this task never ends. > > How about splitting out platform init hooks? > ( or anything suitable is OK.) OK, sure, lets move these and relevant bits over to init.h, or init_helpers.h which already exists and is in a few of the appropriate locations already. > Also, I'd like to ban new additions to > like we do for config_whitelist.txt > (for example, record the number of lines of > then build fails if somebody increases it.) Sure, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: