Skip to contentSkip to conversation

linux-next: build warning after merge of the akpm-current tree

DISCUSSION Stephen Rothwell 2 participants 2 messages Jun 4, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi Andrew,

After merging the akpm-current tree, today's linux-next build (x86_64 allmodconfig) produced this warning:

./usr/include/linux/userfaultfd.h:14: found __[us]{8,16,32,64} type without #include <linux/types.h>

Introduced by commit 2873f48b446c ("userfaultfd: uAPI").

Signature · 2 lines
Cheers,
Stephen Rothwell                    [email protected]
#1 lore raw

Hello,

Quoted 8 lines · Stephen Rothwell

Hi Andrew,

After merging the akpm-current tree, today's linux-next build (x86_64 allmodconfig) produced this warning:

./usr/include/linux/userfaultfd.h:14: found __[us]{8,16,32,64} type without #include <linux/types.h>

Introduced by commit 2873f48b446c ("userfaultfd: uAPI").

Here's the fix:

===

Quoted 1 line

From 02b31b0a5e9dd5ddbcb4ad86f63fbcb0a2b5d8f2 Mon Sep 17 00:00:00 2001

From: Andrea Arcangeli <[email protected]>
Date: Thu, 4 Jun 2015 14:54:40 +0200
Subject: [PATCH] userfaultfd: uAPI: add missing include/types.h

This will avoid the below warning:

./usr/include/linux/userfaultfd.h:14: found __[us]{8,16,32,64} type without #include <linux/types.h>

---
 include/uapi/linux/userfaultfd.h | 2 ++
 1 file changed, 2 insertions(+)
include/uapi/linux/userfaultfd.h +2 -0
index 9a8cd56..09c2e2a 100644
@@ -9,6 +9,8 @@
 #ifndef _LINUX_USERFAULTFD_H
 #define _LINUX_USERFAULTFD_H
 
+#include <linux/types.h>
+
 #define UFFD_API ((__u64)0xAA)
 /* FIXME: add "|UFFD_BIT_WP" to UFFD_API_BITS after implementing it */
 #define UFFD_API_BITS (UFFD_BIT_WRITE)