This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH] always inline alloc_perturb.
- From: OndÅej BÃlka <neleai at seznam dot cz>
- To: libc-alpha at sourceware dot org
- Date: Thu, 11 Dec 2014 21:36:25 +0100
- Subject: [PATCH] always inline alloc_perturb.
- Authentication-results: sourceware.org; auth=none
Hi,
to fix build error we change inline to always_inline. OK to commit?
* malloc/malloc.c (alloc_perturb, free_perturb):
use __always inline.
diff --git a/malloc/malloc.c b/malloc/malloc.c
index cb91b97..da09f2f 100644
--- a/malloc/malloc.c
+++ b/malloc/malloc.c
@@ -1854,14 +1854,14 @@ static int check_action = DEFAULT_CHECK_ACTION;
static int perturb_byte;
-static inline void
+static __always_inline void
alloc_perturb (char *p, size_t n)
{
if (__glibc_unlikely (perturb_byte))
memset (p, perturb_byte ^ 0xff, n);
}
-static inline void
+static __always_inline void
free_perturb (char *p, size_t n)
{
if (__glibc_unlikely (perturb_byte))