* [soc:soc/drivers 22/24] drivers/platform/cznic/turris-signing-key.c:25:55: warning: omitting the parameter name in a function definition is a C2x extension
@ 2025-03-21 2:41 kernel test robot
2025-03-21 8:53 ` Arnd Bergmann
0 siblings, 1 reply; 2+ messages in thread
From: kernel test robot @ 2025-03-21 2:41 UTC (permalink / raw)
To: Marek Behún
Cc: llvm, oe-kbuild-all, linux-arm-kernel, arm, Arnd Bergmann
Hi Marek,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/soc/soc.git soc/drivers
head: ba8755ab541fc629948233125db870d4dbf00a75
commit: df94a2f1eb455b57dd01f9b64419e3163d44df7f [22/24] platform: cznic: turris-omnia-mcu: Add support for digital message signing with HW private key
config: hexagon-allmodconfig (https://download.01.org/0day-ci/archive/20250321/202503211042.Uf5Ln7hI-lkp@intel.com/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250321/202503211042.Uf5Ln7hI-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/202503211042.Uf5Ln7hI-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/platform/cznic/turris-signing-key.c:25:55: warning: omitting the parameter name in a function definition is a C2x extension [-Wc2x-extensions]
25 | static int turris_signing_key_instantiate(struct key *, struct key_preparsed_payload *)
| ^
drivers/platform/cznic/turris-signing-key.c:25:87: warning: omitting the parameter name in a function definition is a C2x extension [-Wc2x-extensions]
25 | static int turris_signing_key_instantiate(struct key *, struct key_preparsed_payload *)
| ^
2 warnings generated.
vim +25 drivers/platform/cznic/turris-signing-key.c
0b28b7080ef5a3 Marek Behún 2025-02-04 24
0b28b7080ef5a3 Marek Behún 2025-02-04 @25 static int turris_signing_key_instantiate(struct key *, struct key_preparsed_payload *)
0b28b7080ef5a3 Marek Behún 2025-02-04 26 {
0b28b7080ef5a3 Marek Behún 2025-02-04 27 return 0;
0b28b7080ef5a3 Marek Behún 2025-02-04 28 }
0b28b7080ef5a3 Marek Behún 2025-02-04 29
:::::: The code at line 25 was first introduced by commit
:::::: 0b28b7080ef5a323c3afa3860c3d45d627629830 platform: cznic: Add keyctl helpers for Turris platform
:::::: TO: Marek Behún <kabel@kernel.org>
:::::: CC: Arnd Bergmann <arnd@arndb.de>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [soc:soc/drivers 22/24] drivers/platform/cznic/turris-signing-key.c:25:55: warning: omitting the parameter name in a function definition is a C2x extension
2025-03-21 2:41 [soc:soc/drivers 22/24] drivers/platform/cznic/turris-signing-key.c:25:55: warning: omitting the parameter name in a function definition is a C2x extension kernel test robot
@ 2025-03-21 8:53 ` Arnd Bergmann
0 siblings, 0 replies; 2+ messages in thread
From: Arnd Bergmann @ 2025-03-21 8:53 UTC (permalink / raw)
To: kernel test robot, Marek Behún
Cc: llvm, oe-kbuild-all, linux-arm-kernel, arm
On Fri, Mar 21, 2025, at 03:41, kernel test robot wrote:
> 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/202503211042.Uf5Ln7hI-lkp@intel.com/
>
> All warnings (new ones prefixed by >>):
>
>>> drivers/platform/cznic/turris-signing-key.c:25:55: warning: omitting the parameter name in a function definition is a C2x extension [-Wc2x-extensions]
> 25 | static int turris_signing_key_instantiate(struct key *,
> struct key_preparsed_payload *)
> | ^
> drivers/platform/cznic/turris-signing-key.c:25:87: warning: omitting
> the parameter name in a function definition is a C2x extension
> [-Wc2x-extensions]
> 25 | static int turris_signing_key_instantiate(struct key *,
> struct key_preparsed_payload *)
> |
> ^
> 2 warnings generated.
I've added a fix for this to the tree now. I was surprised that clang
warns about it but gcc does not, and apparently this was changed with
gcc-12 no longer warning about it.
Arnd
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-03-21 8:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-21 2:41 [soc:soc/drivers 22/24] drivers/platform/cznic/turris-signing-key.c:25:55: warning: omitting the parameter name in a function definition is a C2x extension kernel test robot
2025-03-21 8:53 ` Arnd Bergmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox