mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-20 14:16:31 +00:00
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
This commit is contained in:
@@ -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));
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user