Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1439632
| From | Eric Engestrom <eric.engestrom@imgtec.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 1/2] libnvdimm: add missing macros |
| Date | 2016-07-08 18:30 +0200 |
| Message-ID | <rSGP8-79Y-13@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com>
---
This can't compile without these macros… Is this header really used by anyone?
Should it be removed, to avoid bit-rot?
---
include/uapi/linux/ndctl.h | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/include/uapi/linux/ndctl.h b/include/uapi/linux/ndctl.h
index 309915f..50ae5e7 100644
--- a/include/uapi/linux/ndctl.h
+++ b/include/uapi/linux/ndctl.h
@@ -15,6 +15,14 @@
#include <linux/types.h>
+#ifdef __GNUC__
+#define __packed __attribute__((packed))
+#else
+#define __packed
+#endif
+
+#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof(arr)[0])
+
struct nd_cmd_smart {
__u32 status;
__u8 data[128];
--
2.9.0
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH 1/2] libnvdimm: add missing macros Eric Engestrom <eric.engestrom@imgtec.com> - 2016-07-08 18:30 +0200
[PATCH 2/2] netfilter: add missing macro Eric Engestrom <eric.engestrom@imgtec.com> - 2016-07-08 18:30 +0200
Re: [PATCH 2/2] netfilter: add missing macro kbuild test robot <lkp@intel.com> - 2016-07-08 19:10 +0200
Re: [PATCH 2/2] netfilter: add missing macro Pablo Neira Ayuso <pablo@netfilter.org> - 2016-07-11 12:50 +0200
Re: [PATCH 1/2] libnvdimm: add missing macros Dan Williams <dan.j.williams@intel.com> - 2016-07-08 21:40 +0200
csiph-web