commit | e31a50162feb352147d3fc87b9e036703c8f2636 | [log] [tgz] |
---|---|---|
author | Alex Elder <elder@linaro.org> | Thu Mar 12 11:44:27 2020 -0500 |
committer | David S. Miller <davem@davemloft.net> | Thu Mar 12 15:48:37 2020 -0700 |
tree | efa42592a94ddb1b3cb2b62a8a1e6a903c914cbb | |
parent | 82a9822b26770b3965790f6a2340f0341a9bc102 [diff] |
bitfield.h: add FIELD_MAX() and field_max() Define FIELD_MAX(), which supplies the maximum value that can be represented by a field value. Define field_max() as well, to go along with the lower-case forms of the field mask functions. Signed-off-by: Alex Elder <elder@linaro.org> Acked-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>