[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20201112180225.GC934688@ubuntu-m3-large-x86>
Date: Thu, 12 Nov 2020 11:02:25 -0700
From: Nathan Chancellor <natechancellor@...il.com>
To: Nick Desaulniers <ndesaulniers@...gle.com>
Cc: Alasdair Kergon <agk@...hat.com>,
Mike Snitzer <snitzer@...hat.com>,
Rob Herring <robherring2@...il.com>,
Mikulas Patocka <mpatocka@...hat.com>,
clang-built-linux@...glegroups.com, dm-devel@...hat.com,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] Revert "dm cache: fix arm link errors with inline"
On Tue, Nov 10, 2020 at 06:41:40PM -0800, 'Nick Desaulniers' via Clang Built Linux wrote:
> This reverts commit 43aeaa29573924df76f44eda2bbd94ca36e407b5.
>
> Since
> commit 0bddd227f3dc ("Documentation: update for gcc 4.9 requirement")
> the minimum supported version of GCC is gcc-4.9. It's now safe to remove
> this code.
>
> Link: https://github.com/ClangBuiltLinux/linux/issues/427
> Signed-off-by: Nick Desaulniers <ndesaulniers@...gle.com>
Reviewed-by: Nathan Chancellor <natechancellor@...il.com>
> ---
> drivers/md/dm-cache-target.c | 4 ----
> 1 file changed, 4 deletions(-)
>
> diff --git a/drivers/md/dm-cache-target.c b/drivers/md/dm-cache-target.c
> index 9644424591da..4bc453f5bbaa 100644
> --- a/drivers/md/dm-cache-target.c
> +++ b/drivers/md/dm-cache-target.c
> @@ -712,10 +712,6 @@ static bool block_size_is_power_of_two(struct cache *cache)
> 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);
> --
> 2.29.2.222.g5d2a92d10f8-goog
>
Powered by blists - more mailing lists