Skip to contentSkip to conversation

lib/bitmap: remove unused macro BASEDEC

PATCH In review Alex Shi 2 participants 2 messages Jan 21, 2020

Subsystems (2)
lore
Share & tools
lore

Alex Shi

author
#0 lore raw

PATCH 1/1 lib/bitmap: remove unused macro BASEDEC

This macro isn't used after commit 4b060420a596 ("bitmap, irq: add smp_affinity_list interface to /proc/irq"). better to remove it.

Cc Andrew Morton <[email protected]>
Cc Andy Shevchenko <[email protected]>
Cc Rasmus Villemoes <[email protected]>
Cc Yury Norov <[email protected]>
Cc Thomas Gleixner <[email protected]>
---
 lib/bitmap.c | 1 -
 1 file changed, 1 deletion(-)
lib/bitmap.c +0 -1
index 4250519d7d1c..1b2546b81c95 100644
@@ -367,7 +367,6 @@ unsigned long bitmap_find_next_zero_area_off(unsigned long *map,
 
 #define CHUNKSZ				32
 #define nbits_to_hold_value(val)	fls(val)
-#define BASEDEC 10		/* fancier cpuset lists input in decimal */
 
 /**
  * __bitmap_parse - convert an ASCII hex string into a bitmap.
Signature · 1 line
1.8.3.1
#1 lore raw
Quoted 2 lines · Alex Shi

This macro isn't used after commit 4b060420a596 ("bitmap, irq: add smp_affinity_list interface to /proc/irq"). better to remove it.

Isn't it already done in linux-next?

commit c2c67926dda7c0fd85faa81cd08976a583218b7d

Author: Yury Norov <[email protected]>
Date:   Wed Jan 15 14:36:23 2020 +1100

lib: rework bitmap_parse()

Signature · 2 lines
With Best Regards,
Andy Shevchenko