mirror of
https://github.com/torvalds/linux.git
synced 2024-12-04 18:13:04 +00:00
tools/nolibc: fix return type of getpagesize()
It's documented as returning int which is also implemented by glibc and musl, so adopt that return type. Signed-off-by: Thomas Weißschuh <linux@weissschuh.net> Signed-off-by: Willy Tarreau <w@1wt.eu>
This commit is contained in:
parent
f2f5eaefa1
commit
6407750225
@ -460,11 +460,11 @@ pid_t gettid(void)
|
||||
static unsigned long getauxval(unsigned long key);
|
||||
|
||||
/*
|
||||
* long getpagesize(void);
|
||||
* int getpagesize(void);
|
||||
*/
|
||||
|
||||
static __attribute__((unused))
|
||||
long getpagesize(void)
|
||||
int getpagesize(void)
|
||||
{
|
||||
return __sysret(getauxval(AT_PAGESZ) ?: -ENOENT);
|
||||
}
|
||||
|
@ -636,7 +636,7 @@ int test_getdents64(const char *dir)
|
||||
|
||||
static int test_getpagesize(void)
|
||||
{
|
||||
long x = getpagesize();
|
||||
int x = getpagesize();
|
||||
int c;
|
||||
|
||||
if (x < 0)
|
||||
|
Loading…
Reference in New Issue
Block a user