* [PATCH] drm: Clean up errors in drm_dp_helper.h
@ 2024-01-11 6:44 chenxuebing
2024-01-11 9:58 ` Jani Nikula
0 siblings, 1 reply; 2+ messages in thread
From: chenxuebing @ 2024-01-11 6:44 UTC (permalink / raw
To: airlied, tzimmermann, daniel, maarten.lankhorst, mripard
Cc: linux-kernel, dri-devel, chenxuebing
Fix the following errors reported by checkpatch:
ERROR: space prohibited before open square bracket '['
Signed-off-by: chenxuebing <chenxb_99091@126.com>
---
drivers/gpu/drm/display/drm_dp_helper.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/display/drm_dp_helper.c b/drivers/gpu/drm/display/drm_dp_helper.c
index b1ca3a1100da..2704bf703040 100644
--- a/drivers/gpu/drm/display/drm_dp_helper.c
+++ b/drivers/gpu/drm/display/drm_dp_helper.c
@@ -2133,7 +2133,7 @@ void drm_dp_aux_unregister(struct drm_dp_aux *aux)
}
EXPORT_SYMBOL(drm_dp_aux_unregister);
-#define PSR_SETUP_TIME(x) [DP_PSR_SETUP_TIME_ ## x >> DP_PSR_SETUP_TIME_SHIFT] = (x)
+#define PSR_SETUP_TIME(x)[DP_PSR_SETUP_TIME_ ## x >> DP_PSR_SETUP_TIME_SHIFT] = (x)
/**
* drm_dp_psr_setup_time() - PSR setup in time usec
--
2.17.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] drm: Clean up errors in drm_dp_helper.h
2024-01-11 6:44 [PATCH] drm: Clean up errors in drm_dp_helper.h chenxuebing
@ 2024-01-11 9:58 ` Jani Nikula
0 siblings, 0 replies; 2+ messages in thread
From: Jani Nikula @ 2024-01-11 9:58 UTC (permalink / raw
To: chenxuebing, airlied, tzimmermann, daniel, maarten.lankhorst,
mripard
Cc: linux-kernel, dri-devel, chenxuebing
On Thu, 11 Jan 2024, chenxuebing <chenxb_99091@126.com> wrote:
> Fix the following errors reported by checkpatch:
>
> ERROR: space prohibited before open square bracket '['
Nah, checkpatch just isn't clever enough to realize it's within a macro.
BR,
Jani.
>
> Signed-off-by: chenxuebing <chenxb_99091@126.com>
> ---
> drivers/gpu/drm/display/drm_dp_helper.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/display/drm_dp_helper.c b/drivers/gpu/drm/display/drm_dp_helper.c
> index b1ca3a1100da..2704bf703040 100644
> --- a/drivers/gpu/drm/display/drm_dp_helper.c
> +++ b/drivers/gpu/drm/display/drm_dp_helper.c
> @@ -2133,7 +2133,7 @@ void drm_dp_aux_unregister(struct drm_dp_aux *aux)
> }
> EXPORT_SYMBOL(drm_dp_aux_unregister);
>
> -#define PSR_SETUP_TIME(x) [DP_PSR_SETUP_TIME_ ## x >> DP_PSR_SETUP_TIME_SHIFT] = (x)
> +#define PSR_SETUP_TIME(x)[DP_PSR_SETUP_TIME_ ## x >> DP_PSR_SETUP_TIME_SHIFT] = (x)
>
> /**
> * drm_dp_psr_setup_time() - PSR setup in time usec
--
Jani Nikula, Intel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-01-11 9:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-11 6:44 [PATCH] drm: Clean up errors in drm_dp_helper.h chenxuebing
2024-01-11 9:58 ` Jani Nikula
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).