Skip to content

Commit f33213e

Browse files
shadowconnectLinus Torvalds
authored andcommitted
[PATCH] I2O: Lindent run and replacement of printk through osm printing functions
Lindent run and replaced printk() through the corresponding osm_*() function Signed-off-by: Markus Lidel <Markus.Lidel@shadowconnect.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
1 parent 9e87545 commit f33213e

11 files changed

Lines changed: 100 additions & 110 deletions

File tree

‎drivers/message/i2o/Kconfig‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ config I2O_EXT_ADAPTEC_DMA64
4444

4545
config I2O_CONFIG
4646
tristate "I2O Configuration support"
47-
depends on PCI && I2O
48-
help
47+
depends on I2O
48+
---help---
4949
Say Y for support of the configuration interface for the I2O adapters.
5050
If you have a RAID controller from Adaptec and you want to use the
5151
raidutils to manage your RAID array, you have to say Y here.
@@ -74,7 +74,7 @@ config I2O_BUS
7474
config I2O_BLOCK
7575
tristate "I2O Block OSM"
7676
depends on I2O
77-
help
77+
---help---
7878
Include support for the I2O Block OSM. The Block OSM presents disk
7979
and other structured block devices to the operating system. If you
8080
are using an RAID controller, you could access the array only by
@@ -87,7 +87,7 @@ config I2O_BLOCK
8787
config I2O_SCSI
8888
tristate "I2O SCSI OSM"
8989
depends on I2O && SCSI
90-
help
90+
---help---
9191
Allows direct SCSI access to SCSI devices on a SCSI or FibreChannel
9292
I2O controller. You can use both the SCSI and Block OSM together if
9393
you wish. To access a RAID array, you must use the Block OSM driver.
@@ -99,7 +99,7 @@ config I2O_SCSI
9999
config I2O_PROC
100100
tristate "I2O /proc support"
101101
depends on I2O
102-
help
102+
---help---
103103
If you say Y here and to "/proc file system support", you will be
104104
able to read I2O related information from the virtual directory
105105
/proc/i2o.

‎drivers/message/i2o/device.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,6 @@ static struct class_interface i2o_device_class_interface = {
443443
* Note that the minimum sized reslist is 8 bytes and contains
444444
* ResultCount, ErrorInfoSize, BlockStatus and BlockSize.
445445
*/
446-
447446
static int i2o_parm_issue(struct i2o_device *i2o_dev, int cmd, void *oplist,
448447
int oplen, void *reslist, int reslen)
449448
{

‎drivers/message/i2o/driver.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,9 @@ int i2o_driver_register(struct i2o_driver *drv)
117117

118118
i2o_driver_notify_controller_add(drv, c);
119119
list_for_each_entry(i2o_dev, &c->devices, list)
120-
i2o_driver_notify_device_add(drv, i2o_dev);
120+
i2o_driver_notify_device_add(drv, i2o_dev);
121121
}
122122

123-
124123
rc = driver_register(&drv->driver);
125124
if (rc)
126125
destroy_workqueue(drv->event_queue);

‎drivers/message/i2o/exec-osm.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ int i2o_msg_post_wait_mem(struct i2o_controller *c, u32 m, unsigned long
152152
list_add(&wait->list, &i2o_exec_wait_list);
153153

154154
wait_event_interruptible_timeout(wq, wait->complete,
155-
timeout * HZ);
155+
timeout * HZ);
156156

157157
wait->wq = NULL;
158158
}

‎drivers/message/i2o/i2o_block.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -940,7 +940,6 @@ static void i2o_block_request_fn(struct request_queue *q)
940940
INIT_WORK(&dreq->work, i2o_block_delayed_request_fn,
941941
dreq);
942942

