* [jirislaby:devel 62/87] drivers/tty/serial/8250/8250.h:327:54: warning: omitting the parameter name in a function definition is a C23 extension
@ 2025-05-07 6:30 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-05-07 6:30 UTC (permalink / raw)
To: Jiri Slaby (SUSE); +Cc: llvm, oe-kbuild-all
tree: https://git.kernel.org/pub/scm/linux/kernel/git/jirislaby/linux.git devel
head: 6c308d0b04c8c17ab39fcf6d4ed9a9033efc363f
commit: fa0317bfb9f28c33a9a84d824d1e8096a860b0da [62/87] 8250: move RSA functions to 8250_rsa.c
config: x86_64-buildonly-randconfig-005-20250429 (https://download.01.org/0day-ci/archive/20250507/202505071456.I7rZ5FKN-lkp@intel.com/config)
compiler: clang version 20.1.2 (https://github.com/llvm/llvm-project 58df0ef89dd64126512e4ee27b4ac3fd8ddf6247)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250507/202505071456.I7rZ5FKN-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202505071456.I7rZ5FKN-lkp@intel.com/
All warnings (new ones prefixed by >>):
In file included from drivers/tty/serial/8250/8250_platform.c:25:
>> drivers/tty/serial/8250/8250.h:327:54: warning: omitting the parameter name in a function definition is a C23 extension [-Wc23-extensions]
327 | static inline void enable_rsa(struct uart_8250_port *) {}
| ^
drivers/tty/serial/8250/8250.h:328:55: warning: omitting the parameter name in a function definition is a C23 extension [-Wc23-extensions]
328 | static inline void disable_rsa(struct uart_8250_port *) {}
| ^
drivers/tty/serial/8250/8250.h:329:58: warning: omitting the parameter name in a function definition is a C23 extension [-Wc23-extensions]
329 | static inline void rsa_autoconfig(struct uart_8250_port *) {}
| ^
drivers/tty/serial/8250/8250.h:330:53: warning: omitting the parameter name in a function definition is a C23 extension [-Wc23-extensions]
330 | static inline void rsa_reset(struct uart_8250_port *) {}
| ^
4 warnings generated.
--
In file included from drivers/tty/serial/8250/8250_port.c:39:
>> drivers/tty/serial/8250/8250.h:327:54: warning: omitting the parameter name in a function definition is a C23 extension [-Wc23-extensions]
327 | static inline void enable_rsa(struct uart_8250_port *) {}
| ^
drivers/tty/serial/8250/8250.h:328:55: warning: omitting the parameter name in a function definition is a C23 extension [-Wc23-extensions]
328 | static inline void disable_rsa(struct uart_8250_port *) {}
| ^
drivers/tty/serial/8250/8250.h:329:58: warning: omitting the parameter name in a function definition is a C23 extension [-Wc23-extensions]
329 | static inline void rsa_autoconfig(struct uart_8250_port *) {}
| ^
drivers/tty/serial/8250/8250.h:330:53: warning: omitting the parameter name in a function definition is a C23 extension [-Wc23-extensions]
330 | static inline void rsa_reset(struct uart_8250_port *) {}
| ^
drivers/tty/serial/8250/8250_port.c:2172:2: error: call to undeclared function 'rsa_enable'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
2172 | rsa_enable(up);
| ^
drivers/tty/serial/8250/8250_port.c:2172:2: note: did you mean 'sme_enable'?
arch/x86/include/asm/mem_encrypt.h:51:6: note: 'sme_enable' declared here
51 | void sme_enable(struct boot_params *bp);
| ^
drivers/tty/serial/8250/8250_port.c:2439:2: error: call to undeclared function 'rsa_disable'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
2439 | rsa_disable(up);
| ^
4 warnings and 2 errors generated.
vim +327 drivers/tty/serial/8250/8250.h
318
319 #ifdef CONFIG_SERIAL_8250_RSA
320 void univ8250_rsa_support(struct uart_ops *ops);
321 void rsa_enable(struct uart_8250_port *up);
322 void rsa_disable(struct uart_8250_port *up);
323 void rsa_autoconfig(struct uart_8250_port *up);
324 void rsa_reset(struct uart_8250_port *up);
325 #else
326 static inline void univ8250_rsa_support(struct uart_ops *ops) { }
> 327 static inline void enable_rsa(struct uart_8250_port *) {}
328 static inline void disable_rsa(struct uart_8250_port *) {}
329 static inline void rsa_autoconfig(struct uart_8250_port *) {}
330 static inline void rsa_reset(struct uart_8250_port *) {}
331 #endif
332
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-05-07 6:31 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-07 6:30 [jirislaby:devel 62/87] drivers/tty/serial/8250/8250.h:327:54: warning: omitting the parameter name in a function definition is a C23 extension kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox