[U-Boot] [PATCH v7 01/21] include: Add log2 header from the kernel

Fabio Estevam festevam at gmail.com
Thu Nov 5 21:07:00 CET 2015


On Thu, Nov 5, 2015 at 5:10 PM, Tom Rini <trini at konsulko.com> wrote:

> I can fix this much locally.  sandbox fails to build at the end:
> +(sandbox) ../arch/sandbox/include/asm/types.h:53:23: error:
> ‘CONFIG_SANDBOX_BITS_PER_LONG’ undeclared (first use in this function)

Ok, here is the fix on top of patch 18:

--- a/drivers/mtd/mtdcore.c
+++ b/drivers/mtd/mtdcore.c
@@ -28,10 +28,10 @@
 #include <linux/slab.h>
 #else
 #include <linux/err.h>
-#include <linux/log2.h>
 #include <ubi_uboot.h>
 #endif

+#include <linux/log2.h>
 #include <linux/mtd/mtd.h>
 #include <linux/mtd/partitions.h>

Thanks!


More information about the U-Boot mailing list