linux-raw-sys icon indicating copy to clipboard operation
linux-raw-sys copied to clipboard

Ioctl generation with linux HEAD fails

Open sunfishcode opened this issue 1 year ago • 3 comments

@joshtriplett As a followup to #53, I was investigating running the generator script with linux HEAD, but I'm hitting this error:

list.c: In function ‘list’:
include/linux/ext4.h:47:54: error: invalid application of ‘sizeof’ to incomplete type ‘struct compat_ext4_new_group_input’
   47 | #define EXT4_IOC32_GROUP_ADD            _IOW('f', 8, struct `)
      |                                                      ^~~~~~

It seems compat_ext4_new_group_input isn't defined in the uapi headers, but EXT4_IOC32_GROUP_ADD isn't usable without it. Should compat_ext4_new_group_input be moved into uapi?

sunfishcode avatar Apr 27 '23 18:04 sunfishcode

groan, you're right. There were issues with defining compat_ext4_new_group_input, so I ended up dropping it, and the kernel compiles without having a definition of it.

Does the generator script work if you don't request that ioctl? Or does this require fixing the header?

joshtriplett avatar Apr 27 '23 22:04 joshtriplett

Commenting out that one ioctl allows the script to succeed. I've now done that and published a 0.3.6-head.0 prerelease based on the current linux master branch.

sunfishcode avatar Apr 27 '23 23:04 sunfishcode

@sunfishcode Thank you!

joshtriplett avatar Apr 28 '23 06:04 joshtriplett