[U-Boot,1/3] btrfs: use PLATFORM_NO_UNALIGNED to allow unaligned access

Message ID 94fd480fb45ad3a549ebc4130ab87043@agner.ch
State Superseded
Delegated to: Tom Rini
Headers show

Commit Message

Stefan Agner July 1, 2013, 7:16 p.m.
Reading the super block leads to data abort crashes. Enabling the no 
option works around this. Since the format of the super block is fixed 
the on-disk format unaligned access might by necessary in order to have 
support at all.

Signed-off-by: Stefan Agner <stefan@agner.ch>
  fs/btrfs/Makefile | 1 +
  1 file changed, 1 insertion(+)


diff --git a/fs/btrfs/Makefile b/fs/btrfs/Makefile
index a9e2021..104a06e 100644
--- a/fs/btrfs/Makefile
+++ b/fs/btrfs/Makefile
@@ -35,6 +35,7 @@  COBJS-$(CONFIG_FS_BTR) := btrfs.o
  SRCS	:= $(AOBJS:.o=.S) $(COBJS-y:.o=.c)
  OBJS	:= $(addprefix $(obj),$(AOBJS) $(COBJS-y))

+$(obj)btrfs.o: CFLAGS += $(PLATFORM_NO_UNALIGNED)

  all:	$(LIB) $(AOBJS)