From: Tom Rini Date: Sun, 26 Oct 2014 20:35:27 -0400 Subject: [U-Boot] [PATCH] cti_flash.c: use __weak for flash_(read|write){8, 16, 32, 64} In-Reply-To: <1414181910-7750-1-git-send-email-trini@ti.com> References: <1412801889-14400-4-git-send-email-jeroen@myspectrum.nl> <1414181910-7750-1-git-send-email-trini@ti.com> Message-ID: <20141027003527.GN25506@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 Fri, Oct 24, 2014 at 04:18:30PM -0400, Tom Rini wrote: > From: Jeroen Hofstee > > For various reasons (flash access design, errata work-around) some > platforms need to implement their own flash_read/write functions, so > mark them as __weak. A follow-up cleanup here would be to remove > CONFIG_CFI_FLASH_USE_WEAK_ACCESSORS if this is always known at > compile-time, as it appears to be. > > Signed-off-by: Jeroen Hofstee > Signed-off-by: Tom Rini On IRC, Jeroen pointed out that this way does change behavior and potentially performance since in the normal case these functions no longer get inlined. So I'm withdrawing this patch. -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: