Re: [PATCH -next] block: fix wrong mode for blkdev_get_by_dev() from disk_scan_partitions()

From: Yu Kuai
Date: Sun Jun 18 2023 - 01:59:53 EST


Hi,

在 2023/06/17 20:25, kernel test robot 写道:

block/genhd.c: In function 'disk_scan_partitions':
block/genhd.c:369:59: error: 'FMODE_EXCL' undeclared (first use in this function); did you mean 'FMODE_EXEC'?
369 | bdev = blkdev_get_by_dev(disk_devt(disk), mode & ~FMODE_EXCL, NULL,
| ^~~~~~~~~~
| FMODE_EXEC

Sorry about this typo, I'll send a new version.

Thanks,
Kuai