Skip to contentSkip to conversation

compile error in scripts/dtc/libfdt/fdt.c

PATCH Pavel Machek 2 participants 2 messages Mar 14, 2021 – Mar 22, 2021 Device tree

lore
Share & tools
lore
#0 lore raw

Hi!

I get failure building ARM kernel. I can workaround it with. Are system fdt headers used, or something like that?

I failed to copy the error message, but FDT_ERR_ALIGNMENT was undefined symbol.

This is on 5.12-rc3.

BR,

Pavel

scripts/dtc/libfdt/fdt.c +1 -1
index 3e893073da05..d15f437567d9 100644
@@ -24,7 +24,7 @@ int32_t fdt_ro_probe_(const void *fdt)
 
 	/* The device tree must be at an 8-byte aligned address */
 	if ((uintptr_t)fdt & 7)
-		return -FDT_ERR_ALIGNMENT;
+		return -FDT_ERR_INTERNAL;
 
 	if (fdt_magic(fdt) == FDT_MAGIC) {
 		/* Complete tree */
Signature · 1 line
http://www.livejournal.com/~pavelmachek
maintainer
#1 lore raw
Quoted 8 lines · Pavel Machek

Hi!

I get failure building ARM kernel. I can workaround it with. Are system fdt headers used, or something like that?

I failed to copy the error message, but FDT_ERR_ALIGNMENT was undefined symbol.

I had another report on this. A 'git clean' solved it. I'm not sure what the underlying problem is though. None of the auto builders have complained either.

Rob