diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2017-08-30 18:28:47 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-08-30 18:28:47 -0400 |
commit | 42ff72cf27027fa28dd79acabe01d9196f1480a7 (patch) | |
tree | e587ed9f9aa84207079db2d53e21cec35a2fa34e | |
parent | 94249117e740de63796d4ac48678e06c4b5ecac1 (diff) | |
parent | 7a14724f54bf9889fcb1a9f1d4aa4e1d2e969d93 (diff) |
Merge branch 'libnvdimm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm
Pull libnvdimm fix from Dan Williams:
"A single patch removing some structure definitions from a uapi header
file. These payloads are never processed directly by the kernel they
are simply passed through an ioctl as opaque blobs to the ACPI _DSM
(Device Specific Method) interface.
Userspace should not be depending on the kernel to define these
payloads. We will instead provide these definitions via the existing
libndctl (https://github.com/pmem/ndctl) project that has NVDIMM
command helpers and other definitions"
* 'libnvdimm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm:
libnvdimm: clean up command definitions
-rw-r--r-- | include/uapi/linux/ndctl.h | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/include/uapi/linux/ndctl.h b/include/uapi/linux/ndctl.h index 6d3c54264d8e..3f03567631cb 100644 --- a/include/uapi/linux/ndctl.h +++ b/include/uapi/linux/ndctl.h | |||
@@ -145,43 +145,6 @@ struct nd_cmd_clear_error { | |||
145 | __u64 cleared; | 145 | __u64 cleared; |
146 | } __packed; | 146 | } __packed; |
147 | 147 | ||
148 | struct nd_cmd_trans_spa { | ||
149 | __u64 spa; | ||
150 | __u32 status; | ||
151 | __u8 flags; | ||
152 | __u8 _reserved[3]; | ||
153 | __u64 trans_length; | ||
154 | __u32 num_nvdimms; | ||
155 | struct nd_nvdimm_device { | ||
156 | __u32 nfit_device_handle; | ||
157 | __u32 _reserved; | ||
158 | __u64 dpa; | ||
159 | } __packed devices[0]; | ||
160 | |||
161 | } __packed; | ||
162 | |||
163 | struct nd_cmd_ars_err_inj { | ||
164 | __u64 err_inj_spa_range_base; | ||
165 | __u64 err_inj_spa_range_length; | ||
166 | __u8 err_inj_options; | ||
167 | __u32 status; | ||
168 | } __packed; | ||
169 | |||
170 | struct nd_cmd_ars_err_inj_clr { | ||
171 | __u64 err_inj_clr_spa_range_base; | ||
172 | __u64 err_inj_clr_spa_range_length; | ||
173 | __u32 status; | ||
174 | } __packed; | ||
175 | |||
176 | struct nd_cmd_ars_err_inj_stat { | ||
177 | __u32 status; | ||
178 | __u32 inj_err_rec_count; | ||
179 | struct nd_error_stat_query_record { | ||
180 | __u64 err_inj_stat_spa_range_base; | ||
181 | __u64 err_inj_stat_spa_range_length; | ||
182 | } __packed record[0]; | ||
183 | } __packed; | ||
184 | |||
185 | enum { | 148 | enum { |
186 | ND_CMD_IMPLEMENTED = 0, | 149 | ND_CMD_IMPLEMENTED = 0, |
187 | 150 | ||