* [PATCH] Revert "dm cache: fix arm link errors with inline"
@ 2020-11-11 2:41 ` Nick Desaulniers
0 siblings, 0 replies; 6+ messages in thread
From: Nick Desaulniers @ 2020-11-11 2:41 UTC (permalink / raw)
To: Alasdair Kergon, Mike Snitzer
Cc: Rob Herring, Mikulas Patocka, clang-built-linux,
Nick Desaulniers, dm-devel, linux-kernel
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@google.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
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [dm-devel] [PATCH] Revert "dm cache: fix arm link errors with inline"
@ 2020-11-11 2:41 ` Nick Desaulniers
0 siblings, 0 replies; 6+ messages in thread
From: Nick Desaulniers @ 2020-11-11 2:41 UTC (permalink / raw)
To: Alasdair Kergon, Mike Snitzer
Cc: Nick Desaulniers, linux-kernel, clang-built-linux, dm-devel,
Mikulas Patocka, Rob Herring
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@google.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
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH] Revert "dm cache: fix arm link errors with inline"
2020-11-11 2:41 ` [dm-devel] " Nick Desaulniers
@ 2020-11-11 9:56 ` Mikulas Patocka
-1 siblings, 0 replies; 6+ messages in thread
From: Mikulas Patocka @ 2020-11-11 9:56 UTC (permalink / raw)
To: Nick Desaulniers
Cc: Alasdair Kergon, Mike Snitzer, Rob Herring, clang-built-linux,
dm-devel, linux-kernel
Acked-by: Mikulas Patocka <mpatocka@redhat.com>
On Tue, 10 Nov 2020, Nick Desaulniers 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@google.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
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [dm-devel] [PATCH] Revert "dm cache: fix arm link errors with inline"
@ 2020-11-11 9:56 ` Mikulas Patocka
0 siblings, 0 replies; 6+ messages in thread
From: Mikulas Patocka @ 2020-11-11 9:56 UTC (permalink / raw)
To: Nick Desaulniers
Cc: Mike Snitzer, linux-kernel, clang-built-linux, dm-devel,
Rob Herring, Alasdair Kergon
Acked-by: Mikulas Patocka <mpatocka@redhat.com>
On Tue, 10 Nov 2020, Nick Desaulniers 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@google.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
>
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] Revert "dm cache: fix arm link errors with inline"
2020-11-11 2:41 ` [dm-devel] " Nick Desaulniers
@ 2020-11-12 18:02 ` Nathan Chancellor
-1 siblings, 0 replies; 6+ messages in thread
From: Nathan Chancellor @ 2020-11-12 18:02 UTC (permalink / raw)
To: Nick Desaulniers
Cc: Alasdair Kergon, Mike Snitzer, Rob Herring, Mikulas Patocka,
clang-built-linux, dm-devel, linux-kernel
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@google.com>
Reviewed-by: Nathan Chancellor <natechancellor@gmail.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
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [dm-devel] [PATCH] Revert "dm cache: fix arm link errors with inline"
@ 2020-11-12 18:02 ` Nathan Chancellor
0 siblings, 0 replies; 6+ messages in thread
From: Nathan Chancellor @ 2020-11-12 18:02 UTC (permalink / raw)
To: Nick Desaulniers
Cc: Mike Snitzer, linux-kernel, clang-built-linux, dm-devel,
Mikulas Patocka, Rob Herring, Alasdair Kergon
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@google.com>
Reviewed-by: Nathan Chancellor <natechancellor@gmail.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
>
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2020-11-13 8:02 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-11 2:41 [PATCH] Revert "dm cache: fix arm link errors with inline" Nick Desaulniers
2020-11-11 2:41 ` [dm-devel] " Nick Desaulniers
2020-11-11 9:56 ` Mikulas Patocka
2020-11-11 9:56 ` [dm-devel] " Mikulas Patocka
2020-11-12 18:02 ` Nathan Chancellor
2020-11-12 18:02 ` [dm-devel] " Nathan Chancellor
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.