Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp1458553rdd; Wed, 10 Jan 2024 22:43:55 -0800 (PST) X-Google-Smtp-Source: AGHT+IGoijaLIdtgbaCd/jxOAv0y3FjtzPBPOllvvk2yfjNEgWBp0TEAKQtxAMra2ZPpZjThGoLz X-Received: by 2002:ae9:e214:0:b0:781:bada:17b2 with SMTP id c20-20020ae9e214000000b00781bada17b2mr890185qkc.141.1704955435583; Wed, 10 Jan 2024 22:43:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704955435; cv=none; d=google.com; s=arc-20160816; b=oHc7KfXUMxEdxVyx373LpkbMY2akxaWVRe/Moh5rLY3Q3QyKdO/nlT1paaSJqgz3AL 3Z1fjYGMYv1oy12lax0E9HOLKe+JJ9i0aQMBf4vv/7ZSdQ/eWk930ahKpBIbbMFCjX1L DhiRZrV0fKKBkjd6vPg2QIxnWeSdxOzIrJRVjozJ0swYIJLqh1ArCA9qJ7PxWBlGekya EiFf+wIMt3tI7C76mb7PiocCbF4Zf0QLGbYxNCJWHGZOBp9SGy20ugtDaB3p1ew6XPlb Zh/Mv+S/p49lwxLt8Rkhh72ADCK0AazCqBKawLgyjF6d/JrghSOxMzLPIi8Cu1Jqsv4j Gxbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-id:precedence:message-id:date :subject:cc:to:from:dkim-signature; bh=AFybaTdIOLDtKhWkjSfj+9IhSzf1uJELy1AANTtfmo0=; fh=NfXKqsYCqr6t7yxhp2C9M+Iv8RkqaRRMYMmFVBdUBf4=; b=sIH7brUVWCcvKQ9epC6qKG1YonWT3gbzNTEj9iKcdY6NVgJp81Vixj50eul65ZWYF2 ELLEvLUa/ZjPyHvBUyzWW1DRuJKSf9Tqb4spIim8c0Ve0fB7FxP0mVW9Tl2LBmb7l7Ex zAADPU2tfuEWNNuX8L+SffLVOhXrvqSCtEw37SQvineRv/H/B4GZzKOMOSJVSRE70EZ2 PdgjgZRu3xjs+ATVzHwjyv5v27g2FMnODkM7Eg56rrYGkEBzO5naVEqQ4RKP0Ap9r2zC SBdu1fLpomwfyilghIym2u4Ltn4KSLmikEAAMRT+TaF5hy4hGD0NMEFIrWuMe+JrjinI 0VZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@126.com header.s=s110527 header.b=By7FeYAz; spf=pass (google.com: domain of linux-kernel+bounces-23110-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23110-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=126.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id f21-20020a05620a20d500b007832295fc0dsi353885qka.468.2024.01.10.22.43.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jan 2024 22:43:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-23110-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@126.com header.s=s110527 header.b=By7FeYAz; spf=pass (google.com: domain of linux-kernel+bounces-23110-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23110-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=126.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 5C3621C2354A for ; Thu, 11 Jan 2024 06:43:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1570EDF6E; Thu, 11 Jan 2024 06:43:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=126.com header.i=@126.com header.b="By7FeYAz" Received: from m16.mail.126.com (m16.mail.126.com [220.197.31.7]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1B3CFDF61 for ; Thu, 11 Jan 2024 06:43:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=126.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=126.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=126.com; s=s110527; h=From:Subject:Date:Message-Id; bh=AFybaTdIOLDtKhWkjS fj+9IhSzf1uJELy1AANTtfmo0=; b=By7FeYAzNlDev86pD7wDPMImb7EtMtXVbC noDgGmkQyvvCvvE0JsI5wQ5/LwRKfXqwa+NLVwUIa8IUNFBSdIJSRsXjJuijZS5H o75UmWz7/MXrdATfvctsw9toXtjLgVvdDtl0YtLXgGa/WscIiosW822NJCFsgcdy pSePYl4xE= Received: from localhost.localdomain (unknown [182.148.14.173]) by gzga-smtp-mta-g0-4 (Coremail) with SMTP id _____wD3P_XnjZ9lXE2hAA--.3673S2; Thu, 11 Jan 2024 14:42:47 +0800 (CST) From: chenxuebing To: airlied@gmail.com, maarten.lankhorst@linux.intel.com, mripard@kernel.org, daniel@ffwll.ch, tzimmermann@suse.de Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, chenxuebing Subject: [PATCH] drm: Clean up errors in drm_dp_mst_topology.h Date: Thu, 11 Jan 2024 06:42:45 +0000 Message-Id: <20240111064245.8789-1-chenxb_99091@126.com> X-Mailer: git-send-email 2.17.1 X-CM-TRANSID:_____wD3P_XnjZ9lXE2hAA--.3673S2 X-Coremail-Antispam: 1Uf129KBjvJXoW7tFW7Xw43AF43WF43ZFy8uFg_yoW8GrWfpr WqkrZrK34IkanIkw4UZF1Uur4DGan7Xryxtr45Cws3tay5Ar1rX3WUKFy3tr17XFZ2y34f trZ7uF17GF92kw7anT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x07UFLv_UUUUU= X-CM-SenderInfo: hfkh05lebzmiizr6ij2wof0z/1tbiGAtixWVLZWcFvwAAsi Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Fix the following errors reported by checkpatch: ERROR: space prohibited before open square bracket '[' Signed-off-by: chenxuebing --- drivers/gpu/drm/display/drm_dp_mst_topology.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/display/drm_dp_mst_topology.c b/drivers/gpu/drm/display/drm_dp_mst_topology.c index bd6c24d4213c..a4a24ec11b80 100644 --- a/drivers/gpu/drm/display/drm_dp_mst_topology.c +++ b/drivers/gpu/drm/display/drm_dp_mst_topology.c @@ -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] = #x static 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] = #x static 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] = #x static const char *drm_dp_mst_sideband_tx_state_str(int state) { -- 2.17.1