diff options
Diffstat (limited to 'kernel/include/linux/kdev_t.h')
-rw-r--r-- | kernel/include/linux/kdev_t.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/kernel/include/linux/kdev_t.h b/kernel/include/linux/kdev_t.h index c838abe3e..052c7b32c 100644 --- a/kernel/include/linux/kdev_t.h +++ b/kernel/include/linux/kdev_t.h @@ -20,7 +20,7 @@ }) /* acceptable for old filesystems */ -static inline int old_valid_dev(dev_t dev) +static inline bool old_valid_dev(dev_t dev) { return MAJOR(dev) < 256 && MINOR(dev) < 256; } @@ -35,7 +35,7 @@ static inline dev_t old_decode_dev(u16 val) return MKDEV((val >> 8) & 255, val & 255); } -static inline int new_valid_dev(dev_t dev) +static inline bool new_valid_dev(dev_t dev) { return 1; } @@ -54,11 +54,6 @@ static inline dev_t new_decode_dev(u32 dev) return MKDEV(major, minor); } -static inline int huge_valid_dev(dev_t dev) -{ - return 1; -} - static inline u64 huge_encode_dev(dev_t dev) { return new_encode_dev(dev); |