diff options
author | Philip J Kelleher <pjk1939@linux.vnet.ibm.com> | 2013-02-18 21:35:59 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2013-02-18 21:35:59 +0100 |
commit | c206c70924737db6836382c09ad2dacd04bb6204 (patch) | |
tree | 31a9ebc3e0998f19db1537d45617ad13363dcef5 /drivers/block/rsxx/rsxx.h | |
parent | Merge branch 'delete-xt-disk' of git://git.kernel.org/pub/scm/linux/kernel/gi... (diff) | |
download | linux-c206c70924737db6836382c09ad2dacd04bb6204.tar.xz linux-c206c70924737db6836382c09ad2dacd04bb6204.zip |
block: IBM RamSan 70/80 driver fixes
This patch includes the following driver fixes for the
IBM RamSan 70/80 driver:
o Changed the creg_ctrl lock from a mutex to a spinlock.
o Added a count check for ioctl calls.
o Removed unnecessary casting of void pointers.
o Made every function static that needed to be.
o Added comments to explain things more thoroughly.
Signed-off-by: Philip J Kelleher <pjk1939@linux.vnet.ibm.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/block/rsxx/rsxx.h')
-rw-r--r-- | drivers/block/rsxx/rsxx.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/block/rsxx/rsxx.h b/drivers/block/rsxx/rsxx.h index 9581e136a042..2e50b65902b7 100644 --- a/drivers/block/rsxx/rsxx.h +++ b/drivers/block/rsxx/rsxx.h @@ -35,6 +35,8 @@ struct rsxx_reg_access { __u32 data[8]; }; +#define RSXX_MAX_REG_CNT (8 * (sizeof(__u32))) + #define RSXX_IOC_MAGIC 'r' #define RSXX_GETREG _IOWR(RSXX_IOC_MAGIC, 0x20, struct rsxx_reg_access) |