Ioctl generation with linux HEAD fails
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- linux, rust
- Domain
- build-system, operating-systems
Research direction
Start by reproducing the generator-script failure against Linux HEAD and inspect list.c and include/linux/ext4.h, especially EXT4_IOC32_GROUP_ADD and the incomplete compat_ext4_new_group_input type. Trace how linux-raw-sys handles these uapi definitions, then verify that generation completes without the reported compiler error and produces valid ioctl bindings.
Written by the indexing model from the issue text.
Description
@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?
- Dominant language
- Rust
- Stars
- 71
- Forks
- 63
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from sunfishcode/linux-raw-sys
-
add OPENAT2_REGULAR Open
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
sunfishcode/linux-raw-sys#194 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
sunfishcode/linux-raw-sys#192 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
sunfishcode/linux-raw-sys#188 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
sunfishcode/linux-raw-sys#189 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
sunfishcode/linux-raw-sys#179 ·
All issues in sunfishcode/linux-raw-sys
Similar issues
-
Browser (wasm) relay client cannot connect to relays whose URL has a trailing-dot FQDN hostname Open
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
n0-computer/iroh#4550 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
paritytech/zombienet-sdk#591 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
farion1231/cc-switch#7638 · 1 comment ·
-
onnx-ir re-exports ModelProto and GraphProto but not NodeProto, AttributeProto and AttributeType Open
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100