Skip to content

Commit

Permalink
bdev_open_by_path is now removed as well.
Browse files Browse the repository at this point in the history
Additional blkdev/bdev changes now cause this call to be removed as
well resulting in us having to use yet another API to do the same for
el9_5.

The changes are a little more subtle as now the bdev_mount() call passes
a custom bd_holder_ops that we must match or else throw a WARN_ON, so we
switch to using sbi as our holder arg instead.

Signed-off-by: Auke Kok <[email protected]>
  • Loading branch information
aversecat committed Dec 3, 2024
1 parent fc6c6da commit 8b5ba17
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions kmod/src/Makefile.kernelcompat
Original file line number Diff line number Diff line change
Expand Up @@ -443,3 +443,12 @@ endif
ifneq (,$(shell grep 'struct backing_dev_info.*backing_dev_info;' include/linux/sched.h))
ccflags-y += -DKC_CURRENT_BACKING_DEV_INFO
endif

#
# v6.8-rc1-4-gf3a608827d1f
#
# adds bdev_file_open_by_path() and later in v6.8-rc1-30-ge97d06a46526 removes bdev_open_by_path()
# which requires us to use the file method from now on.
ifneq (,$(shell grep 'struct file.*bdev_file_open_by_path.const char.*path' include/linux/blkdev.h))
ccflags-y += -DKC_BDEV_FILE_OPEN_BY_PATH
endif

0 comments on commit 8b5ba17

Please sign in to comment.