From: Tom Rini Date: Sat, 22 Dec 2012 08:19:46 -0700 Subject: [U-Boot] [PATCH v2] env: don't generate callback list entries for SPL In-Reply-To: <20121220164951.dc693a495ed03d75e79fb71a@freescale.com> References: <20121220215105.GA16627@buserror.net> <20121220164951.dc693a495ed03d75e79fb71a@freescale.com> Message-ID: <20121222151946.GA7095@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Thu, Dec 20, 2012 at 04:49:51PM -0600, Kim Phillips wrote: > On Thu, 20 Dec 2012 15:51:05 -0600 > Scott Wood wrote: > > > SPL doesn't write to the environment. These list entries prevent the > > functions from being garbage-collected, even though nothing will look at > > the list. This caused several SPL builds (e.g. P2020RDB-PC_NAND) to > > break due to size limitations and/or unresolved symbols. > > > > A static inline function is used to provide a context in which we > > can consume the callback, and thus avoid unused function warnings. > > > > Signed-off-by: Scott Wood > > Acked-by: Joe Hershberger > > --- > > Acked-by: Kim Phillips Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: