mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-17 10:41:26 +00:00
Fix compilations problems with gcc 4.6 reported by Bart Van Assche <bvanassche@acm.org>
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3367 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -4046,8 +4046,8 @@ struct scst_sysfs_work_item {
|
||||
};
|
||||
struct scst_session *sess;
|
||||
struct {
|
||||
struct scst_tgt *tgt;
|
||||
unsigned long l;
|
||||
struct scst_tgt *tgt_r;
|
||||
unsigned long rel_tgt_id;
|
||||
};
|
||||
};
|
||||
int work_res;
|
||||
|
||||
@@ -2112,8 +2112,8 @@ static ssize_t scst_rel_tgt_id_show(struct kobject *kobj,
|
||||
static int scst_process_rel_tgt_id_store(struct scst_sysfs_work_item *work)
|
||||
{
|
||||
int res = 0;
|
||||
struct scst_tgt *tgt = work->tgt;
|
||||
unsigned long rel_tgt_id = work->l;
|
||||
struct scst_tgt *tgt = work->tgt_r;
|
||||
unsigned long rel_tgt_id = work->rel_tgt_id;
|
||||
|
||||
TRACE_ENTRY();
|
||||
|
||||
@@ -2180,8 +2180,8 @@ static ssize_t scst_rel_tgt_id_store(struct kobject *kobj,
|
||||
if (res != 0)
|
||||
goto out;
|
||||
|
||||
work->tgt = tgt;
|
||||
work->l = rel_tgt_id;
|
||||
work->tgt_r = tgt;
|
||||
work->rel_tgt_id = rel_tgt_id;
|
||||
|
||||
kobject_get(&tgt->tgt_kobj);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user