drm: Clean up errors in drm_dp_mst_topology.h
Subsystems (2)
PATCH 1/1 drm: Clean up errors in drm_dp_mst_topology.h
Fix the following errors reported by checkpatch:
ERROR: space prohibited before open square bracket '['
Signed-off-by chenxuebing <[email protected]>
--- drivers/gpu/drm/display/drm_dp_mst_topology.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/gpu/drm/display/drm_dp_mst_topology.c +3 -3
@@ -100,7 +100,7 @@ static bool drm_dp_mst_port_downstream_of_branch(struct drm_dp_mst_port *port,#define DBG_PREFIX "[dp_mst]" -#define DP_STR (x) [DP_ ## x] = #x +#define DP_STR (x)[DP_ ## x] = #xstatic const char *drm_dp_mst_req_type_str (u8 req_type) {
@@ -131,7 +131,7 @@ static const char *drm_dp_mst_req_type_str(u8 req_type) }#undef DP_STR -#define DP_STR (x) [DP_NAK_ ## x] = #x +#define DP_STR (x)[DP_NAK_ ## x] = #xstatic const char *drm_dp_mst_nak_reason_str (u8 nak_reason) {
@@ -156,7 +156,7 @@ static const char *drm_dp_mst_nak_reason_str(u8 nak_reason) }#undef DP_STR -#define DP_STR (x) [DRM_DP_SIDEBAND_TX_ ## x] = #x +#define DP_STR (x)[DRM_DP_SIDEBAND_TX_ ## x] = #xstatic const char *drm_dp_mst_sideband_tx_state_str (int state) {
Signature · 1 line
2.17.1
Quoted 3 lines · chenxuebing
Fix the following errors reported by checkpatch:
ERROR: space prohibited before open square bracket '['
Same here, checkpatch just isn't clever enough to realize it's within a macro.
BR,
Jani.
Quoted 37 lines
Signed-off-by chenxuebing <[email protected]>--- drivers/gpu/drm/display/drm_dp_mst_topology.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)drivers/gpu/drm/display/drm_dp_mst_topology.c +3
-3@@ -100,7 +100,7 @@ static bool drm_dp_mst_port_downstream_of_branch(struct drm_dp_mst_port *port,#define DBG_PREFIX "[dp_mst]" -#define DP_STR (x) [DP_ ## x] = #x +#define DP_STR (x)[DP_ ## x] = #xstatic const char *drm_dp_mst_req_type_str (u8 req_type) {@@ -131,7 +131,7 @@ static const char *drm_dp_mst_req_type_str(u8 req_type) }#undef DP_STR -#define DP_STR (x) [DP_NAK_ ## x] = #x +#define DP_STR (x)[DP_NAK_ ## x] = #xstatic const char *drm_dp_mst_nak_reason_str (u8 nak_reason) {@@ -156,7 +156,7 @@ static const char *drm_dp_mst_nak_reason_str(u8 nak_reason) }#undef DP_STR -#define DP_STR (x) [DRM_DP_SIDEBAND_TX_ ## x] = #x +#define DP_STR (x)[DRM_DP_SIDEBAND_TX_ ## x] = #xstatic const char *drm_dp_mst_sideband_tx_state_str (int state) {
Signature · 1 line
Jani Nikula, Intel