Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: "Jiri Slaby (SUSE)" <jirislaby@kernel.org>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [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
Date: Wed, 7 May 2025 14:30:19 +0800	[thread overview]
Message-ID: <202505071456.I7rZ5FKN-lkp@intel.com> (raw)

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

                 reply	other threads:[~2025-05-07  6:31 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202505071456.I7rZ5FKN-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=jirislaby@kernel.org \
    --cc=llvm@lists.linux.dev \
    --cc=oe-kbuild-all@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox