devlink: use _BITUL() macro instead of BIT() in the UAPI header
authorTobias Klauser <tklauser@distanz.ch>
Tue, 15 Dec 2020 10:25:31 +0000 (11:25 +0100)
committerJakub Kicinski <kuba@kernel.org>
Thu, 17 Dec 2020 00:16:40 +0000 (16:16 -0800)
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>.

Fixes: dc64cc7c6310 ("devlink: Add devlink reload limit option")
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Link: https://lore.kernel.org/r/20201215102531.16958-1-tklauser@distanz.ch
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/uapi/linux/devlink.h

index 5203f54a2be1c0c5a628da9608ecddfa132553d0..cf89c318f2ac90a46bd3f61664bd757e2f665d8f 100644 (file)
@@ -322,7 +322,7 @@ enum devlink_reload_limit {
        DEVLINK_RELOAD_LIMIT_MAX = __DEVLINK_RELOAD_LIMIT_MAX - 1
 };
 
-#define DEVLINK_RELOAD_LIMITS_VALID_MASK (BIT(__DEVLINK_RELOAD_LIMIT_MAX) - 1)
+#define DEVLINK_RELOAD_LIMITS_VALID_MASK (_BITUL(__DEVLINK_RELOAD_LIMIT_MAX) - 1)
 
 enum devlink_attr {
        /* don't change the order or add anything between, this is ABI! */