提交 5f239f65 编写于 作者: R Rasmus Villemoes 提交者: Linus Torvalds

lib/bitmap.c: remove unused EXPORT_SYMBOLs

AFAICT, there have never been any callers of these functions outside
mm/mempolicy.c (via their nodemask.h wrappers).  In particular, no
modular code has ever used them, and given their somewhat exotic
semantics, I highly doubt they will ever find such a use.  In any case,
no need to export them currently.

Link: http://lkml.kernel.org/r/20190329205353.6010-1-linux@rasmusvillemoes.dkSigned-off-by: NRasmus Villemoes <linux@rasmusvillemoes.dk>
Cc: Andy Shevchenko <andy.shevchenko@gmail.com>
Cc: Yury Norov <yury.norov@gmail.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 6c4e121f
...@@ -757,7 +757,6 @@ void bitmap_remap(unsigned long *dst, const unsigned long *src, ...@@ -757,7 +757,6 @@ void bitmap_remap(unsigned long *dst, const unsigned long *src,
set_bit(bitmap_ord_to_pos(new, n % w, nbits), dst); set_bit(bitmap_ord_to_pos(new, n % w, nbits), dst);
} }
} }
EXPORT_SYMBOL(bitmap_remap);
/** /**
* bitmap_bitremap - Apply map defined by a pair of bitmaps to a single bit * bitmap_bitremap - Apply map defined by a pair of bitmaps to a single bit
...@@ -795,7 +794,6 @@ int bitmap_bitremap(int oldbit, const unsigned long *old, ...@@ -795,7 +794,6 @@ int bitmap_bitremap(int oldbit, const unsigned long *old,
else else
return bitmap_ord_to_pos(new, n % w, bits); return bitmap_ord_to_pos(new, n % w, bits);
} }
EXPORT_SYMBOL(bitmap_bitremap);
/** /**
* bitmap_onto - translate one bitmap relative to another * bitmap_onto - translate one bitmap relative to another
...@@ -930,7 +928,6 @@ void bitmap_onto(unsigned long *dst, const unsigned long *orig, ...@@ -930,7 +928,6 @@ void bitmap_onto(unsigned long *dst, const unsigned long *orig,
m++; m++;
} }
} }
EXPORT_SYMBOL(bitmap_onto);
/** /**
* bitmap_fold - fold larger bitmap into smaller, modulo specified size * bitmap_fold - fold larger bitmap into smaller, modulo specified size
...@@ -955,7 +952,6 @@ void bitmap_fold(unsigned long *dst, const unsigned long *orig, ...@@ -955,7 +952,6 @@ void bitmap_fold(unsigned long *dst, const unsigned long *orig,
for_each_set_bit(oldbit, orig, nbits) for_each_set_bit(oldbit, orig, nbits)
set_bit(oldbit % sz, dst); set_bit(oldbit % sz, dst);
} }
EXPORT_SYMBOL(bitmap_fold);
/* /*
* Common code for bitmap_*_region() routines. * Common code for bitmap_*_region() routines.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册