Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
7ab0490d
Commit
7ab0490d
authored
Sep 25, 2003
by
Christoph Hellwig
Committed by
James Bottomley
Sep 25, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] kill last users of the ScsiLun typedef
everyone else uses struct scsi_lun already.
parent
01d73de0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
drivers/scsi/scsi_debug.c
drivers/scsi/scsi_debug.c
+5
-5
No files found.
drivers/scsi/scsi_debug.c
View file @
7ab0490d
...
@@ -861,7 +861,7 @@ static int resp_report_luns(unsigned char * cmd, unsigned char * buff,
...
@@ -861,7 +861,7 @@ static int resp_report_luns(unsigned char * cmd, unsigned char * buff,
unsigned
int
alloc_len
;
unsigned
int
alloc_len
;
int
lun_cnt
,
i
,
upper
;
int
lun_cnt
,
i
,
upper
;
int
select_report
=
(
int
)
cmd
[
2
];
int
select_report
=
(
int
)
cmd
[
2
];
ScsiL
un
*
one_lun
;
struct
scsi_l
un
*
one_lun
;
alloc_len
=
cmd
[
9
]
+
(
cmd
[
8
]
<<
8
)
+
(
cmd
[
7
]
<<
16
)
+
(
cmd
[
6
]
<<
24
);
alloc_len
=
cmd
[
9
]
+
(
cmd
[
8
]
<<
8
)
+
(
cmd
[
7
]
<<
16
)
+
(
cmd
[
6
]
<<
24
);
if
((
alloc_len
<
16
)
||
(
select_report
>
2
))
{
if
((
alloc_len
<
16
)
||
(
select_report
>
2
))
{
...
@@ -873,11 +873,11 @@ static int resp_report_luns(unsigned char * cmd, unsigned char * buff,
...
@@ -873,11 +873,11 @@ static int resp_report_luns(unsigned char * cmd, unsigned char * buff,
(lun 0 to lun 16383) */
(lun 0 to lun 16383) */
memset
(
buff
,
0
,
bufflen
);
memset
(
buff
,
0
,
bufflen
);
lun_cnt
=
scsi_debug_max_luns
;
lun_cnt
=
scsi_debug_max_luns
;
buff
[
2
]
=
((
sizeof
(
ScsiL
un
)
*
lun_cnt
)
>>
8
)
&
0xff
;
buff
[
2
]
=
((
sizeof
(
struct
scsi_l
un
)
*
lun_cnt
)
>>
8
)
&
0xff
;
buff
[
3
]
=
(
sizeof
(
ScsiL
un
)
*
lun_cnt
)
&
0xff
;
buff
[
3
]
=
(
sizeof
(
struct
scsi_l
un
)
*
lun_cnt
)
&
0xff
;
lun_cnt
=
min
((
int
)((
bufflen
-
8
)
/
sizeof
(
ScsiL
un
)),
lun_cnt
=
min
((
int
)((
bufflen
-
8
)
/
sizeof
(
struct
scsi_l
un
)),
lun_cnt
);
lun_cnt
);
one_lun
=
(
ScsiLun
*
)
&
buff
[
8
];
one_lun
=
(
struct
scsi_lun
*
)
&
buff
[
8
];
for
(
i
=
0
;
i
<
lun_cnt
;
i
++
)
{
for
(
i
=
0
;
i
<
lun_cnt
;
i
++
)
{
upper
=
(
i
>>
8
)
&
0x3f
;
upper
=
(
i
>>
8
)
&
0x3f
;
if
(
upper
)
if
(
upper
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment