Commit 2ec13cbc authored by Jacob Keller's avatar Jacob Keller Committed by David S. Miller

devlink: include <linux/const.h> for _BITUL

Commit 5d5b4128 ("devlink: introduce flash update overwrite mask")
added a usage of _BITUL to the UAPI <linux/devlink.h> header, but failed
to include the header file where it was defined. It happens that this
does not break any existing kernel include chains because it gets
included through other sources. However, when including the UAPI headers
in a userspace application (such as devlink in iproute2), _BITUL is not
defined.

Fixes: 5d5b4128 ("devlink: introduce flash update overwrite mask")
Signed-off-by: default avatarJacob Keller <jacob.e.keller@intel.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 902c2a31
...@@ -13,6 +13,8 @@ ...@@ -13,6 +13,8 @@
#ifndef _UAPI_LINUX_DEVLINK_H_ #ifndef _UAPI_LINUX_DEVLINK_H_
#define _UAPI_LINUX_DEVLINK_H_ #define _UAPI_LINUX_DEVLINK_H_
#include <linux/const.h>
#define DEVLINK_GENL_NAME "devlink" #define DEVLINK_GENL_NAME "devlink"
#define DEVLINK_GENL_VERSION 0x1 #define DEVLINK_GENL_VERSION 0x1
#define DEVLINK_GENL_MCGRP_CONFIG_NAME "config" #define DEVLINK_GENL_MCGRP_CONFIG_NAME "config"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment