Skip to content

kernel: Fix building sulog on kernel 6.1 & x86_64#3401

Merged
5ec1cff merged 1 commit intotiann:mainfrom
hmtheboy154:6.1_x86_64
Apr 6, 2026
Merged

kernel: Fix building sulog on kernel 6.1 & x86_64#3401
5ec1cff merged 1 commit intotiann:mainfrom
hmtheboy154:6.1_x86_64

Conversation

@hmtheboy154
Copy link
Copy Markdown
Contributor

untagged_addr used to be a marco on mm.h for x86

Fix the following error:

/bbd007/hmtheboy154/lineage21-tv/kernel/x86/common/drivers/kernelsu/sulog/event.c:124:63: error: call to undeclared function 'untagged_addr'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
124 | ret = strncpy_from_user_nofault(dst, (const void __user *)untagged_addr((unsigned long)filename_user), dst_len) LD [M] drivers/dca/dca.o
;
| ^
/bbd007/hmtheboy154/lineage21-tv/kernel/x86/common/drivers/kernelsu/sulog/event.c:124:42: warning: cast to 'const void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast]
124 | ret = strncpy_from_user_nofault(dst, (const void __user *)untagged_addr((unsigned long)filename_user), dst_len);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CC [M] drivers/hwmon/lm85.o
/bbd007/hmtheboy154/lineage21-tv/kernel/x86/common/drivers/kernelsu/sulog/event.c:164:65: error: call to undeclared function 'untagged_addr'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
164 | strncpy_from_user_nofault(arg, (const void __user *)untagged_addr((unsigned long)arg_user), sizeof(arg));
| ^
/bbd007/hmtheboy154/lineage21-tv/kernel/x86/common/drivers/kernelsu/sulog/event.c:164:44: warning: cast to 'const void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast]
164 | strncpy_from_user_nofault(arg, (const void __user *)untagged_addr((unsigned long)arg_user), sizeof(arg));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 warnings and 2 errors generated.

untagged_addr used to be a marco on mm.h for x86

Fix the following error:

/bbd007/hmtheboy154/lineage21-tv/kernel/x86/common/drivers/kernelsu/sulog/event.c:124:63: error: call to undeclared function 'untagged_addr'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
  124 |     ret = strncpy_from_user_nofault(dst, (const void __user *)untagged_addr((unsigned long)filename_user), dst_len)  LD [M]  drivers/dca/dca.o
;
      |                                                               ^
/bbd007/hmtheboy154/lineage21-tv/kernel/x86/common/drivers/kernelsu/sulog/event.c:124:42: warning: cast to 'const void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast]
  124 |     ret = strncpy_from_user_nofault(dst, (const void __user *)untagged_addr((unsigned long)filename_user), dst_len);
      |                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  CC [M]  drivers/hwmon/lm85.o
/bbd007/hmtheboy154/lineage21-tv/kernel/x86/common/drivers/kernelsu/sulog/event.c:164:65: error: call to undeclared function 'untagged_addr'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
  164 |             strncpy_from_user_nofault(arg, (const void __user *)untagged_addr((unsigned long)arg_user), sizeof(arg));
      |                                                                 ^
/bbd007/hmtheboy154/lineage21-tv/kernel/x86/common/drivers/kernelsu/sulog/event.c:164:44: warning: cast to 'const void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast]
  164 |             strncpy_from_user_nofault(arg, (const void __user *)untagged_addr((unsigned long)arg_user), sizeof(arg));
      |                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 warnings and 2 errors generated.

Signed-off-by: hmtheboy154 <buingoc67@gmail.com>
@hmtheboy154 hmtheboy154 changed the title kernel: Fix building sulog on kernel 6.1 kernel: Fix building sulog on kernel 6.1 & x86_64 Apr 6, 2026
@5ec1cff 5ec1cff merged commit a5c357e into tiann:main Apr 6, 2026
19 checks passed
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