• Dan Williams's avatar
    [ARM] 4494/1: iop13xx: fix up elf_hwcap compile breakage · 7dea1b20
    Dan Williams authored
    arch/arm/boot/compressed/misc.o: In function `valid_user_regs':
    misc.c:(.text+0x74): undefined reference to `elf_hwcap'
    
    This triggers after the various elf_hwcap cleanups in:
    f884b1cf
    d1cbbd6b
    
    include/asm-arm/arch-iop13xx/uncompress.h calls cpu_relax while spinning on
    a register value.  cpu_relax requires processor.h->ptrace.h->hwcap.h
    
    'elf_hwcap' is defined as an extern, but since the uncompressor does not
    link against arch/arm/kernel/setup.c 'elf_hwcap' remains undefined.
    
    Fix is to open code the cpu_relax() call as barrier().
    
    Cc: Lennert Buytenhek <kernel@wantstofly.org>
    Cc: Catalin Marinas <catalin.marinas@arm.com>
    Signed-off-by: default avatarDan Williams <dan.j.williams@intel.com>
    Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
    7dea1b20
uncompress.h 426 Bytes