[PATCH 00/12] treewide: Fix GENMASK misuses

Johannes Berg johannes at sipsolutions.net
Wed Jul 10 19:17:31 AEST 2019


On Tue, 2019-07-09 at 22:04 -0700, Joe Perches wrote:
> These GENMASK uses are inverted argument order and the
> actual masks produced are incorrect.  Fix them.
> 
> Add checkpatch tests to help avoid more misuses too.
> 
> Joe Perches (12):
>   checkpatch: Add GENMASK tests

IMHO this doesn't make a lot of sense as a checkpatch test - just throw
in a BUILD_BUG_ON()?

johannes



More information about the openbmc mailing list