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
nexedi
linux
Commits
66aed46f
Commit
66aed46f
authored
Jun 19, 2004
by
Christoph Hellwig
Committed by
James Bottomley
Jun 19, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] switch scsi core and sd to <scsi/*.h> headers
Signed-off-by:
James Bottomley
<
James.Bottomley@SteelEye.com
>
parent
c1e26c4d
Changes
13
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
66 additions
and
56 deletions
+66
-56
drivers/scsi/constants.c
drivers/scsi/constants.c
+6
-3
drivers/scsi/hosts.c
drivers/scsi/hosts.c
+1
-3
drivers/scsi/scsi.c
drivers/scsi/scsi.c
+10
-4
drivers/scsi/scsi_devinfo.c
drivers/scsi/scsi_devinfo.c
+3
-2
drivers/scsi/scsi_error.c
drivers/scsi/scsi_error.c
+7
-3
drivers/scsi/scsi_ioctl.c
drivers/scsi/scsi_ioctl.c
+6
-8
drivers/scsi/scsi_lib.c
drivers/scsi/scsi_lib.c
+8
-4
drivers/scsi/scsi_proc.c
drivers/scsi/scsi_proc.c
+2
-1
drivers/scsi/scsi_scan.c
drivers/scsi/scsi_scan.c
+3
-1
drivers/scsi/scsi_syms.c
drivers/scsi/scsi_syms.c
+5
-14
drivers/scsi/scsi_sysfs.c
drivers/scsi/scsi_sysfs.c
+2
-1
drivers/scsi/scsicam.c
drivers/scsi/scsicam.c
+2
-3
drivers/scsi/sd.c
drivers/scsi/sd.c
+11
-9
No files found.
drivers/scsi/constants.c
View file @
66aed46f
...
...
@@ -6,13 +6,16 @@
* by D. Gilbert and aeb (20020609)
*/
#include <linux/module.h>
#include <linux/config.h>
#include <linux/blkdev.h>
#include <linux/module.h>
#include <linux/kernel.h>
#include "scsi.h"
#include <scsi/scsi.h>
#include <scsi/scsi_device.h>
#include <scsi/scsi_host.h>
#include <scsi/scsi_request.h>
#define CONST_COMMAND 0x01
#define CONST_STATUS 0x02
...
...
drivers/scsi/hosts.c
View file @
66aed46f
...
...
@@ -27,13 +27,11 @@
#include <linux/string.h>
#include <linux/mm.h>
#include <linux/init.h>
#include <linux/list.h>
#include <linux/completion.h>
#include <linux/unistd.h>
#include <scsi/scsi_device.h>
#include <scsi/scsi_host.h>
#include <scsi/scsi_transport.h>
#include "scsi.h"
#include "scsi_priv.h"
#include "scsi_logging.h"
...
...
drivers/scsi/scsi.c
View file @
66aed46f
...
...
@@ -56,8 +56,14 @@
#include <linux/notifier.h>
#include <linux/cpu.h>
#include <scsi/scsi.h>
#include <scsi/scsi_cmnd.h>
#include <scsi/scsi_dbg.h>
#include <scsi/scsi_device.h>
#include <scsi/scsi_eh.h>
#include <scsi/scsi_host.h>
#include "scsi.h"
#include <scsi/scsi_tcq.h>
#include <scsi/scsi_request.h>
#include "scsi_priv.h"
#include "scsi_logging.h"
...
...
@@ -400,7 +406,7 @@ void scsi_log_send(struct scsi_cmnd *cmd)
* output in scsi_log_completion.
*/
printk
(
" "
);
print_command
(
cmd
->
cmn
d
);
scsi_print_command
(
cm
d
);
if
(
level
>
3
)
{
printk
(
KERN_INFO
"buffer = 0x%p, bufflen = %d,"
" done = 0x%p, queuecommand 0x%p
\n
"
,
...
...
@@ -468,13 +474,13 @@ void scsi_log_completion(struct scsi_cmnd *cmd, int disposition)
printk
(
"UNKNOWN"
);
}
printk
(
" %8x "
,
cmd
->
result
);
print_command
(
cmd
->
cmn
d
);
scsi_print_command
(
cm
d
);
if
(
status_byte
(
cmd
->
result
)
&
CHECK_CONDITION
)
{
/*
* XXX The print_sense formatting/prefix
* doesn't match this function.
*/
print_sense
(
""
,
cmd
);
scsi_
print_sense
(
""
,
cmd
);
}
if
(
level
>
3
)
{
printk
(
KERN_INFO
"scsi host busy %d failed %d
\n
"
,
...
...
drivers/scsi/scsi_devinfo.c
View file @
66aed46f
...
...
@@ -6,12 +6,13 @@
#include <linux/moduleparam.h>
#include <linux/proc_fs.h>
#include <linux/seq_file.h>
#include <scsi/scsi_device.h>
#include <scsi/scsi_devinfo.h>
#include "scsi.h"
#include <scsi/scsi_host.h>
#include "scsi_priv.h"
/*
* scsi_dev_info_list: structure to hold black/white listed devices.
*/
...
...
drivers/scsi/scsi_error.c
View file @
66aed46f
...
...
@@ -23,10 +23,14 @@
#include <linux/interrupt.h>
#include <linux/blkdev.h>
#include <linux/smp_lock.h>
#include <scsi/scsi_ioctl.h>
#include "scsi.h"
#include <scsi/scsi.h>
#include <scsi/scsi_dbg.h>
#include <scsi/scsi_device.h>
#include <scsi/scsi_eh.h>
#include <scsi/scsi_host.h>
#include <scsi/scsi_ioctl.h>
#include <scsi/scsi_request.h>
#include "scsi_priv.h"
#include "scsi_logging.h"
...
...
@@ -673,7 +677,7 @@ static int scsi_eh_get_sense(struct list_head *work_q,
SCSI_LOG_ERROR_RECOVERY
(
3
,
printk
(
"sense requested for %p"
" result %x
\n
"
,
scmd
,
scmd
->
result
));
SCSI_LOG_ERROR_RECOVERY
(
3
,
print_sense
(
"bh"
,
scmd
));
SCSI_LOG_ERROR_RECOVERY
(
3
,
scsi_
print_sense
(
"bh"
,
scmd
));
rtn
=
scsi_decide_disposition
(
scmd
);
...
...
drivers/scsi/scsi_ioctl.c
View file @
66aed46f
...
...
@@ -5,23 +5,21 @@
* for the ones that remain
*/
#include <linux/module.h>
#include <asm/io.h>
#include <asm/uaccess.h>
#include <asm/system.h>
#include <asm/page.h>
#include <linux/blkdev.h>
#include <linux/interrupt.h>
#include <linux/errno.h>
#include <linux/kernel.h>
#include <linux/sched.h>
#include <linux/mm.h>
#include <linux/string.h>
#include <asm/uaccess.h>
#include <linux/blkdev.h>
#include "scsi.h"
#include <scsi/scsi.h>
#include <scsi/scsi_device.h>
#include <scsi/scsi_eh.h>
#include <scsi/scsi_host.h>
#include <scsi/scsi_ioctl.h>
#include <scsi/scsi_request.h>
#include "scsi_logging.h"
...
...
drivers/scsi/scsi_lib.c
View file @
66aed46f
...
...
@@ -16,9 +16,13 @@
#include <linux/init.h>
#include <linux/pci.h>
#include <scsi/scsi.h>
#include <scsi/scsi_dbg.h>
#include <scsi/scsi_device.h>
#include <scsi/scsi_driver.h>
#include <scsi/scsi_eh.h>
#include <scsi/scsi_host.h>
#include
"scsi.h"
#include
<scsi/scsi_request.h>
#include "scsi_priv.h"
#include "scsi_logging.h"
...
...
@@ -837,8 +841,8 @@ void scsi_io_completion(struct scsi_cmnd *cmd, unsigned int good_bytes,
printk
(
"scsi%d: ERROR on channel %d, id %d, lun %d, CDB: "
,
cmd
->
device
->
host
->
host_no
,
(
int
)
cmd
->
device
->
channel
,
(
int
)
cmd
->
device
->
id
,
(
int
)
cmd
->
device
->
lun
);
print_command
(
cmd
->
data_cmnd
);
print_sense
(
""
,
cmd
);
__scsi_
print_command
(
cmd
->
data_cmnd
);
scsi_
print_sense
(
""
,
cmd
);
cmd
=
scsi_end_request
(
cmd
,
0
,
block_bytes
,
1
);
return
;
default:
...
...
@@ -862,7 +866,7 @@ void scsi_io_completion(struct scsi_cmnd *cmd, unsigned int good_bytes,
cmd
->
device
->
lun
,
result
);
if
(
driver_byte
(
result
)
&
DRIVER_SENSE
)
print_sense
(
""
,
cmd
);
scsi_
print_sense
(
""
,
cmd
);
/*
* Mark a single buffer as not uptodate. Queue the remainder.
* We sometimes get this cruft in the event that a medium error
...
...
drivers/scsi/scsi_proc.c
View file @
66aed46f
...
...
@@ -27,8 +27,9 @@
#include <linux/seq_file.h>
#include <asm/uaccess.h>
#include <scsi/scsi.h>
#include <scsi/scsi_device.h>
#include <scsi/scsi_host.h>
#include "scsi.h"
#include "scsi_priv.h"
#include "scsi_logging.h"
...
...
drivers/scsi/scsi_scan.c
View file @
66aed46f
...
...
@@ -32,11 +32,13 @@
#include <linux/blkdev.h>
#include <asm/semaphore.h>
#include <scsi/scsi.h>
#include <scsi/scsi_device.h>
#include <scsi/scsi_driver.h>
#include <scsi/scsi_devinfo.h>
#include <scsi/scsi_host.h>
#include <scsi/scsi_request.h>
#include <scsi/scsi_transport.h>
#include "scsi.h"
#include "scsi_priv.h"
#include "scsi_logging.h"
...
...
drivers/scsi/scsi_syms.c
View file @
66aed46f
...
...
@@ -5,24 +5,15 @@
#include <linux/config.h>
#include <linux/module.h>
#include <linux/sched.h>
#include <linux/timer.h>
#include <linux/string.h>
#include <linux/slab.h>
#include <linux/ioport.h>
#include <linux/kernel.h>
#include <linux/blkdev.h>
#include <linux/fs.h>
#include <asm/system.h>
#include <asm/irq.h>
#include <asm/dma.h>
#include <scsi/scsi.h>
#include <scsi/scsi_dbg.h>
#include <scsi/scsi_device.h>
#include <scsi/scsi_driver.h>
#include <scsi/scsi_eh.h>
#include <scsi/scsi_host.h>
#include <scsi/scsi_ioctl.h>
#include <scsi/scsi_request.h>
#include <scsi/scsicam.h>
#include "scsi.h"
#include "scsi_logging.h"
...
...
drivers/scsi/scsi_sysfs.c
View file @
66aed46f
...
...
@@ -12,9 +12,10 @@
#include <linux/blkdev.h>
#include <linux/device.h>
#include <scsi/scsi.h>
#include <scsi/scsi_device.h>
#include <scsi/scsi_host.h>
#include <scsi/scsi_transport.h>
#include "scsi.h"
#include "scsi_priv.h"
#include "scsi_logging.h"
...
...
drivers/scsi/scsicam.c
View file @
66aed46f
...
...
@@ -11,17 +11,16 @@
*/
#include <linux/module.h>
#include <linux/fs.h>
#include <linux/genhd.h>
#include <linux/kernel.h>
#include <linux/blkdev.h>
#include <linux/buffer_head.h>
#include <asm/unaligned.h>
#include "scsi.h"
#include <scsi/scsi_host.h>
#include <scsi/scsicam.h>
static
int
setsize
(
unsigned
long
capacity
,
unsigned
int
*
cyls
,
unsigned
int
*
hds
,
unsigned
int
*
secs
);
...
...
drivers/scsi/sd.c
View file @
66aed46f
...
...
@@ -44,18 +44,20 @@
#include <linux/errno.h>
#include <linux/interrupt.h>
#include <linux/init.h>
#include <linux/reboot.h>
#include <linux/vmalloc.h>
#include <linux/blkdev.h>
#include <linux/blkpg.h>
#include <linux/kref.h>
#include <asm/uaccess.h>
#include "scsi.h"
#include <scsi/scsi_host.h>
#include <scsi/scsi.h>
#include <scsi/scsi_cmnd.h>
#include <scsi/scsi_dbg.h>
#include <scsi/scsi_device.h>
#include <scsi/scsi_driver.h>
#include <scsi/scsi_eh.h>
#include <scsi/scsi_host.h>
#include <scsi/scsi_ioctl.h>
#include <scsi/scsi_request.h>
#include <scsi/scsicam.h>
#include "scsi_logging.h"
...
...
@@ -769,7 +771,7 @@ static void sd_rw_intr(struct scsi_cmnd * SCpnt)
* Inform the user, but make sure that it's not treated
* as a hard error.
*/
print_sense
(
"sd"
,
SCpnt
);
scsi_
print_sense
(
"sd"
,
SCpnt
);
SCpnt
->
result
=
0
;
SCpnt
->
sense_buffer
[
0
]
=
0x0
;
good_bytes
=
this_count
;
...
...
@@ -918,7 +920,7 @@ sd_spinup_disk(struct scsi_disk *sdkp, char *diskname,
* probably pointless to loop */
if
(
!
spintime
)
{
printk
(
KERN_NOTICE
"%s: Unit Not Ready, sense:
\n
"
,
diskname
);
print_req_sense
(
""
,
SRpnt
);
scsi_
print_req_sense
(
""
,
SRpnt
);
}
break
;
}
...
...
@@ -987,7 +989,7 @@ sd_read_capacity(struct scsi_disk *sdkp, char *diskname,
driver_byte
(
the_result
));
if
(
driver_byte
(
the_result
)
&
DRIVER_SENSE
)
print_req_sense
(
"sd"
,
SRpnt
);
scsi_
print_req_sense
(
"sd"
,
SRpnt
);
else
printk
(
"%s : sense not available.
\n
"
,
diskname
);
...
...
@@ -1542,7 +1544,7 @@ static void sd_shutdown(struct device *dev)
status_byte
(
res
),
msg_byte
(
res
),
host_byte
(
res
),
driver_byte
(
res
));
if
(
driver_byte
(
res
)
&
DRIVER_SENSE
)
print_req_sense
(
"sd"
,
sreq
);
scsi_
print_req_sense
(
"sd"
,
sreq
);
}
scsi_release_request
(
sreq
);
...
...
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