Skip to content

Commit

Permalink
Merge pull request ceph#4834 from liewegas/wip-11461
Browse files Browse the repository at this point in the history
fix build on arm w/ old kernels

Signed-off-by: Noah Watkins <[email protected]>
  • Loading branch information
dotnwat committed Jun 5, 2015
2 parents 905a867 + fdcc007 commit a8500ce
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/arch/arm.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,11 @@ int ceph_arch_arm_probe(void)
ceph_arch_neon = (get_hwcap() & HWCAP_NEON) == HWCAP_NEON;
#elif __aarch64__ && __linux__
ceph_arch_neon = (get_hwcap() & HWCAP_ASIMD) == HWCAP_ASIMD;
# ifdef HWCAP_CRC32
ceph_arch_aarch64_crc32 = (get_hwcap() & HWCAP_CRC32) == HWCAP_CRC32;
# else
ceph_arch_aarch64_crc32 = false; // sorry!
# endif
#else
if (0)
get_hwcap(); // make compiler shut up
Expand Down

0 comments on commit a8500ce

Please sign in to comment.