The patch below fixes the following recently introduced checkpatch complaints:

* use tabs not spaces
* Macros with complex values should be enclosed in parenthesis.
* printk() should include KERN_ facility level.
The patch below has been verified by reviewing it carefully and by verifying the output of the following command: scripts/run-regression-tests -k 2.6.28.8

Signed-off-by: Bart Van Assche <bart.vanassche@gmail.com>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@707 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Vladislav Bolkhovitin
2009-03-20 12:36:01 +00:00
parent a20e32ad33
commit 27c5d8dcdf
9 changed files with 28 additions and 28 deletions
+4 -4
View File
@@ -445,11 +445,11 @@ enum scst_exec_context {
#define SCST_SENSE_ASCQ_VALID 4
#define SCST_SENSE_ASCx_VALID (SCST_SENSE_ASC_VALID | \
SCST_SENSE_ASCQ_VALID)
SCST_SENSE_ASCQ_VALID)
#define SCST_SENSE_ALL_VALID (SCST_SENSE_KEY_VALID | \
SCST_SENSE_ASC_VALID | \
SCST_SENSE_ASCQ_VALID)
SCST_SENSE_ASC_VALID | \
SCST_SENSE_ASCQ_VALID)
/*************************************************************
* TYPES
@@ -675,7 +675,7 @@ struct scst_tgt_template {
void (*task_mgmt_affected_cmds_done) (struct scst_mgmt_cmd *mgmt_cmd);
/*
* This function informs the driver that the corresponding task
* This function informs the driver that the corresponding task
* management function has been completed, i.e. all the corresponding
* commands completed and freed. No return value expected.
*
+2 -2
View File
@@ -93,7 +93,7 @@ static struct scst_proc_log vdisk_proc_local_trace_tbl[] =
#define VDISK_NAME "vdisk"
#define VCDROM_NAME "vcdrom"
#define VDISK_NULLIO_SIZE 3LL*1024*1024*1024*1024/2
#define VDISK_NULLIO_SIZE (3LL*1024*1024*1024*1024/2)
#define DEF_TST SCST_CONTR_MODE_SEP_TASK_SETS
/*
@@ -3326,7 +3326,7 @@ static int vcdrom_change(char *p, char *name)
err = 0;
virt_dev->file_name = NULL;
}
if (virt_dev->nullio)
err = VDISK_NULLIO_SIZE;
+4 -4
View File
@@ -3115,8 +3115,8 @@ int scst_obtain_device_parameters(struct scst_device *dev)
#endif
SCST_SENSE_VALID(sense_buffer)) {
if (scst_analyze_sense(sense_buffer,
sizeof(sense_buffer),
SCST_SENSE_KEY_VALID,
sizeof(sense_buffer),
SCST_SENSE_KEY_VALID,
ILLEGAL_REQUEST, 0, 0)) {
TRACE(TRACE_SCSI|TRACE_MGMT_MINOR,
"Device %d:%d:%d:%d doesn't "
@@ -3136,8 +3136,8 @@ int scst_obtain_device_parameters(struct scst_device *dev)
res = 0;
goto out;
} else if (scst_analyze_sense(sense_buffer,
sizeof(sense_buffer),
SCST_SENSE_KEY_VALID,
sizeof(sense_buffer),
SCST_SENSE_KEY_VALID,
NOT_READY, 0, 0)) {
TRACE(TRACE_SCSI,
"Device %d:%d:%d:%d not ready",