Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

generated syscall header files don't have ifndef protection #9194

Closed
galak opened this issue Jul 31, 2018 · 3 comments
Closed

generated syscall header files don't have ifndef protection #9194

galak opened this issue Jul 31, 2018 · 3 comments
Assignees
Labels
Enhancement Changes/Updates/Additions to existing features

Comments

@galak
Copy link
Collaborator

galak commented Jul 31, 2018

For example:

'include/generated/syscalls/rtc.h'

Doesn't have anything like:

#ifndef SYSCALL_RTC_H
#define SYSCALL_RTC_H

....

#endif /* SYSCALL_RTC_H */
@galak galak added the Enhancement Changes/Updates/Additions to existing features label Jul 31, 2018
@galak galak added this to the v1.13.0 milestone Jul 31, 2018
@andrewboie
Copy link
Contributor

I'm not seeing a need to change this, what problem would this solve?

These generated headers should never be included directly by anyone, they really need to only be included at the very end of the corresponding headers that define the system calls, inside that header's ifdef guard.

You'll never be able to make these generated headers safe to include in a general sense as they also do not include the necessary headers to pull in data structure definitions used by the system calls.

@galak
Copy link
Collaborator Author

galak commented Aug 2, 2018

I think doing this might avoid some weird error that might be hard to track down later. The system calls have introduced some interesting include path issues (see commit 8777ff1). So thinking having the headers have proper ifndef protection would just be good form.

@nashif nashif removed this from the v1.13.0 milestone Sep 10, 2018
@nashif
Copy link
Member

nashif commented Feb 13, 2020

we do not have these headers anym,ore

@nashif nashif closed this as completed Feb 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement Changes/Updates/Additions to existing features
Projects
None yet
Development

No branches or pull requests

3 participants