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

Several macros/functions from asm/uaccess.h (powerpc) are not seen by Elixir #258

Open
chleroy opened this issue Sep 15, 2023 · 1 comment
Labels
indexing Related to the index content — missing definitions/references, lexer bugs, new ctags features...

Comments

@chleroy
Copy link

chleroy commented Sep 15, 2023

For instance, there's two definitions for __get_user_asm_goto() in a #if/#else
The second definition is not seen by Elixir.

Also problem with allow_read_from_user() and similar helpers, Elixir sees its definition in asm/kup.h as a reference and see no definition for that function.

Same for allow_user_access(), definitions are seen as references

@chleroy chleroy changed the title Several macros from asm/uaccess.h (powerpc) are not seen by Elixir Several macros/functions from asm/uaccess.h (powerpc) are not seen by Elixir Sep 15, 2023
@fstachura fstachura added the bug label Jun 7, 2024
@fstachura fstachura added the indexing Related to the index content — missing definitions/references, lexer bugs, new ctags features... label Feb 21, 2025
@fstachura
Copy link
Collaborator

For instance, there's two definitions for __get_user_asm_goto() in a #if/#else
The second definition is not seen by Elixir.

I'm pretty sure this is #306 again. I see multiple quotes on a single line and tokenize-file output confirms this.

Also problem with allow_read_from_user() and similar helpers, Elixir sees its definition in asm/kup.h as a reference and see no definition for that function.
Same for allow_user_access(), definitions are seen as references

This seems to be an issue with older ctags versions. Fixed in #391. It looks like the production index was created with old ctags...

$ ctags -x /usr/local/elixir/kup.h | grep -E '(allow_user_access|allow_read_from_user)'
$ ./ctags-6.1.0 -x /usr/local/elixir/kup.h | grep -E '(allow_user_access|allow_read_from_user)'
allow_read_from_user function    135 /usr/local/elixir/kup.h static __always_inline void allow_read_from_user(const void __user *from, unsigned long size)
allow_user_access function     75 /usr/local/elixir/kup.h static __always_inline void allow_user_access(void __user *to, const void __user *from,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
indexing Related to the index content — missing definitions/references, lexer bugs, new ctags features...
Projects
None yet
Development

No branches or pull requests

3 participants