Skip to content

Commit

Permalink
uapi: convert u64 to __u64 in exported headers
Browse files Browse the repository at this point in the history
The u64 type is not defined in any exported kernel headers, so trying to
use it will lead to build failures.

Signed-off-by: Mike Frysinger <[email protected]>
Acked-by: David Rientjes <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
vapier authored and torvalds committed Jan 24, 2014
1 parent c318924 commit 0d9dfc2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/uapi/linux/nfs4.h
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@
#define NFS4_SECINFO_STYLE4_CURRENT_FH 0
#define NFS4_SECINFO_STYLE4_PARENT 1

#define NFS4_MAX_UINT64 (~(u64)0)
#define NFS4_MAX_UINT64 (~(__u64)0)

/* An NFS4 sessions server must support at least NFS4_MAX_OPS operations.
* If a compound requires more operations, adjust NFS4_MAX_OPS accordingly.
Expand Down
2 changes: 1 addition & 1 deletion include/uapi/linux/perf_event.h
Original file line number Diff line number Diff line change
Expand Up @@ -788,7 +788,7 @@ union perf_mem_data_src {
#define PERF_MEM_TLB_SHIFT 26

#define PERF_MEM_S(a, s) \
(((u64)PERF_MEM_##a##_##s) << PERF_MEM_##a##_SHIFT)
(((__u64)PERF_MEM_##a##_##s) << PERF_MEM_##a##_SHIFT)

/*
* single taken branch record layout:
Expand Down

0 comments on commit 0d9dfc2

Please sign in to comment.