diff options
| author | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2012-10-19 15:19:19 -0400 |
|---|---|---|
| committer | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2012-10-19 15:19:19 -0400 |
| commit | e05dacd71db0a5da7c1a44bcaab2a8a240b9c233 (patch) | |
| tree | 31382cf1c7d62c03126448affb2fc86e8c4aaa8b /include/linux/kdev_t.h | |
| parent | 3ab0b83bf6a1e834f4b884150d8012990c75d25d (diff) | |
| parent | ddffeb8c4d0331609ef2581d84de4d763607bd37 (diff) | |
Merge commit 'v3.7-rc1' into stable/for-linus-3.7
* commit 'v3.7-rc1': (10892 commits)
Linux 3.7-rc1
x86, boot: Explicitly include autoconf.h for hostprogs
perf: Fix UAPI fallout
ARM: config: make sure that platforms are ordered by option string
ARM: config: sort select statements alphanumerically
UAPI: (Scripted) Disintegrate include/linux/byteorder
UAPI: (Scripted) Disintegrate include/linux
UAPI: Unexport linux/blk_types.h
UAPI: Unexport part of linux/ppp-comp.h
perf: Handle new rbtree implementation
procfs: don't need a PATH_MAX allocation to hold a string representation of an int
vfs: embed struct filename inside of names_cache allocation if possible
audit: make audit_inode take struct filename
vfs: make path_openat take a struct filename pointer
vfs: turn do_path_lookup into wrapper around struct filename variant
audit: allow audit code to satisfy getname requests from its names_list
vfs: define struct filename and have getname() return it
btrfs: Fix compilation with user namespace support enabled
userns: Fix posix_acl_file_xattr_userns gid conversion
userns: Properly print bluetooth socket uids
...
Diffstat (limited to 'include/linux/kdev_t.h')
| -rw-r--r-- | include/linux/kdev_t.h | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/include/linux/kdev_t.h b/include/linux/kdev_t.h index 2dacab8beccb..c838abe3ee0a 100644 --- a/include/linux/kdev_t.h +++ b/include/linux/kdev_t.h | |||
| @@ -1,6 +1,8 @@ | |||
| 1 | #ifndef _LINUX_KDEV_T_H | 1 | #ifndef _LINUX_KDEV_T_H |
| 2 | #define _LINUX_KDEV_T_H | 2 | #define _LINUX_KDEV_T_H |
| 3 | #ifdef __KERNEL__ | 3 | |
| 4 | #include <uapi/linux/kdev_t.h> | ||
| 5 | |||
| 4 | #define MINORBITS 20 | 6 | #define MINORBITS 20 |
| 5 | #define MINORMASK ((1U << MINORBITS) - 1) | 7 | #define MINORMASK ((1U << MINORBITS) - 1) |
| 6 | 8 | ||
| @@ -87,14 +89,4 @@ static inline unsigned sysv_minor(u32 dev) | |||
| 87 | return dev & 0x3ffff; | 89 | return dev & 0x3ffff; |
| 88 | } | 90 | } |
| 89 | 91 | ||
| 90 | #else /* __KERNEL__ */ | ||
| 91 | |||
| 92 | /* | ||
| 93 | Some programs want their definitions of MAJOR and MINOR and MKDEV | ||
| 94 | from the kernel sources. These must be the externally visible ones. | ||
| 95 | */ | ||
| 96 | #define MAJOR(dev) ((dev)>>8) | ||
| 97 | #define MINOR(dev) ((dev) & 0xff) | ||
| 98 | #define MKDEV(ma,mi) ((ma)<<8 | (mi)) | ||
| 99 | #endif /* __KERNEL__ */ | ||
| 100 | #endif | 92 | #endif |
