[linux] 11/17: selftests: Add missing #include directives

debian-kernel at lists.debian.org debian-kernel at lists.debian.org
Sat Oct 31 22:18:16 UTC 2015


This is an automated email from the git hooks/post-receive script.

benh pushed a commit to branch master
in repository linux.

commit 499a3df5b571913bf827055503910291f9acd268
Author: Ben Hutchings <ben at decadent.org.uk>
Date:   Fri Oct 30 01:47:52 2015 +0000

    selftests: Add missing #include directives
---
 .../selftests-add-missing-include-directives.patch | 67 ++++++++++++++++++++++
 debian/patches/series                              |  2 +
 2 files changed, 69 insertions(+)

diff --git a/debian/patches/bugfix/all/selftests-add-missing-include-directives.patch b/debian/patches/bugfix/all/selftests-add-missing-include-directives.patch
new file mode 100644
index 0000000..26d6ee9
--- /dev/null
+++ b/debian/patches/bugfix/all/selftests-add-missing-include-directives.patch
@@ -0,0 +1,67 @@
+From: Ben Hutchings <ben at decadent.org.uk>
+Date: Fri, 30 Oct 2015 01:18:01 +0000
+Subject: selftests: Add missing #include directives
+
+Several C programs fail to include the headers declaring all the
+functions they call, resulting in warnings or errors.
+
+After this, memfd_test.c is still missing some function declarations
+but can't easily get them because of a conflict between
+<linux/fcntl.h> and <sys/fcntl.h>.
+
+Signed-off-by: Ben Hutchings <ben at decadent.org.uk>
+---
+ tools/testing/selftests/memfd/memfd_test.c     | 1 +
+ tools/testing/selftests/mqueue/mq_open_tests.c | 1 +
+ tools/testing/selftests/mqueue/mq_perf_tests.c | 1 +
+ tools/testing/selftests/timers/nanosleep.c     | 1 +
+ 4 files changed, 4 insertions(+)
+
+diff --git a/tools/testing/selftests/memfd/memfd_test.c b/tools/testing/selftests/memfd/memfd_test.c
+index 0b9eafb..5347ef6 100644
+--- a/tools/testing/selftests/memfd/memfd_test.c
++++ b/tools/testing/selftests/memfd/memfd_test.c
+@@ -15,6 +15,7 @@
+ #include <sys/mman.h>
+ #include <sys/stat.h>
+ #include <sys/syscall.h>
++#include <sys/wait.h>
+ #include <unistd.h>
+ 
+ #define MFD_DEF_SIZE 8192
+diff --git a/tools/testing/selftests/mqueue/mq_open_tests.c b/tools/testing/selftests/mqueue/mq_open_tests.c
+index 9c1a5d35..e0a74bd 100644
+--- a/tools/testing/selftests/mqueue/mq_open_tests.c
++++ b/tools/testing/selftests/mqueue/mq_open_tests.c
+@@ -31,6 +31,7 @@
+ #include <sys/resource.h>
+ #include <sys/stat.h>
+ #include <mqueue.h>
++#include <error.h>
+ 
+ static char *usage =
+ "Usage:\n"
+diff --git a/tools/testing/selftests/mqueue/mq_perf_tests.c b/tools/testing/selftests/mqueue/mq_perf_tests.c
+index 8519e9e..8188f72 100644
+--- a/tools/testing/selftests/mqueue/mq_perf_tests.c
++++ b/tools/testing/selftests/mqueue/mq_perf_tests.c
+@@ -37,6 +37,7 @@
+ #include <sys/stat.h>
+ #include <mqueue.h>
+ #include <popt.h>
++#include <error.h>
+ 
+ static char *usage =
+ "Usage:\n"
+diff --git a/tools/testing/selftests/timers/nanosleep.c b/tools/testing/selftests/timers/nanosleep.c
+index 8a3c29d..ff942ff 100644
+--- a/tools/testing/selftests/timers/nanosleep.c
++++ b/tools/testing/selftests/timers/nanosleep.c
+@@ -19,6 +19,7 @@
+  *   GNU General Public License for more details.
+  */
+ 
++#include <errno.h>
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <time.h>
diff --git a/debian/patches/series b/debian/patches/series
index c93dc19..4651cd2 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -81,3 +81,5 @@ features/all/grsecurity/grkernsec_perf_harden.patch
 
 bugfix/all/media-uvcvideo-disable-hardware-timestamps-by-defaul.patch
 bugfix/all/ovl-conditionally-use-o_largefile-in-ovl_copy_up.patch
+
+bugfix/all/selftests-add-missing-include-directives.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/kernel/linux.git



More information about the Kernel-svn-changes mailing list