Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp1534016rdd; Thu, 11 Jan 2024 01:59:02 -0800 (PST) X-Google-Smtp-Source: AGHT+IEDVWj0wLAs4vfFE6FeUWMkwx7DnMGMEkc2hMx7vcsn+dv7XoJRRTbXnyvxoeaDN1exxILE X-Received: by 2002:a05:620a:385b:b0:77f:9b2:ee9b with SMTP id po27-20020a05620a385b00b0077f09b2ee9bmr1063555qkn.88.1704967142350; Thu, 11 Jan 2024 01:59:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704967142; cv=none; d=google.com; s=arc-20160816; b=q44e6bc05HPZ65I/X1oTBxYvkoHTPDDeMhbmbnLKbRh5LefeIl6OHTviy+5FhTM0vk fmk6bvmtxtCT7sjtovS6CrNxDlG7LQXknYSez9ZJb6Sv1EvH4psHHWZObc+rUcXfCerK SlREUBa8gMv8k+OOzwLBDGgQPzCXg/uq5mOR7woZR1RRwnhtPYAvmLqwd9n+KA4KpxpB 7eMnF08Ha7/XZ4tUM+Tozypk9GZnoqUQErmpOtcUd/K5U7YZKxCpKcnRZSthsXAb/+rE BhEKbanQ0C+0fxGfT30AIJNmxkeNAdV/qSjaE1jHAVbykNd+26UkV016OBdQrvi4R2wo gwJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:references:organization:in-reply-to:subject:cc:to :from:dkim-signature; bh=GCTce+j1cTeuckI0c9CnhPtLLp3emMHANFoh0Zr0FnU=; fh=W386/gGSOTnIhr1BEspeJg396xkGVUu6xKYISWKbbCc=; b=pF0pxVORmdNDe3HLVp1PbExdoaOxwgJG7wS2LG5lyZFqkb8lWGmrx4ZyNT0b2BnA4I MTeO1DDLc/5Hi7AywfzlOR0Pv2o4iWtJGZZn/gCncPW4CW31esU97IltDrLM/gzS1hAq /3uyayNZNMiu2uh3YjwomAdNmzPqyzBkoVN512VCVf0f8jNaX4c7kMLh2najX4DIup7a hL7iBwOBmyWACRbpmqPhEz6cuZTi8zp9Dc37wi+AFysFk3Goukjdx3IR5OyPJD1QEyue wjiHlBahA2Mh+FfIY3xKNauosJFaT8dtWtAQJsXRMJ+5ysq+ZHZ52uAGwG8T9L719S+r zbWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ZA+PisjR; spf=pass (google.com: domain of linux-kernel+bounces-23347-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23347-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id c21-20020a37e115000000b00781e1787c1csi580877qkm.507.2024.01.11.01.59.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 01:59:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-23347-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=@intel.com header.s=Intel header.b=ZA+PisjR; spf=pass (google.com: domain of linux-kernel+bounces-23347-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23347-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.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 1613E1C234BC for ; Thu, 11 Jan 2024 09:59:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B62FD125BE; Thu, 11 Jan 2024 09:58:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="ZA+PisjR" Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.31]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7160811194 for ; Thu, 11 Jan 2024 09:58:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1704967134; x=1736503134; h=from:to:cc:subject:in-reply-to:references:date: message-id:mime-version; bh=eAPK3YkWDsGD+tLUM4iln5sX6YLes8N2a44CKmlPzg4=; b=ZA+PisjRu/7t9DX/HSFVjD+wgo/u8/njBd52GCzo3QCou4kwEv7I2PK6 Zz9n7Cbtgvnhyed5K1ly9c+rUL1YNWTkuqLOVsjHvPPiUNE6dUh2WdO6n pI8GGytVXpc1uRxoCnUkAhkXH7wIG5yqZHLQe0ohhDgyQ0ydcL2RhL5a8 YWddUSHtsr809Dw9AVECbLwXdpPcFbe8MasZNjvFo/7VCc+zmJ735tsAN SeR35EMEgGCLD6Dvotag1rOMIybdiFvfJ5NXwPjFQ0CTHsdiuKDFzpVnf k5UsTFra6SzvzWfNl4wkdQd35ANUXRz7u0kCxqzC0RCfzROpesa0dunYB A==; X-IronPort-AV: E=McAfee;i="6600,9927,10949"; a="463087931" X-IronPort-AV: E=Sophos;i="6.04,185,1695711600"; d="scan'208";a="463087931" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Jan 2024 01:58:53 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10949"; a="925949261" X-IronPort-AV: E=Sophos;i="6.04,185,1695711600"; d="scan'208";a="925949261" Received: from gaertgee-mobl.ger.corp.intel.com (HELO localhost) ([10.252.54.206]) by fmsmga001-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Jan 2024 01:58:49 -0800 From: Jani Nikula To: chenxuebing , airlied@gmail.com, tzimmermann@suse.de, daniel@ffwll.ch, maarten.lankhorst@linux.intel.com, mripard@kernel.org Cc: linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, chenxuebing Subject: Re: [PATCH] drm: Clean up errors in drm_dp_helper.h In-Reply-To: <20240111064400.8878-1-chenxb_99091@126.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo References: <20240111064400.8878-1-chenxb_99091@126.com> Date: Thu, 11 Jan 2024 11:58:47 +0200 Message-ID: <878r4wur6w.fsf@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain On Thu, 11 Jan 2024, chenxuebing 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 > --- > 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