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
9a0754e7
Commit
9a0754e7
authored
Jun 05, 2003
by
Christoph Hellwig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] kill reamining scsi_scan.c typedef abuse
parent
8d74b162
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
drivers/scsi/scsi_scan.c
drivers/scsi/scsi_scan.c
+6
-6
No files found.
drivers/scsi/scsi_scan.c
View file @
9a0754e7
...
...
@@ -141,7 +141,8 @@ __setup("max_scsi_report_luns=", scsi_report_luns_setup);
* @sreq to unlock a device, storing the (unused) results into result.
* Called for BLIST_KEY devices.
**/
static
void
scsi_unlock_floptical
(
Scsi_Request
*
sreq
,
unsigned
char
*
result
)
static
void
scsi_unlock_floptical
(
struct
scsi_request
*
sreq
,
unsigned
char
*
result
)
{
unsigned
char
scsi_cmd
[
MAX_COMMAND_SIZE
];
...
...
@@ -154,8 +155,7 @@ static void scsi_unlock_floptical(Scsi_Request *sreq, unsigned char *result)
scsi_cmd
[
5
]
=
0
;
sreq
->
sr_cmd_len
=
0
;
sreq
->
sr_data_direction
=
SCSI_DATA_READ
;
scsi_wait_req
(
sreq
,
(
void
*
)
scsi_cmd
,
(
void
*
)
result
,
0x2a
/* size */
,
SCSI_TIMEOUT
,
3
);
scsi_wait_req
(
sreq
,
scsi_cmd
,
result
,
0x2a
/* size */
,
SCSI_TIMEOUT
,
3
);
}
/**
...
...
@@ -354,10 +354,10 @@ void scsi_free_sdev(struct scsi_device *sdev)
* are copied to the Scsi_Device at @sreq->sr_device (sdev);
* any flags value is stored in *@bflags.
**/
static
void
scsi_probe_lun
(
Scsi_R
equest
*
sreq
,
char
*
inq_result
,
static
void
scsi_probe_lun
(
struct
scsi_r
equest
*
sreq
,
char
*
inq_result
,
int
*
bflags
)
{
Scsi_D
evice
*
sdev
=
sreq
->
sr_device
;
/* a bit ugly */
struct
scsi_d
evice
*
sdev
=
sreq
->
sr_device
;
/* a bit ugly */
unsigned
char
scsi_cmd
[
MAX_COMMAND_SIZE
];
int
possible_inq_resp_len
;
...
...
@@ -522,7 +522,7 @@ static void scsi_set_name(struct scsi_device *sdev, char *inq_result)
* SCSI_SCAN_NO_RESPONSE: could not allocate or setup a Scsi_Device
* SCSI_SCAN_LUN_PRESENT: a new Scsi_Device was allocated and initialized
**/
static
int
scsi_add_lun
(
Scsi_D
evice
*
sdev
,
char
*
inq_result
,
int
*
bflags
)
static
int
scsi_add_lun
(
struct
scsi_d
evice
*
sdev
,
char
*
inq_result
,
int
*
bflags
)
{
struct
scsi_device
*
sdev_sibling
;
struct
scsi_target
*
starget
;
...
...
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