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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6AB8BEB64DA for ; Thu, 13 Jul 2023 03:11:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232178AbjGMDL2 (ORCPT ); Wed, 12 Jul 2023 23:11:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38854 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229455AbjGMDLY (ORCPT ); Wed, 12 Jul 2023 23:11:24 -0400 Received: from mail.208.org (unknown [183.242.55.162]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1EE5E1BD7 for ; Wed, 12 Jul 2023 20:11:23 -0700 (PDT) Received: from mail.208.org (email.208.org [127.0.0.1]) by mail.208.org (Postfix) with ESMTP id 4R1flC00rLzBJBXT 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 tYdzRxWltnoS 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 Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org 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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org -------- =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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 36E26EB64DA for ; Thu, 13 Jul 2023 03:17:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233476AbjGMDRi (ORCPT ); Wed, 12 Jul 2023 23:17:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40664 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231592AbjGMDRd (ORCPT ); Wed, 12 Jul 2023 23:17:33 -0400 Received: from mail.208.org (unknown [183.242.55.162]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5FE5B10FC for ; Wed, 12 Jul 2023 20:17:32 -0700 (PDT) Received: from mail.208.org (email.208.org [127.0.0.1]) by mail.208.org (Postfix) with ESMTP id 4R1ftL1lm5zBKy7r 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 WkKBBZ4LsJFZ 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 Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org 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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Message-ID: <20230713031729.uJJZC_Yu1OO_rjklzagJiodicDBP6xr4_jhwiqb86Xc@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" }, };