[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAK7LNAQJA2WJ6QO8H7dGi3D3=pHFfXLU=o8eBPcC+wxq-v7TqQ@mail.gmail.com>
Date: Wed, 16 May 2018 10:07:50 +0900
From: Masahiro Yamada <yamada.masahiro@...ionext.com>
To: Andrew Morton <akpm@...ux-foundation.org>
Cc: Geert Uytterhoeven <geert@...ux-m68k.org>,
Alexey Dobriyan <adobriyan@...il.com>,
Lihao Liang <lianglihao@...wei.com>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Philippe Ombredanne <pombredanne@...b.com>,
Pekka Enberg <penberg@...nel.org>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Subject: Re: [PATCH 3/3] types: use fixed width types without
double-underscore prefix
Hi Andrew,
2018-05-16 7:59 GMT+09:00 Andrew Morton <akpm@...ux-foundation.org>:
> On Tue, 15 May 2018 11:22:05 +0900 Masahiro Yamada <yamada.masahiro@...ionext.com> wrote:
>
>> This header file is not exported. It is safe to reference types
>> without double-underscore prefix.
>>
>
> It may be safe to do this, but why is it desirable?
It is shorter. That's all.
If it is a noise commit, please feel free to drop it.
BTW, a large amount of kernel-space code
uses underscore-prefixed types.
I wonder if we could check it by checkpatch.pl or something...
>> index be15897..9834e90 100644
>> --- a/include/linux/types.h
>> +++ b/include/linux/types.h
>> @@ -10,14 +10,14 @@
>> #define DECLARE_BITMAP(name,bits) \
>> unsigned long name[BITS_TO_LONGS(bits)]
>>
>> -typedef __u32 __kernel_dev_t;
>> +typedef u32 __kernel_dev_t;
>>
>> ...
>>
--
Best Regards
Masahiro Yamada
Powered by blists - more mailing lists