From: Patrick DELAUNAY Date: Wed, 7 Mar 2018 14:26:50 +0000 Subject: [U-Boot] [PATCH 03/16] common: add a prototype for mach_cpu_init() In-Reply-To: References: <1520259883-4929-1-git-send-email-patrick.delaunay@st.com> <1520259883-4929-4-git-send-email-patrick.delaunay@st.com> Message-ID: <31f088c4123848c9a0b81ec6efab6578@SFHDAG6NODE3.st.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: u-boot@lists.denx.de Hi Simon > -----Original Message----- > From: sjg at google.com [mailto:sjg at google.com] On Behalf Of Simon Glass > > Hi Patrick, > > On 5 March 2018 at 07:24, Patrick Delaunay wrote: > > > > avoid warning: no previous prototype for ‘mach_cpu_init’ > > +/** > > + * mach_cpu_init() - SoC/machine dependent CPU setup > > + * > > + * This is called after arch_cpu_init(). It should handle any > > + * SoC or machine specific init needed to continue the init sequence. > > +See > > + * board_f.c for where it is called. If this is not provided, a > > +default > > + * version (which does nothing) will be used. > > Great, but can you please add @return docs? Yes, I will do it @return: 0 on success, otherwise error I will also add the same for arch_cpu_init() in the same patch... but after check, the warning is no more present in the v1 Serie after rework before push, because mach_stm32mp don't use mach_cpu_init() but arch_cpu_init(). So this patch is not more required for my stm32mp arch (and I will remove it in V2 serie) But I will sent today just this patch in v2 (without Serie). > > Regards, > Simon Regards Patrick