linux-next: build failure after merge of the tty tree
Hi all,
After merging the tty tree, today's linux-next build (x86_64_allmodconfig) failed like this:
drivers/tty/serial/8250/8250_airoha.c:52:6: error: redefinition of 'airoha8250_set_baud_rate'
52 | void airoha8250_set_baud_rate(struct uart_port *port,
| ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/tty/serial/8250/8250_airoha.c:10:
drivers/tty/serial/8250/8250.h:328:20: note: previous definition of 'airoha8250_set_baud_rate' with type 'void(struct uart_port *, unsigned int, unsigned int)'
328 | static inline void airoha8250_set_baud_rate(struct uart_port *port,
| ^~~~~~~~~~~~~~~~~~~~~~~~Caused by commit
e12ebf14fa36 ("serial: Airoha SoC UART and HSUART support")
I have used the tty tree from next-20250205 for today.
Signature · 2 lines
Cheers, Stephen Rothwell
Quoted 11 lines · Stephen Rothwell
Hi all,
After merging the tty tree, today's linux-next build (
x86_64_allmodconfig) failed like this:
drivers/tty/serial/8250/8250_airoha.c:52:6: error: redefinition of 'airoha8250_set_baud_rate'
52 | void airoha8250_set_baud_rate(structuart_port*port,
| ^~~~~~~~~~~~~~~~~~~~~~~~
In file included fromdrivers/tty/serial/8250/8250_airoha.c:10:drivers/tty/serial/8250/8250.h:328:20: note: previous definition of 'airoha8250_set_baud_rate' with type 'void(struct uart_port *, unsigned int, unsigned int)'
328 | static inline void airoha8250_set_baud_rate(structuart_port*port,
Quoted 8 lines
| ^~~~~~~~~~~~~~~~~~~~~~~~Caused by commit
e12ebf14fa36("serial: Airoha SoC UART and HSUART support")I have used the tty tree from next-20250205 for today.
COMPILE_TEST seems to be the cause for this.
+config SERIAL_8250_AIROHA
+ tristate "Airoha UART support"
+ depends on (ARCH_AIROHA || COMPILE_TEST) && OF && SERIAL_8250
Should I send a patch removing this?
MvH
Benjamin Larsson
Quoted 27 lines · Benjamin Larsson
Quoted 11 lines · Stephen Rothwell
Hi all,
After merging the tty tree, today's linux-next build (
x86_64_allmodconfig) failed like this:
drivers/tty/serial/8250/8250_airoha.c:52:6: error: redefinition of 'airoha8250_set_baud_rate'
52 | void airoha8250_set_baud_rate(structuart_port*port,
| ^~~~~~~~~~~~~~~~~~~~~~~~
In file included fromdrivers/tty/serial/8250/8250_airoha.c:10:drivers/tty/serial/8250/8250.h:328:20: note: previous definition of 'airoha8250_set_baud_rate' with type 'void(struct uart_port *, unsigned int, unsigned int)'
328 | static inline void airoha8250_set_baud_rate(structuart_port*port,Quoted 8 lines
| ^~~~~~~~~~~~~~~~~~~~~~~~Caused by commit
e12ebf14fa36("serial: Airoha SoC UART and HSUART support")I have used the tty tree from next-20250205 for today.
COMPILE_TESTseems to be the cause for this.(quoted diff) +3
-0+config SERIAL_8250_AIROHA + tristate "Airoha UART support" + depends on (ARCH_AIROHA || COMPILE_TEST) && OF && SERIAL_8250
Quoted 1 line
Should I send a patch removing this?
No, you should allow COMPILE_TEST to build the code, right? Odd that I can't build it here for some reason, I guess I need to enable OF on my test builds...
thanks,
greg k-h
Hi Greg,
Quoted 4 lines · On Thu, 6 Feb 2025 09:14:02 +0100 Greg KH <[email protected]> wrote:
No, you should allow
COMPILE_TESTto build the code, right? Odd that I can't build it here for some reason, I guess I need to enable OF on my test builds...
An allmodconfig build (even on x86_64) will do that ....
Signature · 2 lines
Cheers, Stephen Rothwell
On 06/02/2025 09:14, Greg KH wrote:
[...]
Quoted 10 lines
Quoted 9 lines
Quoted 1 line
COMPILE_TESTseems to be the cause for this.(quoted diff) +3
-0+config SERIAL_8250_AIROHA + tristate "Airoha UART support" + depends on (ARCH_AIROHA || COMPILE_TEST) && OF && SERIAL_8250Should I send a patch removing this?
Quoted 7 lines
No, you should allow
COMPILE_TESTto build the code, right? Odd that I can't build it here for some reason, I guess I need to enable OF on my test builds...thanks,
greg k-h
Hi, I confirm the build error and I tried to properly add support for COMPILE_TEST to the code. I did not succeed with that and only got into kernel configurations that broke the compilation in non trivial ways.
While it obviously is not impossible to add support I did not like the path it was going. Thus I opted for the solution of least complexity and removed the COMPILE_TEST option.
A v4 of the patch has been posted.
MvH
Benjamin Larsson
Quoted 13 lines · Stephen Rothwell
Hi all,
After merging the tty tree, today's linux-next build (
x86_64_allmodconfig) failed like this:
drivers/tty/serial/8250/8250_airoha.c:52:6: error: redefinition of 'airoha8250_set_baud_rate'
52 | void airoha8250_set_baud_rate(structuart_port*port,| ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from drivers/tty/serial/8250/8250_airoha.c:10: drivers/tty/serial/8250/8250.h:328:20: note: previous definition of 'airoha8250_set_baud_rate' with type 'void(struct uart_port *, unsigned int, unsigned int)' 328 | static inline void airoha8250_set_baud_rate(struct uart_port *port, | ^~~~~~~~~~~~~~~~~~~~~~~~
Quoted 5 lines
Caused by commit
e12ebf14fa36("serial: Airoha SoC UART and HSUART support")I have used the tty tree from next-20250205 for today.
Ick, sorry about that. Benjamin, I'll go revert both of your commits in my tree now. Please feel free to fix them up and send working ones in the future.
thanks,
greg k-h