2019-02-28 13:24:04

by wangbo

[permalink] [raw]
Subject: [PATCH] include/linux/types.h: use "unsigned int" instead of "unsigned"

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

Signed-off-by: WangBo <[email protected]>
---
include/linux/types.h | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/include/linux/types.h b/include/linux/types.h
index c2615d6..cc0dbbe 100644
--- a/include/linux/types.h
+++ b/include/linux/types.h
@@ -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




2019-02-28 15:04:09

by Masahiro Yamada

[permalink] [raw]
Subject: Re: [PATCH] include/linux/types.h: use "unsigned int" instead of "unsigned"

On Thu, Feb 28, 2019 at 9:21 PM WangBo <[email protected]> wrote:
>
> Use "unsigned int" instead of "unsigned" ,it make code more clear.
>
> Signed-off-by: WangBo <[email protected]>

Reviewed-by: Masahiro Yamada <[email protected]>



> ---
> include/linux/types.h | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/include/linux/types.h b/include/linux/types.h
> index c2615d6..cc0dbbe 100644
> --- a/include/linux/types.h
> +++ b/include/linux/types.h
> @@ -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
>
>


--
Best Regards
Masahiro Yamada