2022-05-14 13:29:49

by Yue Haibing

[permalink] [raw]
Subject: [PATCH -next] edac: i5100_edac: Remove unused inline function i5100_nrecmema_dm_buf_id()

commit a4972b1b9a04 ("edac: i5100_edac: Remove unused i5100_recmema_dm_buf_id")
leave this behind, remove it.
Signed-off-by: YueHaibing <[email protected]>
---
drivers/edac/i5100_edac.c | 5 -----
1 file changed, 5 deletions(-)

diff --git a/drivers/edac/i5100_edac.c b/drivers/edac/i5100_edac.c
index 324a46b8479b..f5d82518c15e 100644
--- a/drivers/edac/i5100_edac.c
+++ b/drivers/edac/i5100_edac.c
@@ -244,11 +244,6 @@ static inline u32 i5100_nrecmema_rank(u32 a)
return a >> 8 & ((1 << 3) - 1);
}

-static inline u32 i5100_nrecmema_dm_buf_id(u32 a)
-{
- return a & ((1 << 8) - 1);
-}
-
static inline u32 i5100_nrecmemb_cas(u32 a)
{
return a >> 16 & ((1 << 13) - 1);
--
2.17.1



2022-05-18 04:34:40

by Borislav Petkov

[permalink] [raw]
Subject: Re: [PATCH -next] edac: i5100_edac: Remove unused inline function i5100_nrecmema_dm_buf_id()

On Sat, May 14, 2022 at 04:04:33PM +0800, YueHaibing wrote:
> commit a4972b1b9a04 ("edac: i5100_edac: Remove unused i5100_recmema_dm_buf_id")
> leave this behind, remove it.
> Signed-off-by: YueHaibing <[email protected]>
> ---
> drivers/edac/i5100_edac.c | 5 -----
> 1 file changed, 5 deletions(-)
>
> diff --git a/drivers/edac/i5100_edac.c b/drivers/edac/i5100_edac.c
> index 324a46b8479b..f5d82518c15e 100644
> --- a/drivers/edac/i5100_edac.c
> +++ b/drivers/edac/i5100_edac.c
> @@ -244,11 +244,6 @@ static inline u32 i5100_nrecmema_rank(u32 a)
> return a >> 8 & ((1 << 3) - 1);
> }
>
> -static inline u32 i5100_nrecmema_dm_buf_id(u32 a)
> -{
> - return a & ((1 << 8) - 1);
> -}
> -
> static inline u32 i5100_nrecmemb_cas(u32 a)
> {
> return a >> 16 & ((1 << 13) - 1);
> --

Applied, thanks.

--
Regards/Gruss,
Boris.

https://people.kernel.org/tglx/notes-about-netiquette