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

Noinline fix #67

Merged
merged 2 commits into from
Jul 5, 2024
Merged

Conversation

giulianobelinassi
Copy link
Collaborator

Undefine noinline macro if conflicts with AST dump

In kernel sourcecode there is a definition of a macro:

#define noinline __attribute__((noinline))

This seems harmless, but when clang-extract decides to dump the AST of
a Decl, this conflicts with its attr:

__attribute__((noinline))

which results in the resulting code being broken. Hence, undefine this
macro for the AST dump and define it later.

Closes #15

Signed-off-by: Giuliano Belinassi [email protected]

This allows us to check for more stuff in PrettyPrint.

Signed-off-by: Giuliano Belinassi <[email protected]>
In kernel sourcecode there is a definition of a macro:
```
```

This seems harmless, but when clang-extract decides to dump the AST of
a Decl, this conflicts with its attr:
```
__attribute__((noinline))
```
which results in the resulting code being broken. Hence, undefine this
macro for the AST dump and define it later.

Signed-off-by: Giuliano Belinassi <[email protected]>
@marcosps marcosps added bug Something isn't working kernel Issue found on Linux Kernel labels Jul 5, 2024
@marcosps
Copy link
Collaborator

marcosps commented Jul 5, 2024

That's good, and another fix to the linux kernel! Thanks!

@giulianobelinassi giulianobelinassi merged commit 9a3c295 into SUSE:main Jul 5, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working kernel Issue found on Linux Kernel
Projects
None yet
Development

Successfully merging this pull request may close these issues.

arch/x86/entry/common.c:71:16: error: use of undeclared identifier '__noinline__' on upstream
2 participants