s390/cio: Use BITS_TO_LONGS() instead of __BITOPS_WORDS()
authorAkinobu Mita <akinobu.mita@gmail.com>
Sat, 23 Mar 2013 14:05:30 +0000 (23:05 +0900)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 17 Apr 2013 12:07:29 +0000 (14:07 +0200)
Use BITS_TO_LONGS() instead of __BITOPS_WORDS() that is considered
to be private macro in asm/bitops.h for s390.

Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/cio/idset.c

index 65d13e38803f9dddc11079b9a00176e7b94116d2..5a999084a229545cdda97c9b9bc6980acf45ea76 100644 (file)
@@ -17,7 +17,7 @@ struct idset {
 
 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)