Loading arch/sh/boards/mach-landisk/gio.c +2 −4 Original line number Diff line number Diff line Loading @@ -27,11 +27,10 @@ static int openCnt; static int gio_open(struct inode *inode, struct file *filp) { int minor; int minor = iminor(inode); int ret = -ENOENT; preempt_disable(); minor = MINOR(inode->i_rdev); if (minor < DEVCOUNT) { if (openCnt > 0) { ret = -EALREADY; Loading @@ -46,9 +45,8 @@ static int gio_open(struct inode *inode, struct file *filp) static int gio_close(struct inode *inode, struct file *filp) { int minor; int minor = iminor(inode); minor = MINOR(inode->i_rdev); if (minor < DEVCOUNT) { openCnt--; } Loading drivers/block/loop.c +1 −1 Original line number Diff line number Diff line Loading @@ -663,7 +663,7 @@ static inline int is_loop_device(struct file *file) { struct inode *i = file->f_mapping->host; return i && S_ISBLK(i->i_mode) && MAJOR(i->i_rdev) == LOOP_MAJOR; return i && S_ISBLK(i->i_mode) && imajor(i) == LOOP_MAJOR; } static int loop_validate_file(struct file *file, struct block_device *bdev) Loading drivers/dax/super.c +1 −1 Original line number Diff line number Diff line Loading @@ -480,7 +480,7 @@ static void dax_free_inode(struct inode *inode) kfree(dax_dev->host); dax_dev->host = NULL; if (inode->i_rdev) ida_simple_remove(&dax_minor_ida, MINOR(inode->i_rdev)); ida_simple_remove(&dax_minor_ida, iminor(inode)); kmem_cache_free(dax_cache, dax_dev); } Loading drivers/rtc/rtc-m41t80.c +2 −2 Original line number Diff line number Diff line Loading @@ -783,7 +783,7 @@ static long wdt_unlocked_ioctl(struct file *file, unsigned int cmd, */ static int wdt_open(struct inode *inode, struct file *file) { if (MINOR(inode->i_rdev) == WATCHDOG_MINOR) { if (iminor(inode) == WATCHDOG_MINOR) { mutex_lock(&m41t80_rtc_mutex); if (test_and_set_bit(0, &wdt_is_open)) { mutex_unlock(&m41t80_rtc_mutex); Loading @@ -807,7 +807,7 @@ static int wdt_open(struct inode *inode, struct file *file) */ static int wdt_release(struct inode *inode, struct file *file) { if (MINOR(inode->i_rdev) == WATCHDOG_MINOR) if (iminor(inode) == WATCHDOG_MINOR) clear_bit(0, &wdt_is_open); return 0; } Loading drivers/s390/char/vmur.c +1 −1 Original line number Diff line number Diff line Loading @@ -681,7 +681,7 @@ static int ur_open(struct inode *inode, struct file *file) * We treat the minor number as the devno of the ur device * to find in the driver tree. */ devno = MINOR(file_inode(file)->i_rdev); devno = iminor(file_inode(file)); urd = urdev_get_from_devno(devno); if (!urd) { Loading Loading
arch/sh/boards/mach-landisk/gio.c +2 −4 Original line number Diff line number Diff line Loading @@ -27,11 +27,10 @@ static int openCnt; static int gio_open(struct inode *inode, struct file *filp) { int minor; int minor = iminor(inode); int ret = -ENOENT; preempt_disable(); minor = MINOR(inode->i_rdev); if (minor < DEVCOUNT) { if (openCnt > 0) { ret = -EALREADY; Loading @@ -46,9 +45,8 @@ static int gio_open(struct inode *inode, struct file *filp) static int gio_close(struct inode *inode, struct file *filp) { int minor; int minor = iminor(inode); minor = MINOR(inode->i_rdev); if (minor < DEVCOUNT) { openCnt--; } Loading
drivers/block/loop.c +1 −1 Original line number Diff line number Diff line Loading @@ -663,7 +663,7 @@ static inline int is_loop_device(struct file *file) { struct inode *i = file->f_mapping->host; return i && S_ISBLK(i->i_mode) && MAJOR(i->i_rdev) == LOOP_MAJOR; return i && S_ISBLK(i->i_mode) && imajor(i) == LOOP_MAJOR; } static int loop_validate_file(struct file *file, struct block_device *bdev) Loading
drivers/dax/super.c +1 −1 Original line number Diff line number Diff line Loading @@ -480,7 +480,7 @@ static void dax_free_inode(struct inode *inode) kfree(dax_dev->host); dax_dev->host = NULL; if (inode->i_rdev) ida_simple_remove(&dax_minor_ida, MINOR(inode->i_rdev)); ida_simple_remove(&dax_minor_ida, iminor(inode)); kmem_cache_free(dax_cache, dax_dev); } Loading
drivers/rtc/rtc-m41t80.c +2 −2 Original line number Diff line number Diff line Loading @@ -783,7 +783,7 @@ static long wdt_unlocked_ioctl(struct file *file, unsigned int cmd, */ static int wdt_open(struct inode *inode, struct file *file) { if (MINOR(inode->i_rdev) == WATCHDOG_MINOR) { if (iminor(inode) == WATCHDOG_MINOR) { mutex_lock(&m41t80_rtc_mutex); if (test_and_set_bit(0, &wdt_is_open)) { mutex_unlock(&m41t80_rtc_mutex); Loading @@ -807,7 +807,7 @@ static int wdt_open(struct inode *inode, struct file *file) */ static int wdt_release(struct inode *inode, struct file *file) { if (MINOR(inode->i_rdev) == WATCHDOG_MINOR) if (iminor(inode) == WATCHDOG_MINOR) clear_bit(0, &wdt_is_open); return 0; } Loading
drivers/s390/char/vmur.c +1 −1 Original line number Diff line number Diff line Loading @@ -681,7 +681,7 @@ static int ur_open(struct inode *inode, struct file *file) * We treat the minor number as the devno of the ur device * to find in the driver tree. */ devno = MINOR(file_inode(file)->i_rdev); devno = iminor(file_inode(file)); urd = urdev_get_from_devno(devno); if (!urd) { Loading