Package: fio Version: 1.33.1-1 Severity: wishlist Tags: patch User: ubuntu-de...@lists.ubuntu.com Usertags: origin-ubuntu lucid ubuntu-patch
Fio currently doesn't build on ARMv7 and could be SMP unsafe. This patch was generated to address these issues. *** /tmp/tmppkkNpJ In Ubuntu, we've applied the attached patch to achieve the following: * Fix fail to build issue on ARMv7 and make it SMP safe. We thought you might be interested in doing the same. -- System Information: Debian Release: squeeze/sid APT prefers lucid-updates APT policy: (500, 'lucid-updates'), (500, 'lucid-security'), (500, 'lucid') Architecture: armel (armv7l) Kernel: Linux 2.6.31-605-imx51 Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash
diff -u fio-1.33.1/debian/changelog fio-1.33.1/debian/changelog only in patch2: unchanged: --- fio-1.33.1.orig/arch/arch-arm.h +++ fio-1.33.1/arch/arch-arm.h @@ -22,6 +22,10 @@ #define nop __asm__ __volatile__("mov\tr0,r0\t@ nop\n\t") #define read_barrier() __asm__ __volatile__ ("" : : : "memory") #define write_barrier() __asm__ __volatile__ ("" : : : "memory") +#elif defined ( __ARM_ARCH_7A__ ) +#define nop __asm__ __volatile__ ("nop") +#define read_barrier() __sync_synchronize() +#define write_barrier() __sync_synchronize() #endif #endif