From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kevin Smith Date: Wed, 16 Sep 2015 20:58:29 +0000 Subject: [U-Boot] U-boot UBI breaks build with -O0 Message-ID: <55F9D7F9.9040806@elecsyscorp.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Some of the debug functions for UBI are preprocessed out for U-boot (ifndef __UBOOT__), but their calls are optimized out at higher optimization levels, so this does not cause a problem. When building with -O0, the linker gives an error: fs/ubifs/io.c:162: undefined reference to `dbg_leb_unmap' This function is in a #ifndef __UBOOT__ section. Kevin Smith