History

devlink: use _BITUL() macro instead of BIT() in the UAPI header

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>.

Tobias Klauser committed 5 years ago

Commit 75f4d451 parent 7eb000b1 file · +1 −1Browse files

Showing the changes to include/uapi/linux (1 of 1 file). Show all

Unified · Split

include/uapi/linux/devlink.h+1−1
@@ -322,7 +322,7 @@ enum devlink_reload_limit { · 321 unmodified lines
322 DEVLINK_RELOAD_LIMIT_MAX = __DEVLINK_RELOAD_LIMIT_MAX - 1322 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
327enum devlink_attr {327enum 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! */