|
@@ -425,6 +425,10 @@ static bool block_size_is_power_of_two(struct cache *cache)
|
|
return cache->sectors_per_block_shift >= 0;
|
|
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)
|
|
static dm_block_t block_div(dm_block_t b, uint32_t n)
|
|
{
|
|
{
|
|
do_div(b, n);
|
|
do_div(b, n);
|