[igt-dev] [PATCH i-g-t] tests/gem_fd_exhaustion: Fix build failure
Maarten Lankhorst
maarten.lankhorst at linux.intel.com
Mon Mar 12 10:20:06 UTC 2018
This breaks igt build really badly.
Signed-off-by: Maarten Lankhorst <maarten.lankhorst at linux.intel.com>
Cc: Karol Krol <karol.krol at intel.com>
---
tests/gem_fd_exhaustion.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/gem_fd_exhaustion.c b/tests/gem_fd_exhaustion.c
index d04cdd09dfd9..559590b14d90 100644
--- a/tests/gem_fd_exhaustion.c
+++ b/tests/gem_fd_exhaustion.c
@@ -80,7 +80,7 @@ static bool allow_unlimited_files(void)
return setrlimit(RLIMIT_NOFILE, &rlim) == 0;
}
-static void restore_original_sysctl(void)
+static void restore_original_sysctl(int sig)
{
if (original_nr_open > 0)
write_sysctl("/proc/sys/fs/nr_open", original_nr_open);
--
2.16.2
More information about the igt-dev
mailing list