lkml.org 
[lkml]   [2008]   [Apr]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] Fix calculus of bitmap_scnprintf_len()
Paul Jackson wrote:
> Bert wrote:
>> The function bitmap_scnprintf_len() is currently not used
>
> Paul Jackson wrote:
>> How about we just remove that function?
>
> WANG Cong wrote:
>> I am afraid no. See:
>>
>> include/linux/cpumask.h:292: return bitmap_scnprintf_len(len);
>
> Good point.
>
>
> Then how about we also remove from cpumask.h:
>
> #define cpumask_scnprintf_len(len) \
> __cpumask_scnprintf_len((len))
> static inline int __cpumask_scnprintf_len(int len)
> {
> return bitmap_scnprintf_len(len);
> }
>

That's fine with me. A later version of the patch did have
the function removed but it didn't get picked up. The other
changes there were to use function pointers instead of the
flag variable to select list or mask output format, and the
addition of mask variants for the cpu/{present,possible,
online,system} map outputs.

I'll dig that one back up and resubmit it.

Thanks,
Mike


\
 
 \ /
  Last update: 2008-04-28 19:11    [W:0.038 / U:0.028 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site