Skip to contentSkip to conversation

drm/vmwgfx: "foo* const bar" should be "foo * const bar"\ that ope- n brace { should be on the previous line

PATCH New [email protected] 1 participant 3 messages Jul 13, 2023 1 message not in the archive

Subsystems (3)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

PATCH 1/1 drm/vmwgfx: "foo* const bar" should be "foo * const bar"\ that ope- n brace { should be on the previous line

-------- 原始邮件 --------

主题:
[PATCH] drm/vmwgfx: "foo* const bar" should be "foo * const bar"\
that ope- n brace { should be on the previous line

日期:
2023-07-13 10:44

发件人:
fujie <[email protected]>

收件人:
[email protected]

抄送:
fujie <[email protected]>

(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

---
 drivers/gpu/drm/vmwgfx/vmwgfx_msg.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/vmwgfx/vmwgfx_msg.c +0 -0
index 96504a320c2a..b56936f95d31 100644
@@ -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" },

};

#2 lore raw

PATCH 1/1 drm/vmwgfx: "foo* const bar" should be "foo * const bar"\ that ope- n brace { should be on the previous line

In reply to a message not in the archive

(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

---
 drivers/gpu/drm/vmwgfx/vmwgfx_msg.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/vmwgfx/vmwgfx_msg.c +0 -0
index 96504a320c2a..b56936f95d31 100644
@@ -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" },

};

#3 lore raw

PATCH 1/1 drm/vmwgfx: "foo* const bar" should be "foo * const bar"\ that ope- n brace { should be on the previous line

In reply to a message not in the archive

(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

---
 drivers/gpu/drm/vmwgfx/vmwgfx_msg.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/vmwgfx/vmwgfx_msg.c +0 -0
index 96504a320c2a..b56936f95d31 100644
@@ -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" },

};