2023-08-02 06:52:44

by Ran Sun

[permalink] [raw]
Subject: [PATCH] drm/amdgpu: Clean up errors in cik_ih.c

Fix the following errors reported by checkpatch:

ERROR: that open brace { should be on the previous line

Signed-off-by: Ran Sun <[email protected]>
---
drivers/gpu/drm/amd/amdgpu/cik_ih.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/cik_ih.c b/drivers/gpu/drm/amd/amdgpu/cik_ih.c
index df385ffc9768..6f7c031dd197 100644
--- a/drivers/gpu/drm/amd/amdgpu/cik_ih.c
+++ b/drivers/gpu/drm/amd/amdgpu/cik_ih.c
@@ -442,8 +442,7 @@ static void cik_ih_set_interrupt_funcs(struct amdgpu_device *adev)
adev->irq.ih_funcs = &cik_ih_funcs;
}

-const struct amdgpu_ip_block_version cik_ih_ip_block =
-{
+const struct amdgpu_ip_block_version cik_ih_ip_block = {
.type = AMD_IP_BLOCK_TYPE_IH,
.major = 2,
.minor = 0,
--
2.17.1



2023-08-07 18:32:34

by Alex Deucher

[permalink] [raw]
Subject: Re: [PATCH] drm/amdgpu: Clean up errors in cik_ih.c

Applied. Thanks!

On Wed, Aug 2, 2023 at 2:35 AM Ran Sun <[email protected]> wrote:
>
> Fix the following errors reported by checkpatch:
>
> ERROR: that open brace { should be on the previous line
>
> Signed-off-by: Ran Sun <[email protected]>
> ---
> drivers/gpu/drm/amd/amdgpu/cik_ih.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/cik_ih.c b/drivers/gpu/drm/amd/amdgpu/cik_ih.c
> index df385ffc9768..6f7c031dd197 100644
> --- a/drivers/gpu/drm/amd/amdgpu/cik_ih.c
> +++ b/drivers/gpu/drm/amd/amdgpu/cik_ih.c
> @@ -442,8 +442,7 @@ static void cik_ih_set_interrupt_funcs(struct amdgpu_device *adev)
> adev->irq.ih_funcs = &cik_ih_funcs;
> }
>
> -const struct amdgpu_ip_block_version cik_ih_ip_block =
> -{
> +const struct amdgpu_ip_block_version cik_ih_ip_block = {
> .type = AMD_IP_BLOCK_TYPE_IH,
> .major = 2,
> .minor = 0,
> --
> 2.17.1
>