History

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

Commit 5d5b4128c4ca ("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.

Jacob Keller committed 6 years ago

Commit 2ec13cb1 parent 902c2a31 file · +2 −0Browse files

Unified · Split

include/uapi/linux/devlink.h+2−0
@@ -13,6 +13,8 @@ · 12 unmodified lines
13#ifndef _UAPI_LINUX_DEVLINK_H_13#ifndef _UAPI_LINUX_DEVLINK_H_
14#define _UAPI_LINUX_DEVLINK_H_14#define _UAPI_LINUX_DEVLINK_H_
15 15
16#include <linux/const.h>
17
16#define DEVLINK_GENL_NAME "devlink"18#define DEVLINK_GENL_NAME "devlink"
17#define DEVLINK_GENL_VERSION 0x119#define DEVLINK_GENL_VERSION 0x1
18#define DEVLINK_GENL_MCGRP_CONFIG_NAME "config"20#define DEVLINK_GENL_MCGRP_CONFIG_NAME "config"