On Thu, 16 Feb 2023, Chung Chung wrote:
Hi, I am wondering if anyone has successfully compiled latest kernel using
clang, I have been having problem with it for the last few month,
and here is the error that I have:
In file included from drivers/tty/tty_io.c:103:
./include/linux/termios_internal.h:37:5: error: conflicting types for
'user_termio_to_kernel_termios'
int user_termio_to_kernel_termios(struct ktermios *, struct termio __user *);
^
./include/asm-generic/termios.h:20:19: note: previous definition is here
static inline int user_termio_to_kernel_termios(struct ktermios *termios,
Not enough is shown to be sure, but I think the problem is that a function
is declared external not inline before being defined as static inline.
My guess is that gcc accepts that without comment, even though it should not,
and clang rejects it with a not-so-great error message.
--
Michael henne...@mail.cs.ndsu.nodak.edu
"Occasionally irrational explanations are required" -- Luke Roman
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct:
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives:
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam, report it:
https://pagure.io/fedora-infrastructure/new_issue