Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

hfsplus: use get/put_unaligned_* helpers

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Cc: Roman Zippel <zippel@linux-m68k.org>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Harvey Harrison and committed by
Linus Torvalds
8b3789e5 803f445f

+1 -1
+1 -1
fs/hfsplus/wrapper.c
··· 47 47 return 0; 48 48 wd->ablk_start = be16_to_cpu(*(__be16 *)(bufptr + HFSP_WRAPOFF_ABLKSTART)); 49 49 50 - extent = be32_to_cpu(get_unaligned((__be32 *)(bufptr + HFSP_WRAPOFF_EMBEDEXT))); 50 + extent = get_unaligned_be32(bufptr + HFSP_WRAPOFF_EMBEDEXT); 51 51 wd->embed_start = (extent >> 16) & 0xFFFF; 52 52 wd->embed_count = extent & 0xFFFF; 53 53