2023-07-13 09:04:02

by hexingwei001

[permalink] [raw]
Subject: [PATCH] m68k: coldfire: dma_timer: ERROR: "foo __init bar" should be "foo __init bar"

Fix one occurrences of the checkpatch.pl error:
ERROR: "foo __init bar" should be "foo __init bar"

Signed-off-by: Xingwei He <[email protected]>
---
arch/m68k/coldfire/dma_timer.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/m68k/coldfire/dma_timer.c
b/arch/m68k/coldfire/dma_timer.c
index cbb289439606..91e6728f51ed 100644
--- a/arch/m68k/coldfire/dma_timer.c
+++ b/arch/m68k/coldfire/dma_timer.c
@@ -48,7 +48,7 @@ static struct clocksource clocksource_cf_dt = {
.flags = CLOCK_SOURCE_IS_CONTINUOUS,
};

-static int __init init_cf_dt_clocksource(void)
+static int __init init_cf_dt_clocksource(void)
{
/*
* We setup DMA timer 0 in free run mode. This incrementing counter
is


2023-07-19 05:24:22

by Greg Ungerer

[permalink] [raw]
Subject: Re: [PATCH] m68k: coldfire: dma_timer: ERROR: "foo __init bar" should be "foo __init bar"

Hi Xingwei He,

On 13/7/23 18:39, [email protected] wrote:
> Fix one occurrences of the checkpatch.pl error:
> ERROR: "foo __init  bar" should be "foo __init bar"
>
> Signed-off-by: Xingwei He <[email protected]>

Thanks. Applied to m68knommu git tree, for-next branch.

Regards
Greg



> ---
>  arch/m68k/coldfire/dma_timer.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/m68k/coldfire/dma_timer.c b/arch/m68k/coldfire/dma_timer.c
> index cbb289439606..91e6728f51ed 100644
> --- a/arch/m68k/coldfire/dma_timer.c
> +++ b/arch/m68k/coldfire/dma_timer.c
> @@ -48,7 +48,7 @@ static struct clocksource clocksource_cf_dt = {
>      .flags        = CLOCK_SOURCE_IS_CONTINUOUS,
>  };
>
> -static int __init  init_cf_dt_clocksource(void)
> +static int __init init_cf_dt_clocksource(void)
>  {
>      /*
>       * We setup DMA timer 0 in free run mode. This incrementing counter is