projects
/
platform
/
adaptation
/
renesas_rcar
/
renesas_kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
dm cache: fix arm link errors with inline
[platform/adaptation/renesas_rcar/renesas_kernel.git]
/
drivers
/
md
/
dm-cache-target.c
diff --git
a/drivers/md/dm-cache-target.c
b/drivers/md/dm-cache-target.c
index
df44b60
..
0df3ec0
100644
(file)
--- a/
drivers/md/dm-cache-target.c
+++ b/
drivers/md/dm-cache-target.c
@@
-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)
{
do_div(b, n);
static dm_block_t block_div(dm_block_t b, uint32_t n)
{
do_div(b, n);