Fixed the following category of complaints reported by the 2.6.32 checkpatch:

11 ERROR: that open brace { should be on the previous line


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1405 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2009-12-16 20:01:08 +00:00
parent 11044c3033
commit 8e8abd54b5
6 changed files with 20 additions and 27 deletions
+2 -4
View File
@@ -25,8 +25,7 @@
#define ISCSI_PROC_LOG_ENTRY_NAME "trace_level"
static struct scst_trace_log iscsi_local_trace_tbl[] =
{
static struct scst_trace_log iscsi_local_trace_tbl[] = {
{ TRACE_D_READ, "d_read" },
{ TRACE_D_WRITE, "d_write" },
{ TRACE_CONN_OC, "conn" },
@@ -171,8 +170,7 @@ struct proc_entries {
const struct file_operations *const fops;
};
static struct proc_entries iscsi_proc_entries[] =
{
static struct proc_entries iscsi_proc_entries[] = {
{"session", &session_seq_fops},
};
+1 -2
View File
@@ -3144,8 +3144,7 @@ static int iscsi_target_release(struct scst_tgt *scst_tgt)
}
#ifndef CONFIG_SCST_PROC
static struct scst_trace_log iscsi_local_trace_tbl[] =
{
static struct scst_trace_log iscsi_local_trace_tbl[] = {
{ TRACE_D_READ, "d_read" },
{ TRACE_D_WRITE, "d_write" },
{ TRACE_CONN_OC, "conn" },
+1 -2
View File
@@ -48,8 +48,7 @@
#define TRACE_ORDER 0x80000000
static struct scst_trace_log vdisk_local_trace_tbl[] =
{
static struct scst_trace_log vdisk_local_trace_tbl[] = {
{ TRACE_ORDER, "order" },
{ 0, NULL }
};
+3 -2
View File
@@ -2048,8 +2048,9 @@ out:
int scst_prepare_request_sense(struct scst_cmd *orig_cmd)
{
int res = 0;
static const uint8_t request_sense[6] =
{ REQUEST_SENSE, 0, 0, 0, SCST_SENSE_BUFFERSIZE, 0 };
static const uint8_t request_sense[6] = {
REQUEST_SENSE, 0, 0, 0, SCST_SENSE_BUFFERSIZE, 0
};
struct scst_cmd *rs_cmd;
TRACE_ENTRY();
+10 -11
View File
@@ -92,8 +92,7 @@ static struct proc_dir_entry *scst_proc_groups_root;
#if defined(CONFIG_SCST_DEBUG) || defined(CONFIG_SCST_TRACING)
static struct scst_proc_data scst_log_proc_data;
static struct scst_trace_log scst_proc_trace_tbl[] =
{
static struct scst_trace_log scst_proc_trace_tbl[] = {
{ TRACE_OUT_OF_MEM, "out_of_mem" },
{ TRACE_MINOR, "minor" },
{ TRACE_SG_OP, "sg" },
@@ -114,8 +113,7 @@ static struct scst_trace_log scst_proc_trace_tbl[] =
{ 0, NULL }
};
static struct scst_trace_log scst_proc_local_trace_tbl[] =
{
static struct scst_trace_log scst_proc_local_trace_tbl[] = {
{ TRACE_RTRY, "retry" },
{ TRACE_SCSI_SERIALIZING, "scsi_serializing" },
{ TRACE_RCV_BOT, "recv_bot" },
@@ -163,8 +161,7 @@ static char *scst_proc_help_string =
#endif
;
static char *scst_proc_dev_handler_type[] =
{
static char *scst_proc_dev_handler_type[] = {
"Direct-access device (e.g., magnetic disk)",
"Sequential-access device (e.g., magnetic tape)",
"Printer device",
@@ -414,11 +411,13 @@ out:
#ifdef CONFIG_SCST_MEASURE_LATENCY
static char *scst_io_size_names[] = { "<=8K ",
"<=32K ",
"<=128K",
"<=512K",
">512K " };
static char *scst_io_size_names[] = {
"<=8K ",
"<=32K ",
"<=128K",
"<=512K",
">512K "
};
static int lat_info_show(struct seq_file *seq, void *v)
{
+3 -6
View File
@@ -40,8 +40,7 @@ static struct kobject *scst_handlers_kobj;
struct sysfs_ops scst_sysfs_ops;
EXPORT_SYMBOL(scst_sysfs_ops);
static const char *scst_dev_handler_types[] =
{
static const char *scst_dev_handler_types[] = {
"Direct-access device (e.g., magnetic disk)",
"Sequential-access device (e.g., magnetic tape)",
"Printer device",
@@ -64,8 +63,7 @@ static const char *scst_dev_handler_types[] =
static DEFINE_MUTEX(scst_log_mutex);
static struct scst_trace_log scst_trace_tbl[] =
{
static struct scst_trace_log scst_trace_tbl[] = {
{ TRACE_OUT_OF_MEM, "out_of_mem" },
{ TRACE_MINOR, "minor" },
{ TRACE_SG_OP, "sg" },
@@ -86,8 +84,7 @@ static struct scst_trace_log scst_trace_tbl[] =
{ 0, NULL }
};
static struct scst_trace_log scst_local_trace_tbl[] =
{
static struct scst_trace_log scst_local_trace_tbl[] = {
{ TRACE_RTRY, "retry" },
{ TRACE_SCSI_SERIALIZING, "scsi_serializing" },
{ TRACE_RCV_BOT, "recv_bot" },