linux-next: build warning after merge of the akpm-current tree
Subsystems (2)
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]
Hello,
Quoted 8 lines · Stephen Rothwell
Hi Andrew,
After merging the akpm-current tree, today's linux-next build (
x86_64allmodconfig) 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
02b31b0a5e9dd5ddbcb4ad86f63fbcb0a2b5d8f2Mon 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
@@ -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)