Commit 03ff60df authored by Akinobu Mita's avatar Akinobu Mita Committed by Martin Schwidefsky

s390/cio: Use BITS_TO_LONGS() instead of __BITOPS_WORDS()

Use BITS_TO_LONGS() instead of __BITOPS_WORDS() that is considered
to be private macro in asm/bitops.h for s390.
Signed-off-by: default avatarAkinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: default avatarHeiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
parent 01c2475f
...@@ -17,7 +17,7 @@ struct idset { ...@@ -17,7 +17,7 @@ struct idset {
static inline unsigned long bitmap_size(int num_ssid, int num_id) static inline unsigned long bitmap_size(int num_ssid, int num_id)
{ {
return __BITOPS_WORDS(num_ssid * num_id) * sizeof(unsigned long); return BITS_TO_LONGS(num_ssid * num_id) * sizeof(unsigned long);
} }
static struct idset *idset_new(int num_ssid, int num_id) static struct idset *idset_new(int num_ssid, int num_id)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment