commit | 4ac0383a598d4bddf13cbd8272f0ea7711614b79 | [log] [tgz] |
---|---|---|
author | Ben Hutchings <ben.hutchings@mind.be> | Tue Jun 29 01:24:46 2021 +0200 |
committer | Stephen Hemminger <stephen@networkplumber.org> | Tue Jun 29 11:10:14 2021 -0700 |
tree | 188f6a91dccf91fb12d71c85cb0ec42f3a94520a | |
parent | c73fb6607025b7806c636fd52c6b2954388beb41 [diff] |
utils: Fix BIT() to support up to 64 bits on all architectures devlink and vdpa use BIT() together with 64-bit flag fields. devlink is already using bit numbers greater than 31 and so does not work correctly on 32-bit architectures. Fix this by making BIT() use uint64_t instead of unsigned long. Signed-off-by: Ben Hutchings <ben.hutchings@mind.be> Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>