From 82564f30ab34c8630190aabed810f1e6e5e171c3 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Thu, 19 Nov 2015 17:48:18 +0000 Subject: [PATCH] scst: More procfs build fixes. See also r6694. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6706 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/src/scst_priv.h | 21 +++++++++++++++++++++ scst/src/scst_proc.c | 2 +- 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/scst/src/scst_priv.h b/scst/src/scst_priv.h index ae1157d36..f0f87d8e3 100644 --- a/scst/src/scst_priv.h +++ b/scst/src/scst_priv.h @@ -893,6 +893,27 @@ void scst_cm_exit(void); static inline int scst_cm_on_dev_register(struct scst_device *dev) { return 0; } static inline void scst_cm_on_dev_unregister(struct scst_device *dev) {} +static inline int scst_cm_on_add_acg(struct scst_acg *acg) +{ + return 0; +} + +static inline void scst_cm_on_del_acg(struct scst_acg *acg) +{ +} + +static inline int scst_cm_on_add_lun(struct scst_acg_dev *acg_dev, uint64_t lun, + unsigned int *flags) +{ + return 0; +} + +static inline bool scst_cm_on_del_lun(struct scst_acg_dev *acg_dev, + bool gen_report_luns_changed) +{ + return gen_report_luns_changed; +} + static inline int scst_cm_parse_descriptors(struct scst_cmd *cmd) { scst_set_cmd_error(cmd, SCST_LOAD_SENSE(scst_sense_invalid_opcode)); diff --git a/scst/src/scst_proc.c b/scst/src/scst_proc.c index 26b99c3fe..0ade29717 100644 --- a/scst/src/scst_proc.c +++ b/scst/src/scst_proc.c @@ -2072,7 +2072,7 @@ static ssize_t scst_proc_groups_devices_write(struct file *file, rc = scst_acg_add_lun(acg, NULL, dev, virt_lun, read_only ? SCST_ADD_LUN_READ_ONLY : 0, - false, NULL); + NULL); if (rc) { res = rc; goto out_free_up;