From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id F2F38EB64DD for ; Thu, 13 Jul 2023 07:44:32 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7675410E619; Thu, 13 Jul 2023 07:44:21 +0000 (UTC) Received: from mail.208.org (unknown [183.242.55.162]) by gabe.freedesktop.org (Postfix) with ESMTPS id B7B6E10E053 for ; Thu, 13 Jul 2023 03:11:25 +0000 (UTC) Received: from mail.208.org (email.208.org [127.0.0.1]) by mail.208.org (Postfix) with ESMTP id 4R1flB71hvzBHXgq for ; Thu, 13 Jul 2023 11:11:18 +0800 (CST) Authentication-Results: mail.208.org (amavisd-new); dkim=pass reason="pass (just generated, assumed good)" header.d=208.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=208.org; h= content-transfer-encoding:content-type:message-id:user-agent :references:in-reply-to:subject:to:from:date:mime-version; s= dkim; t=1689217878; x=1691809879; bh=nwNP2MyNrAdRHJfIy7eTE9fTnt0 LobDKQvEr5pDGzFw=; b=MagLv5jGyfWJM+2hnpM9R496CqzC+uP2Kh+DrS8juMD F1Ojvzez/GjxgpHrDEXvEz1NqiLlCL0g3BPvNoUG9lunGylgGOyGih1gTN9j4f/u Pe7IRnoh+siAEPIh06I2luTcyrWab7zqLLKOIvtrxs9Qv7z8L8reHxf/Z6vgJnya znMio0V4Blrx+LzIfVQft3Nk/Ulx1MX2Z1fw22xRp9Ct9rw37bCBEXMuNWiuyDm4 4zmCLdDNhjaUXLVYhbIB4IrZRIvKBr+RiKetxNT2yFaB7+Jx30zRodxSAsvKA7Zt 8JpOShmh5rgGwGm9IMv7PinTY4SRx5sK0zEbpxh9S4g== X-Virus-Scanned: amavisd-new at mail.208.org Received: from mail.208.org ([127.0.0.1]) by mail.208.org (mail.208.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id ht4-AEY_Hffr for ; Thu, 13 Jul 2023 11:11:18 +0800 (CST) Received: from localhost (email.208.org [127.0.0.1]) by mail.208.org (Postfix) with ESMTPSA id 4R1flB4LZzzBHXgf; Thu, 13 Jul 2023 11:11:18 +0800 (CST) MIME-Version: 1.0 Date: Thu, 13 Jul 2023 11:11:18 +0800 From: liubin001@208suo.com To: airlied@gmail.com, daniel@ffwll.ch Subject: Fwd: [PATCH] drm/vmwgfx: "foo* const bar" should be "foo * const bar"\ that ope- n brace { should be on the previous line In-Reply-To: References: User-Agent: Roundcube Webmail Message-ID: <7d2a5aba980cd6b7928c15e65fd94086@208suo.com> X-Sender: liubin001@208suo.com Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Mailman-Approved-At: Thu, 13 Jul 2023 07:44:19 +0000 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" -------- =E5=8E=9F=E5=A7=8B=E9=82=AE=E4=BB=B6 -------- =E4=B8=BB=E9=A2=98: [PATCH] drm/vmwgfx: "foo* const bar" should be "foo * const bar"\=20 that ope- n brace { should be on the previous line =E6=97=A5=E6=9C=9F: 2023-07-13 10:44 =E5=8F=91=E4=BB=B6=E4=BA=BA: fujie <2459483872@qq.com> =E6=94=B6=E4=BB=B6=E4=BA=BA: liubin001@208suo.com =E6=8A=84=E9=80=81: fujie <2459483872@qq.com> (1)The standard format for declaring a pointer is to add a space bet- ween the type name and the * symbol, as well as between the * symbol and=20 the variable name. (2) that open brace { should be on the previous line Signed-off-by: fujie <2459483872@qq.com> --- drivers/gpu/drm/vmwgfx/vmwgfx_msg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_msg.c=20 b/drivers/gpu/drm/vmwgfx/vmwgfx_msg.c index 96504a320c2a..b56936f95d31 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_msg.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_msg.c @@ -87,7 +87,7 @@ struct rpc_channel { #if IS_ENABLED(CONFIG_DRM_VMWGFX_MKSSTATS) /* Kernel mksGuestStats counter names and desciptions; same order as=20 enum mksstat_kern_stats_t */ -static const char* const mksstat_kern_name_desc[MKSSTAT_KERN_COUNT][2]=20 =3D { { "vmw_execbuf_ioctl", "vmw_execbuf_ioctl" }, { "vmw_cotable_resize", "vmw_cotable_resize" }, }; +static const char * const mksstat_kern_name_desc[MKSSTAT_KERN_COUNT][2]=20 =3D { { "vmw_execbuf_ioctl", "vmw_execbuf_ioctl" }, { "vmw_cotable_resize", "vmw_cotable_resize" }, }; From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A0BAAEB64DD for ; Thu, 13 Jul 2023 07:44:38 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C2B7C10E618; Thu, 13 Jul 2023 07:44:31 +0000 (UTC) Received: from mail.208.org (unknown [183.242.55.162]) by gabe.freedesktop.org (Postfix) with ESMTPS id 76D4510E053 for ; Thu, 13 Jul 2023 03:17:35 +0000 (UTC) Received: from mail.208.org (email.208.org [127.0.0.1]) by mail.208.org (Postfix) with ESMTP id 4R1ftL1PLDzBJBfn for ; Thu, 13 Jul 2023 11:17:30 +0800 (CST) Authentication-Results: mail.208.org (amavisd-new); dkim=pass reason="pass (just generated, assumed good)" header.d=208.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=208.org; h= content-transfer-encoding:content-type:message-id:user-agent :references:in-reply-to:subject:to:from:date:mime-version; s= dkim; t=1689218250; x=1691810251; bh=vy2hpwLqIbN4V8wU9/R2s/5gk++ 9S9+eXX9ZvB2DiBg=; b=NcdAuoR974e/19vTeBX57gNMOJW+huU5uXZ4cj40BRa ZSyFIDs6VOmtOZmQgt9AQSt4+nsLNLTcLrJvPDpQfenPw5dIXC3kHJXnV7SE5RQP svAYc3Cq2wLHebpEjC23Aq8WLHqwc6TkZKXbdXpjCvye3rMjk5qviwjb1Z+Py/co YGuCAj9JsGBG+p6uog8zalWmA3icbCmEVD8guOQ/k2SMteYFnhkPijXiWIE0/nhK iWSJIYdLBw9VN0+Ei/oBlJVyZwBhC/Y2aMqDNNcr4zkjZfgYYsBROryowrF36aMU OO+kIpoAXSvrOVXN9Ae5r1xNCUxwESyTyI/LzaFivFg== X-Virus-Scanned: amavisd-new at mail.208.org Received: from mail.208.org ([127.0.0.1]) by mail.208.org (mail.208.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id JaPrQKhm17cB for ; Thu, 13 Jul 2023 11:17:30 +0800 (CST) Received: from localhost (email.208.org [127.0.0.1]) by mail.208.org (Postfix) with ESMTPSA id 4R1ftK6NTSzBHXgq; Thu, 13 Jul 2023 11:17:29 +0800 (CST) MIME-Version: 1.0 Date: Thu, 13 Jul 2023 11:17:29 +0800 From: liubin001@208suo.com To: airlied@gmail.com, daniel@ffwll.ch Subject: [PATCH] drm/vmwgfx: "foo* const bar" should be "foo * const bar"\ that ope- n brace { should be on the previous line In-Reply-To: References: User-Agent: Roundcube Webmail Message-ID: <7d2a5aba980cd6b7928c15e65fd94086@208suo.com> X-Sender: liubin001@208suo.com Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Thu, 13 Jul 2023 07:44:19 +0000 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Message-ID: <20230713031729.bWOLkUxkH-VVlZT2L7kqY4Q4v9sj-jpxO_LXbPCMFPU@z> (1)The standard format for declaring a pointer is to add a space bet- ween the type name and the * symbol, as well as between the * symbol and the variable name. (2) that open brace { should be on the previous line Signed-off-by: Bin Liu --- drivers/gpu/drm/vmwgfx/vmwgfx_msg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_msg.c b/drivers/gpu/drm/vmwgfx/vmwgfx_msg.c index 96504a320c2a..b56936f95d31 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_msg.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_msg.c @@ -87,7 +87,7 @@ struct rpc_channel { #if IS_ENABLED(CONFIG_DRM_VMWGFX_MKSSTATS) /* Kernel mksGuestStats counter names and desciptions; same order as enum mksstat_kern_stats_t */ -static const char* const mksstat_kern_name_desc[MKSSTAT_KERN_COUNT][2] = { { "vmw_execbuf_ioctl", "vmw_execbuf_ioctl" }, { "vmw_cotable_resize", "vmw_cotable_resize" }, }; +static const char * const mksstat_kern_name_desc[MKSSTAT_KERN_COUNT][2] = { { "vmw_execbuf_ioctl", "vmw_execbuf_ioctl" }, { "vmw_cotable_resize", "vmw_cotable_resize" }, };