[lkml]   [2019]   [Aug]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] linux/bits.h: Add compile time sanity check of GENMASK inputs
On Sat, Aug 3, 2019 at 12:03 PM Masahiro Yamada
<> wrote:

> BTW, v2 is already inconsistent.
> If you wanted GENMASK_INPUT_CHECK() to return 'unsigned long',,
> you would have to cast (low) > (high) as well:
> (unsigned long)((low) > (high)), UL(0))))
> This is totally redundant, and weird.

I take back this comment.
You added (unsigned long) to the beginning of this macro.
So, the type is consistent, but I believe all casts should be removed.

Best Regards
Masahiro Yamada

 \ /
  Last update: 2019-08-03 05:19    [W:0.100 / U:1.708 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site