projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
net: aquantia: rx filters for ptp
[linux-2.6-microblaze.git]
/
lib
/
strnlen_user.c
diff --git
a/lib/strnlen_user.c
b/lib/strnlen_user.c
index
28ff554
..
6c0005d
100644
(file)
--- a/
lib/strnlen_user.c
+++ b/
lib/strnlen_user.c
@@
-3,16
+3,10
@@
#include <linux/export.h>
#include <linux/uaccess.h>
#include <linux/mm.h>
#include <linux/export.h>
#include <linux/uaccess.h>
#include <linux/mm.h>
+#include <linux/bitops.h>
#include <asm/word-at-a-time.h>
#include <asm/word-at-a-time.h>
-/* Set bits in the first 'n' bytes when loaded from memory */
-#ifdef __LITTLE_ENDIAN
-# define aligned_byte_mask(n) ((1ul << 8*(n))-1)
-#else
-# define aligned_byte_mask(n) (~0xfful << (BITS_PER_LONG - 8 - 8*(n)))
-#endif
-
/*
* Do a strnlen, return length of string *with* final '\0'.
* 'count' is the user-supplied count, while 'max' is the
/*
* Do a strnlen, return length of string *with* final '\0'.
* 'count' is the user-supplied count, while 'max' is the