mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-26 06:04:14 +08:00
libnvdimm: clean up command definitions
Remove the command payloads that do not have an associated libnvdimm ioctl. I.e. remove the payloads that would only ever be carried in the ND_CMD_CALL envelope. This prevents userspace from growing unnecessary dependencies on this kernel header when userspace already has everything it needs to craft and send these commands. Cc: Jerry Hoemann <jerry.hoemann@hpe.com> Reported-by: Yasunori Goto <y-goto@jp.fujitsu.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
This commit is contained in:
parent
cc4a41fe55
commit
7a14724f54
@ -145,43 +145,6 @@ struct nd_cmd_clear_error {
|
|||||||
__u64 cleared;
|
__u64 cleared;
|
||||||
} __packed;
|
} __packed;
|
||||||
|
|
||||||
struct nd_cmd_trans_spa {
|
|
||||||
__u64 spa;
|
|
||||||
__u32 status;
|
|
||||||
__u8 flags;
|
|
||||||
__u8 _reserved[3];
|
|
||||||
__u64 trans_length;
|
|
||||||
__u32 num_nvdimms;
|
|
||||||
struct nd_nvdimm_device {
|
|
||||||
__u32 nfit_device_handle;
|
|
||||||
__u32 _reserved;
|
|
||||||
__u64 dpa;
|
|
||||||
} __packed devices[0];
|
|
||||||
|
|
||||||
} __packed;
|
|
||||||
|
|
||||||
struct nd_cmd_ars_err_inj {
|
|
||||||
__u64 err_inj_spa_range_base;
|
|
||||||
__u64 err_inj_spa_range_length;
|
|
||||||
__u8 err_inj_options;
|
|
||||||
__u32 status;
|
|
||||||
} __packed;
|
|
||||||
|
|
||||||
struct nd_cmd_ars_err_inj_clr {
|
|
||||||
__u64 err_inj_clr_spa_range_base;
|
|
||||||
__u64 err_inj_clr_spa_range_length;
|
|
||||||
__u32 status;
|
|
||||||
} __packed;
|
|
||||||
|
|
||||||
struct nd_cmd_ars_err_inj_stat {
|
|
||||||
__u32 status;
|
|
||||||
__u32 inj_err_rec_count;
|
|
||||||
struct nd_error_stat_query_record {
|
|
||||||
__u64 err_inj_stat_spa_range_base;
|
|
||||||
__u64 err_inj_stat_spa_range_length;
|
|
||||||
} __packed record[0];
|
|
||||||
} __packed;
|
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
ND_CMD_IMPLEMENTED = 0,
|
ND_CMD_IMPLEMENTED = 0,
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user