Message ID | Pine.LNX.4.64.1305131831110.32345@file.rdu.redhat.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Index: linux-2.6/drivers/md/dm-cache-target.c =================================================================== --- linux-2.6.orig/drivers/md/dm-cache-target.c 2013-05-14 00:03:53.276986022 +0200 +++ linux-2.6/drivers/md/dm-cache-target.c 2013-05-14 00:34:09.128986023 +0200 @@ -425,6 +425,10 @@ return cache->sectors_per_block_shift >= 0; } +/* gcc on ARM generates spurious references to __udivdi3 and __umoddi3 */ +#if defined(CONFIG_ARM) && __GNUC__ == 4 && __GNUC_MINOR__ <= 6 +__always_inline +#endif static dm_block_t block_div(dm_block_t b, uint32_t n) { do_div(b, n);