summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2021-10-04 23:33:30 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2021-10-04 23:33:30 +0200
commitf6274b06e326d8471cdfb52595f989a90f5e888f (patch)
treecb87da098caec1bbab5236aefc1739efd93b843b /tools
parentMerge tag 'media/v5.15-3' of git://git.kernel.org/pub/scm/linux/kernel/git/mc... (diff)
parentselftests: drivers/dma-buf: Fix implicit declaration warns (diff)
downloadlinux-f6274b06e326d8471cdfb52595f989a90f5e888f.tar.xz
linux-f6274b06e326d8471cdfb52595f989a90f5e888f.zip
Merge tag 'linux-kselftest-fixes-5.15-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest
Pull Kselftest fixes from Shuah Khan: "A fix to implicit declaration warns in drivers/dma-buf test" * tag 'linux-kselftest-fixes-5.15-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest: selftests: drivers/dma-buf: Fix implicit declaration warns
Diffstat (limited to 'tools')
-rw-r--r--tools/testing/selftests/drivers/dma-buf/udmabuf.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/testing/selftests/drivers/dma-buf/udmabuf.c b/tools/testing/selftests/drivers/dma-buf/udmabuf.c
index 4de902ea14d8..de1c4e6de0b2 100644
--- a/tools/testing/selftests/drivers/dma-buf/udmabuf.c
+++ b/tools/testing/selftests/drivers/dma-buf/udmabuf.c
@@ -1,10 +1,13 @@
// SPDX-License-Identifier: GPL-2.0
+#define _GNU_SOURCE
+#define __EXPORTED_HEADERS__
+
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <errno.h>
-#include <linux/fcntl.h>
+#include <fcntl.h>
#include <malloc.h>
#include <sys/ioctl.h>