Skip to content

seL4GlobalAsynch: add missing header#54

Merged
lsf37 merged 2 commits into
masterfrom
lsf37/from-header
Jun 11, 2026
Merged

seL4GlobalAsynch: add missing header#54
lsf37 merged 2 commits into
masterfrom
lsf37/from-header

Conversation

@lsf37

@lsf37 lsf37 commented Jun 11, 2026

Copy link
Copy Markdown
Member

The *_emit_underlying functions were previously not declared in any header, but can used in user code (e.g. in crossvm_init.c in vm-examples). This previously worked, because earlier versions of gcc allowed implicit function declarations.

Add the missing header for seL4GlobalAsynch and declare the function there.

Together with seL4/projects_libs#26 and seL4/camkes-vm-examples#98, this should now fix the CAmkES vm-examples build for armv7.

Test with: seL4/projects_libs#26 and seL4/camkes-vm-examples#98

The `*_emit_underlying` functions were previously not declared in any
header, but can used in user code (e.g. in crossvm_init.c in
vm-examples). This previously worked, because earlier versions of gcc
allowed implicit function declarations.

Add the missing header for seL4GlobalAsynch and declare the function
there.

Signed-off-by: Gerwin Klein <gerwin.klein@proofcraft.systems>
@lsf37
lsf37 requested a review from Indanz June 11, 2026 06:02
@lsf37

lsf37 commented Jun 11, 2026

Copy link
Copy Markdown
Member Author

(will add the usual style fix after review)

@Indanz

Indanz commented Jun 11, 2026

Copy link
Copy Markdown

This previously worked, because earlier versions of gcc allowed implicit function declarations.

Probably the main problem is that the code is compiled without warnings or not enough warnings enabled. Compilers would warn about stuff like this for decades.

@Indanz

Indanz commented Jun 11, 2026

Copy link
Copy Markdown

I guess no one has been using this for years. Why not just remove it instead?

@lsf37

lsf37 commented Jun 11, 2026

Copy link
Copy Markdown
Member Author

I guess no one has been using this for years. Why not just remove it instead?

This one is actually used, it’s just that the implicit declaration happened to work and people either ignored the warning or didn’t have it enabled. The usb one in the other PR is unused afaict, but it was easier to update it than to try to untangle all that driver code.

Signed-off-by: Gerwin Klein <gerwin.klein@proofcraft.systems>
@lsf37
lsf37 merged commit dd6a1ec into master Jun 11, 2026
7 checks passed
@lsf37
lsf37 deleted the lsf37/from-header branch June 11, 2026 23:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants