Re: [PATCH] linux/bits.h: adjust GENMASK_INPUT_CHECK() check

2020-05-19 Thread kbuild test robot
Hi Emil, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on tegra-drm/drm/tegra/for-next] [also build test WARNING on linus/master v5.7-rc6 next-20200518] [cannot apply to linux/master] [if your patch is applied to the wrong git tree, please drop us a note to help

Re: [PATCH] linux/bits.h: adjust GENMASK_INPUT_CHECK() check

2020-05-19 Thread kbuild test robot
Hi Emil, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on tegra-drm/drm/tegra/for-next] [also build test WARNING on linus/master v5.7-rc6 next-20200518] [cannot apply to linux/master] [if your patch is applied to the wrong git tree, please drop us a note to help

[PATCH] linux/bits.h: adjust GENMASK_INPUT_CHECK() check

2020-05-19 Thread Emil Velikov
Recently the GENMASK_INPUT_CHECK() was added, aiming to catch cases where there GENMASK arguments are flipped. Although it seems to be triggering -Wtype-limits in the following cases: unsigned foo = (10 + x); unsigned bar = GENMASK(foo, 0); const unsigned foo = (10 + x); unsigned