Skip to contentSkip to conversation

core: Variable type completion

PATCH In review Xin Gao 3 participants 4 messages Aug 17, 2022 – Aug 20, 2022

Subsystems (2)
lore
Share & tools
lore

Xin Gao

author
#0 lore raw

PATCH 1/1 core: Variable type completion

'unsigned int' is better than 'unsigned'.

---
 net/core/netclassid_cgroup.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/core/netclassid_cgroup.c +1 -1
index 1a6a86693b74..d6a70aeaa503 100644
@@ -66,7 +66,7 @@ struct update_classid_context {
 
 #define UPDATE_CLASSID_BATCH 1000
 
-static int update_classid_sock(const void *v, struct file *file, unsigned n)
+static int update_classid_sock(const void *v, struct file *file, unsigned int n)
 {
 	struct update_classid_context *ctx = (void *)v;
 	struct socket *sock = sock_from_file(file);
Signature · 1 line
2.30.2
maintainer
#1 lore raw
Quoted 1 line · On Wed, 17 Aug 2022 09:35:29 +0800 Xin Gao wrote:

'unsigned int' is better than 'unsigned'.

Please resend with the following subject:

[PATCH net-next] net: cgroup: complete unsigned type name

#2 lore raw
Quoted 6 lines · Jakub Kicinski
Quoted 1 line · On Wed, 17 Aug 2022 09:35:29 +0800 Xin Gao wrote:

'unsigned int' is better than 'unsigned'.

Please resend with the following subject:

[PATCH net-next] net: cgroup: complete unsigned type name

Out of curiosity, why is 'unsigned int' better than 'unsigned'?

Thanks.

Signature · 1 line
tejun
maintainer
#3 lore raw
Quoted 9 lines · On Fri, 19 Aug 2022 14:07:26 -1000 Tejun Heo wrote:
Quoted 6 lines · Jakub Kicinski
Quoted 1 line · On Wed, 17 Aug 2022 09:35:29 +0800 Xin Gao wrote:

'unsigned int' is better than 'unsigned'.

Please resend with the following subject:

[PATCH net-next] net: cgroup: complete unsigned type name

Out of curiosity, why is 'unsigned int' better than 'unsigned'?

Good question, a citation in the commit message would also be good.