Skip to content

OpenZFS 2.2.7 doest not compile with Linux 6.14-rc1 #17025

Open
@KrzysztofHajdamowicz

Description

@KrzysztofHajdamowicz

System information

Type Version/Name
Distribution Name Proxmox + custom kernel
Distribution Version 8
Kernel Version 6.14-rc1
Architecture x86_64
OpenZFS Version 2.2.7

Describe the problem you're observing

OpenZFS 2.2.7 does not compile with kernel 6.14-rc1

  CC [M]  os/linux/zfs/zpl_file_range.o
os/linux/zfs/zpl_ctldir.c:204:27: error: initialization of 'int (*)(struct inode *, const struct qstr *, struct dentry *, unsigned int)' from incompatible pointer type 'int (*)(struct dentry *, unsigned int)' [-Werror=incompatible-pointer-types]
  204 |         .d_revalidate   = zpl_snapdir_revalidate,
      |                           ^~~~~~~~~~~~~~~~~~~~~~
os/linux/zfs/zpl_ctldir.c:204:27: note: (near initialization for 'zpl_dops_snapdirs.d_revalidate')

Describe how to reproduce the problem

Issue appears when compiling kernel 6.14- there was no issue with kernel 6.13.

To try it at your own:

  1. Grab pve-kernel repo https://github.com/KrzysztofHajdamowicz/pve-kernel
  2. git submodule init && git submodule update
  3. cd submodules/ubuntu-kernel && git remote add github https://github.com/KrzysztofHajdamowicz/mirror_ubuntu-kernels.git
  4. cd submodules/ubuntu-kernel && git checkout github/build
  5. Use https://github.com/KrzysztofHajdamowicz/pve-kernel-zfsonlinux as submodules/zfsonlinux (note upstream submodule that point to openzfs/zfs repo)
  6. make
  7. Result is: build.txt

6.14 (and even 6.13) is too new to be mentioned as supported in release notes but FIY some code changes will be needed in the future 🙂

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: DefectIncorrect behavior (e.g. crash, hang)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions