Commit 933606ee authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

restorer: Cleanup - drop always_inline attribute from write_ helpers

This object file will be handled by ld script so .text
sections will be squashed into one common section.
Thus no need to force these functions being always-inlined.

It's a rudiment from time when we were not using ld at
all but #include source code file itself and now this
attribute might confuse code readers since it's
unclear _why_ it's needed at all.
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent e437e616
...@@ -16,12 +16,12 @@ void restorer_set_logfd(int fd) ...@@ -16,12 +16,12 @@ void restorer_set_logfd(int fd)
c += 'a' - 10; \ c += 'a' - 10; \
} while (0) } while (0)
static void always_inline write_char(char c) static void write_char(char c)
{ {
sys_write(logfd, &c, 1); sys_write(logfd, &c, 1);
} }
void always_inline write_string(char *str) void write_string(char *str)
{ {
int len = 0; int len = 0;
...@@ -31,7 +31,7 @@ void always_inline write_string(char *str) ...@@ -31,7 +31,7 @@ void always_inline write_string(char *str)
sys_write(logfd, str, len); sys_write(logfd, str, len);
} }
void always_inline write_string_n(char *str) void write_string_n(char *str)
{ {
char new_line = '\n'; char new_line = '\n';
...@@ -39,7 +39,7 @@ void always_inline write_string_n(char *str) ...@@ -39,7 +39,7 @@ void always_inline write_string_n(char *str)
sys_write(logfd, &new_line, 1); sys_write(logfd, &new_line, 1);
} }
void always_inline write_num(long num) void write_num(long num)
{ {
unsigned long d = 1000000000000000000; unsigned long d = 1000000000000000000;
unsigned int started = 0; unsigned int started = 0;
...@@ -66,7 +66,7 @@ void always_inline write_num(long num) ...@@ -66,7 +66,7 @@ void always_inline write_num(long num)
} }
} }
void always_inline write_num_n(long num) void write_num_n(long num)
{ {
unsigned char c; unsigned char c;
write_num(num); write_num(num);
...@@ -74,7 +74,7 @@ void always_inline write_num_n(long num) ...@@ -74,7 +74,7 @@ void always_inline write_num_n(long num)
sys_write(logfd, &c, sizeof(c)); sys_write(logfd, &c, sizeof(c));
} }
long always_inline vprint_num(char *buf, long num) long vprint_num(char *buf, long num)
{ {
unsigned long d = 1000000000000000000; unsigned long d = 1000000000000000000;
unsigned int started = 0; unsigned int started = 0;
...@@ -105,7 +105,7 @@ long always_inline vprint_num(char *buf, long num) ...@@ -105,7 +105,7 @@ long always_inline vprint_num(char *buf, long num)
return i; return i;
} }
void always_inline write_hex_n(unsigned long num) void write_hex_n(unsigned long num)
{ {
unsigned char *s = (unsigned char *)&num; unsigned char *s = (unsigned char *)&num;
unsigned char c; unsigned char c;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment