projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
lib/bitmap.c: elide bitmap_copy_le on little-endian
[firefly-linux-kernel-4.4.55.git]
/
lib
/
bitmap.c
diff --git
a/lib/bitmap.c
b/lib/bitmap.c
index e4ac20bec76cdc8c3ccd8eb01c44696cc0211edb..d2cd50cd4f5dda75d639b3d00c159e31e5529d69 100644
(file)
--- a/
lib/bitmap.c
+++ b/
lib/bitmap.c
@@
-1191,6
+1191,7
@@
EXPORT_SYMBOL(bitmap_allocate_region);
*
* Require nbits % BITS_PER_LONG == 0.
*/
+#ifdef __BIG_ENDIAN
void bitmap_copy_le(unsigned long *dst, const unsigned long *src, unsigned int nbits)
{
unsigned int i;
@@
-1203,3
+1204,4
@@
void bitmap_copy_le(unsigned long *dst, const unsigned long *src, unsigned int n
}
}
EXPORT_SYMBOL(bitmap_copy_le);
+#endif