943-
osm_info("transfer error\n");
944943
if (!queue_delayed_work(i2o_block_driver.event_queue,
945944
&dreq->work,
946945
I2O_BLOCK_RETRY_TIME))
@@ -1042,8 +1041,8 @@ static struct i2o_block_device *i2o_block_device_alloc(void)
10421041
static int i2o_block_probe(struct device *dev)
10431042
{
10441043
struct i2o_device *i2o_dev = to_i2o_device(dev);
1045-
struct i2o_block_device *i2o_blk_dev;
10461044
struct i2o_controller *c = i2o_dev->iop;
1045+
struct i2o_block_device *i2o_blk_dev;
10471046
struct gendisk *gd;
10481047
struct request_queue *queue;
10491048
static int unit = 0;

‎drivers/message/i2o/i2o_block.h‎

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -64,40 +64,38 @@
6464

6565
/* I2O Block OSM mempool struct */
6666
struct i2o_block_mempool {
67-
kmem_cache_t *slab;
68-
mempool_t *pool;
67+
kmem_cache_t *slab;
68+
mempool_t *pool;
6969
};
7070

7171
/* I2O Block device descriptor */
7272
struct i2o_block_device {
7373
struct i2o_device *i2o_dev; /* pointer to I2O device */
7474
struct gendisk *gd;
75-
spinlock_t lock; /* queue lock */
75+
spinlock_t lock; /* queue lock */
7676
struct list_head open_queue; /* list of transfered, but unfinished
7777
requests */
7878
unsigned int open_queue_depth; /* number of requests in the queue */
7979

80-
int rcache; /* read cache flags */
81-
int wcache; /* write cache flags */
80+
int rcache; /* read cache flags */
81+
int wcache; /* write cache flags */
8282
int flags;
83-
u16 power; /* power state */
84-
int media_change_flag; /* media changed flag */
83+
u16 power; /* power state */
84+
int media_change_flag; /* media changed flag */
8585
};
8686

8787
/* I2O Block device request */
88-
struct i2o_block_request
89-
{
88+
struct i2o_block_request {
9089
struct list_head queue;
91-
struct request *req; /* corresponding request */
90+
struct request *req; /* corresponding request */
9291
struct i2o_block_device *i2o_blk_dev; /* I2O block device */
93-
struct device *dev; /* device used for DMA */
94-
int sg_nents; /* number of SG elements */
95-
struct scatterlist sg_table[I2O_MAX_PHYS_SEGMENTS]; /* SG table */
92+
struct device *dev; /* device used for DMA */
93+
int sg_nents; /* number of SG elements */
94+
struct scatterlist sg_table[I2O_MAX_PHYS_SEGMENTS]; /* SG table */
9695
};
9796

9897
/* I2O Block device delayed request */
99-
struct i2o_block_delayed_request
100-
{
98+
struct i2o_block_delayed_request {
10199
struct work_struct work;
102100
struct request_queue *queue;
103101
};

‎drivers/message/i2o/i2o_config.c‎

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -368,9 +368,9 @@ static int i2o_cfg_swul(unsigned long arg)
368368

369369
i2o_dma_free(&c->pdev->dev, &buffer);
370370

371-
return_ret:
371+
return_ret:
372372
return ret;
373-
return_fault:
373+
return_fault:
374374
ret = -EFAULT;
375375
goto return_ret;
376376
};
@@ -519,7 +519,8 @@ static int i2o_cfg_evt_get(unsigned long arg, struct file *fp)
519519

520520
#ifdef CONFIG_I2O_EXT_ADAPTEC
521521
#ifdef CONFIG_COMPAT
522-
static int i2o_cfg_passthru32(struct file *file, unsigned cmnd, unsigned long arg)
522+
static int i2o_cfg_passthru32(struct file *file, unsigned cmnd,
523+
unsigned long arg)
523524
{
524525
struct i2o_cmd_passthru32 __user *cmd;
525526
struct i2o_controller *c;
@@ -646,8 +647,9 @@ static int i2o_cfg_passthru32(struct file *file, unsigned cmnd, unsigned long ar
646647
flag_count & 0x04000000 /*I2O_SGL_FLAGS_DIR */ ) {
647648
// TODO 64bit fix
648649
if (copy_from_user
649-
(p->virt, (void __user *)(unsigned long)sg[i].addr_bus,
650-
sg_size)) {
650+
(p->virt,
651+
(void __user *)(unsigned long)sg[i].
652+
addr_bus, sg_size)) {
651653
printk(KERN_DEBUG
652654
"%s: Could not copy SG buf %d FROM user\n",
653655
c->name, i);
@@ -738,11 +740,12 @@ static int i2o_cfg_passthru32(struct file *file, unsigned cmnd, unsigned long ar
738740
return rcode;
739741
}
740742

741-
static long i2o_cfg_compat_ioctl(struct file *file, unsigned cmd, unsigned long arg)
743+
static long i2o_cfg_compat_ioctl(struct file *file, unsigned cmd,
744+
unsigned long arg)
742745
{
743746
int ret;
744-
lock_kernel();
745-
switch (cmd) {
747+
lock_kernel();
748+
switch (cmd) {
746749
case I2OGETIOPS:
747750
ret = i2o_cfg_ioctl(NULL, file, cmd, arg);
748751
break;
@@ -1136,6 +1139,7 @@ static int __init i2o_config_old_init(void)
11361139
osm_err("can't register device.\n");
11371140
return -EBUSY;
11381141
}
1142+
11391143
return 0;
11401144
}
11411145

‎drivers/message/i2o/i2o_proc.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
*/
2929

3030
#define OSM_NAME "proc-osm"
31-
#define OSM_VERSION "$Rev$"
31+
#define OSM_VERSION "1.145"
3232
#define OSM_DESCRIPTION "I2O ProcFS OSM"
3333

3434
#define I2O_MAX_MODULES 4

0 commit comments

Comments
 (0)