Skip to content

Commit 8d309c2

Browse files
committed
string: remove __used directive from ctype check functions
With the unneeded the __used directive, the resulting binary is sprinkled with unnecessary copies of the functions code. Signed-off-by: Pawel Wieczorkiewicz <wipawel@grsecurity.net>
1 parent bdf6272 commit 8d309c2

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

include/string.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,21 +27,21 @@
2727
#include <asm-macros.h>
2828
#include <mm/slab.h>
2929

30-
static inline __used int isspace(int c) { return c == ' ' || c == '\t'; }
30+
static inline int isspace(int c) { return c == ' ' || c == '\t'; }
3131

32-
static inline __used int iseostr(int c) { return c == '\0'; }
32+
static inline int iseostr(int c) { return c == '\0'; }
3333

34-
static inline __used int ispunct(int c) { return c == '.'; }
34+
static inline int ispunct(int c) { return c == '.'; }
3535

36-
static inline __used int isdigit(int c) { return c >= '0' && c <= '9'; }
36+
static inline int isdigit(int c) { return c >= '0' && c <= '9'; }
3737

38-
static inline __used int isxdigit(int c) {
38+
static inline int isxdigit(int c) {
3939
return (isdigit(c) || (c >= 'A' && c <= 'F') || (c >= 'a' && c <= 'f'));
4040
}
4141

42-
static inline __used int isascii(int c) { return c >= 0 && c <= 127; }
42+
static inline int isascii(int c) { return c >= 0 && c <= 127; }
4343

44-
static inline __used int islower(int c) { return c >= 'a' && c <= 'z'; }
44+
static inline int islower(int c) { return c >= 'a' && c <= 'z'; }
4545

4646
static inline int isupper(int c) { return c >= 'A' && c <= 'Z'; }
4747

0 commit comments

Comments
 (0)