Skip to contentSkip to conversation

include/linux/types.h: use "unsigned int" instead of "unsigned"

PATCH In review WangBo 2 participants 2 messages Feb 28, 2019

lore
Share & tools
lore

WangBo

author
#0 lore raw

PATCH 1/1 include/linux/types.h: use "unsigned int" instead of "unsigned"

Use "unsigned int" instead of "unsigned" ,it make code more clear.

---
 include/linux/types.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
include/linux/types.h +3 -3
index c2615d6..cc0dbbe 100644
@@ -155,9 +155,9 @@ typedef u64 dma_addr_t;
 typedef u32 dma_addr_t;
 #endif
 
-typedef unsigned __bitwise gfp_t;
-typedef unsigned __bitwise slab_flags_t;
-typedef unsigned __bitwise fmode_t;
+typedef unsigned int __bitwise gfp_t;
+typedef unsigned int __bitwise slab_flags_t;
+typedef unsigned int __bitwise fmode_t;
 
 #ifdef CONFIG_PHYS_ADDR_T_64BIT
 typedef u64 phys_addr_t;
Signature · 1 line
2.7.4
Reviewed-by on v1 1/1
#1 lore raw
Quoted 4 lines · WangBo

Use "unsigned int" instead of "unsigned" ,it make code more clear.

Quoted 25 lines
---
 include/linux/types.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
include/linux/types.h +3 -4
index c2615d6..cc0dbbe 100644
@@ -155,9 +155,9 @@ typedef u64 dma_addr_t;
 typedef u32 dma_addr_t;
 #endif
 
-typedef unsigned __bitwise gfp_t;
-typedef unsigned __bitwise slab_flags_t;
-typedef unsigned __bitwise fmode_t;
+typedef unsigned int __bitwise gfp_t;
+typedef unsigned int __bitwise slab_flags_t;
+typedef unsigned int __bitwise fmode_t;
 
 #ifdef CONFIG_PHYS_ADDR_T_64BIT
 typedef u64 phys_addr_t;
--

2.7.4

Signature · 2 lines
Best Regards
Masahiro Yamada