cpumask: remove bitmap_scnprintf_len and cpumask_scnprintf_len

They aren't used. They were briefly used as part of some other patches to
provide an alternative format for displaying some /proc and /sys cpumasks.
They probably should have been removed when those other patches were dropped,
in favor of a different solution.

Signed-off-by: Paul Jackson <pj@sgi.com>
Cc: "Mike Travis" <travis@sgi.com>
Cc: "Bert Wesarg" <bert.wesarg@googlemail.com>
Cc: Alexey Dobriyan <adobriyan@gmail.com>
Cc: WANG Cong <xiyou.wangcong@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by Paul Jackson and committed by Linus Torvalds f4ed0dea 53c78dd1

-24
-1
include/linux/bitmap.h
··· 110 110 111 111 extern int bitmap_scnprintf(char *buf, unsigned int len, 112 112 const unsigned long *src, int nbits); 113 - extern int bitmap_scnprintf_len(unsigned int len); 114 113 extern int __bitmap_parse(const char *buf, unsigned int buflen, int is_user, 115 114 unsigned long *dst, int nbits); 116 115 extern int bitmap_parse_user(const char __user *ubuf, unsigned int ulen,
-7
include/linux/cpumask.h
··· 289 289 return bitmap_scnprintf(buf, len, srcp->bits, nbits); 290 290 } 291 291 292 - #define cpumask_scnprintf_len(len) \ 293 - __cpumask_scnprintf_len((len)) 294 - static inline int __cpumask_scnprintf_len(int len) 295 - { 296 - return bitmap_scnprintf_len(len); 297 - } 298 - 299 292 #define cpumask_parse_user(ubuf, ulen, dst) \ 300 293 __cpumask_parse_user((ubuf), (ulen), &(dst), NR_CPUS) 301 294 static inline int __cpumask_parse_user(const char __user *buf, int len,
-16
lib/bitmap.c
··· 316 316 EXPORT_SYMBOL(bitmap_scnprintf); 317 317 318 318 /** 319 - * bitmap_scnprintf_len - return buffer length needed to convert 320 - * bitmap to an ASCII hex string. 321 - * @len: number of bits to be converted 322 - */ 323 - int bitmap_scnprintf_len(unsigned int len) 324 - { 325 - /* we need 9 chars per word for 32 bit words (8 hexdigits + sep/null) */ 326 - int bitslen = ALIGN(len, CHUNKSZ); 327 - int wordlen = CHUNKSZ / 4; 328 - int buflen = (bitslen / wordlen) * (wordlen + 1) * sizeof(char); 329 - 330 - return buflen; 331 - } 332 - EXPORT_SYMBOL(bitmap_scnprintf_len); 333 - 334 - /** 335 319 * __bitmap_parse - convert an ASCII hex string into a bitmap. 336 320 * @buf: pointer to buffer containing string. 337 321 * @buflen: buffer size in bytes. If string is smaller than this