[PATCH 3.2 148/185] um: add missing declaration of 'getrlimit()'and friends

From: Ben Hutchings
Date: Sat Dec 28 2013 - 21:42:08 EST


3.2.54-rc1 review patch. If anyone has any objections, please let me know.

------------------

From: Sergei Trofimovich <slyfox@xxxxxxxxxx>

commit fdfa4c952844fce881df8c76de9c7180cbe913ab upstream.

arch/um/os-Linux/start_up.c: In function 'check_coredump_limit':
arch/um/os-Linux/start_up.c:338:16: error: storage size of 'lim' isn't known
arch/um/os-Linux/start_up.c:339:2: error: implicit declaration of function 'getrlimit' [-Werror=implicit-function-declaration]

Signed-off-by: Sergei Trofimovich <slyfox@xxxxxxxxxx>
CC: Jeff Dike <jdike@xxxxxxxxxxx>
CC: Richard Weinberger <richard@xxxxxx>
CC: Al Viro <viro@xxxxxxxxxxxxxxxxxx>
CC: user-mode-linux-devel@xxxxxxxxxxxxxxxxxxxxx
CC: user-mode-linux-user@xxxxxxxxxxxxxxxxxxxxx
CC: linux-kernel@xxxxxxxxxxxxxxx
Signed-off-by: Richard Weinberger <richard@xxxxxx>
Signed-off-by: Ben Hutchings <ben@xxxxxxxxxxxxxxx>
---
arch/um/os-Linux/start_up.c | 2 ++
1 file changed, 2 insertions(+)

--- a/arch/um/os-Linux/start_up.c
+++ b/arch/um/os-Linux/start_up.c
@@ -15,6 +15,8 @@
#include <sys/mman.h>
#include <sys/stat.h>
#include <sys/wait.h>
+#include <sys/time.h>
+#include <sys/resource.h>
#include <asm/unistd.h>
#include "init.h"
#include "os.h"

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/