diff options
author | Johannes Berg <johannes.berg@intel.com> | 2015-04-01 17:31:38 +0200 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2015-04-03 19:10:30 +0200 |
commit | 64ba8e566ba250f8a56693bed1d54ef904691e90 (patch) | |
tree | 6efaefc7138903812227236ce757e37f4f21ef88 | |
parent | 68594f72274b37f66d1c08cb57504682476f133a (diff) |
backport: backport NULLS_MARKER
This was added to list_nulls.h fairly recently in commit f89bd6f87a53.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
-rw-r--r-- | backport/backport-include/linux/list_nulls.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/backport/backport-include/linux/list_nulls.h b/backport/backport-include/linux/list_nulls.h new file mode 100644 index 00000000..ba28834f --- /dev/null +++ b/backport/backport-include/linux/list_nulls.h @@ -0,0 +1,9 @@ +#ifndef __BACKPORT_LIST_NULLS +#define __BACKPORT_LIST_NULLS +#include_next <linux/list_nulls.h> + +#ifndef NULLS_MARKER +#define NULLS_MARKER(value) (1UL | (((long)value) << 1)) +#endif + +#endif /* __BACKPORT_LIST_NULLS */ |