The BIT() macro is not available for the UAPI headers. Moreover, it can be defined differently in user space headers. Thus, replace its usage with the _BITUL() macro which is already used in other macro definitions in <linux/devlink.h>.
Showing the changes to include/uapi/linux (1 of 1 file). Show all
Unified · Split
| @@ -322,7 +322,7 @@ enum devlink_reload_limit { · 321 unmodified lines | |||
| 322 | DEVLINK_RELOAD_LIMIT_MAX = __DEVLINK_RELOAD_LIMIT_MAX - 1 | 322 | DEVLINK_RELOAD_LIMIT_MAX = __DEVLINK_RELOAD_LIMIT_MAX - 1 |
| 323 | }; | 323 | }; |
| 324 | 324 | ||
| 325 | #define DEVLINK_RELOAD_LIMITS_VALID_MASK (BIT(__DEVLINK_RELOAD_LIMIT_MAX) - 1) | 325 | #define DEVLINK_RELOAD_LIMITS_VALID_MASK (_BITUL(__DEVLINK_RELOAD_LIMIT_MAX) - 1) |
| 326 | 326 | ||
| 327 | enum devlink_attr { | 327 | enum devlink_attr { |
| 328 | /* don't change the order or add anything between, this is ABI! */ | 328 | /* don't change the order or add anything between, this is ABI! */ |