Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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.

Fixes: 5d5b4128c4ca ("devlink: introduce flash update overwrite mask")
Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Jacob Keller and committed by
David S. Miller
2ec13cbc 902c2a31

+2
+2
include/uapi/linux/devlink.h
··· 13 13 #ifndef _UAPI_LINUX_DEVLINK_H_ 14 14 #define _UAPI_LINUX_DEVLINK_H_ 15 15 16 + #include <linux/const.h> 17 + 16 18 #define DEVLINK_GENL_NAME "devlink" 17 19 #define DEVLINK_GENL_VERSION 0x1 18 20 #define DEVLINK_GENL_MCGRP_CONFIG_NAME "config"