Skip to content

Commit 9078b4e

Browse files
NicolasDichtelmasahir0y
authored andcommitted
uapi: includes linux/types.h before exporting files
Some files will be exported after a following patch. 0-day tests report the following warning/error: ./usr/include/linux/bcache.h:8: include of <linux/types.h> is preferred over <asm/types.h> ./usr/include/linux/bcache.h:11: found __[us]{8,16,32,64} type without #include <linux/types.h> ./usr/include/linux/qrtr.h:8: found __[us]{8,16,32,64} type without #include <linux/types.h> ./usr/include/linux/cryptouser.h:39: found __[us]{8,16,32,64} type without #include <linux/types.h> ./usr/include/linux/pr.h:14: found __[us]{8,16,32,64} type without #include <linux/types.h> ./usr/include/linux/btrfs_tree.h:337: found __[us]{8,16,32,64} type without #include <linux/types.h> ./usr/include/rdma/bnxt_re-abi.h:45: found __[us]{8,16,32,64} type without #include <linux/types.h> Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
1 parent bd73a32 commit 9078b4e

File tree

6 files changed

+10
-1
lines changed

6 files changed

+10
-1
lines changed

include/uapi/linux/bcache.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Bcache on disk data structures
66
*/
77

8-
#include <asm/types.h>
8+
#include <linux/types.h>
99

1010
#define BITMASK(name, type, field, offset, size) \
1111
static inline __u64 name(const type *k) \

include/uapi/linux/btrfs_tree.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#ifndef _BTRFS_CTREE_H_
22
#define _BTRFS_CTREE_H_
33

4+
#include <linux/types.h>
5+
46
/*
57
* This header contains the structure definitions and constants used
68
* by file system objects that can be retrieved using

include/uapi/linux/cryptouser.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
* 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
1919
*/
2020

21+
#include <linux/types.h>
22+
2123
/* Netlink configuration messages. */
2224
enum {
2325
CRYPTO_MSG_BASE = 0x10,

include/uapi/linux/pr.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#ifndef _UAPI_PR_H
22
#define _UAPI_PR_H
33

4+
#include <linux/types.h>
5+
46
enum pr_type {
57
PR_WRITE_EXCLUSIVE = 1,
68
PR_EXCLUSIVE_ACCESS = 2,

include/uapi/linux/qrtr.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#define _LINUX_QRTR_H
33

44
#include <linux/socket.h>
5+
#include <linux/types.h>
56

67
struct sockaddr_qrtr {
78
__kernel_sa_family_t sq_family;

include/uapi/rdma/bnxt_re-abi.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@
3939
#ifndef __BNXT_RE_UVERBS_ABI_H__
4040
#define __BNXT_RE_UVERBS_ABI_H__
4141

42+
#include <linux/types.h>
43+
4244
#define BNXT_RE_ABI_VERSION 1
4345

4446
struct bnxt_re_uctx_resp {

0 commit comments

Comments
 (0)