OSDN Git Service

bitfield.h: add FIELD_MAX() and field_max()
authorAlex Elder <elder@linaro.org>
Thu, 12 Mar 2020 16:44:27 +0000 (11:44 -0500)
committerDavid S. Miller <davem@davemloft.net>
Thu, 12 Mar 2020 22:48:37 +0000 (15:48 -0700)
commite31a50162feb352147d3fc87b9e036703c8f2636
treeefa42592a94ddb1b3cb2b62a8a1e6a903c914cbb
parent82a9822b26770b3965790f6a2340f0341a9bc102
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>
include/linux/bitfield.h