diff options
| author | Yury Norov <[email protected]> | 2022-07-01 12:54:25 +0000 |
|---|---|---|
| committer | Yury Norov <[email protected]> | 2022-07-15 13:35:54 +0000 |
| commit | 4dea97f8636d0514befc9fc5cf342b351b7d0e20 (patch) | |
| tree | 229c6eb22cd7c99bbe8d942a8f1b84465199a2fa /drivers/net/wireless/ath/carl9170/debug.c | |
| parent | lib/bitmap: change return types to bool where appropriate (diff) | |
| download | kernel-4dea97f8636d0514befc9fc5cf342b351b7d0e20.tar.gz kernel-4dea97f8636d0514befc9fc5cf342b351b7d0e20.zip | |
lib/bitmap: change type of bitmap_weight to unsigned long
bitmap_weight() doesn't return negative values, so change it's type
to unsigned long. It may help compiler to generate better code and
catch bugs.
Signed-off-by: Yury Norov <[email protected]>
Diffstat (limited to 'drivers/net/wireless/ath/carl9170/debug.c')
| -rw-r--r-- | drivers/net/wireless/ath/carl9170/debug.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/carl9170/debug.c b/drivers/net/wireless/ath/carl9170/debug.c index bb40889d7c72..7e88882b87d9 100644 --- a/drivers/net/wireless/ath/carl9170/debug.c +++ b/drivers/net/wireless/ath/carl9170/debug.c @@ -221,7 +221,7 @@ static char *carl9170_debugfs_mem_usage_read(struct ar9170 *ar, char *buf, ADD(buf, *len, bufsize, "jar: [%*pb]\n", ar->fw.mem_blocks, ar->mem_bitmap); - ADD(buf, *len, bufsize, "cookies: used:%3d / total:%3d, allocs:%d\n", + ADD(buf, *len, bufsize, "cookies: used:%3ld / total:%3d, allocs:%d\n", bitmap_weight(ar->mem_bitmap, ar->fw.mem_blocks), ar->fw.mem_blocks, atomic_read(&ar->mem_allocs)); |
