diff options
author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2005-09-16 19:27:33 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-09-17 11:49:58 -0700 |
commit | d176795b3eedc18f95160ecc0d7cdf0d2bc5a578 (patch) | |
tree | b69330c7572d1b96440ce841ce7ecf49d016d74e /drivers | |
parent | 1306a2b2be35179449db737ac0562b067cb96ddb (diff) | |
download | linux-d176795b3eedc18f95160ecc0d7cdf0d2bc5a578.tar.gz linux-d176795b3eedc18f95160ecc0d7cdf0d2bc5a578.tar.bz2 linux-d176795b3eedc18f95160ecc0d7cdf0d2bc5a578.zip |
[PATCH] s390: bl_dev array size
Calculate correct size for bl_dev array. It should be 8KB instead of 512KB
for 2^16 bits.
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/s390/cio/blacklist.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/s390/cio/blacklist.c b/drivers/s390/cio/blacklist.c index aac83ce6469c..a1c52a682191 100644 --- a/drivers/s390/cio/blacklist.c +++ b/drivers/s390/cio/blacklist.c @@ -1,7 +1,7 @@ /* * drivers/s390/cio/blacklist.c * S/390 common I/O routines -- blacklisting of specific devices - * $Revision: 1.34 $ + * $Revision: 1.35 $ * * Copyright (C) 1999-2002 IBM Deutschland Entwicklung GmbH, * IBM Corporation @@ -35,7 +35,7 @@ */ /* 65536 bits to indicate if a devno is blacklisted or not */ -#define __BL_DEV_WORDS (__MAX_SUBCHANNELS + (8*sizeof(long) - 1) / \ +#define __BL_DEV_WORDS ((__MAX_SUBCHANNELS + (8*sizeof(long) - 1)) / \ (8*sizeof(long))) static unsigned long bl_dev[__BL_DEV_WORDS]; typedef enum {add, free} range_action; |