Skip to content

Commit

Permalink
s390/cio: Use BITS_TO_LONGS() instead of __BITOPS_WORDS()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Akinobu Mita authored and Martin Schwidefsky committed Apr 17, 2013
1 parent 01c2475 commit 03ff60d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/s390/cio/idset.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 03ff60d

Please sign in to comment.