* [leon-rdma:fw-lsm-hook-v2 2/4] security/security.c:5392:1: error: expected identifier or '(' before '{' token
@ 2026-03-09 21:42 kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2026-03-09 21:42 UTC (permalink / raw)
To: Chiara Meiohas
Cc: oe-kbuild-all, Leon Romanovsky, Maher Sanalla, Edward Srouji
tree: https://git.kernel.org/pub/scm/linux/kernel/git/leon/linux-rdma.git fw-lsm-hook-v2
head: 6ecd3e51800ae840af7be672077ab1e9d0af365e
commit: 59b61e265be95f103df6fa7a195c287b7604dd67 [2/4] lsm: add hook for firmware command validation
config: sh-allmodconfig (https://download.01.org/0day-ci/archive/20260310/202603100543.SBaUfuzS-lkp@intel.com/config)
compiler: sh4-linux-gcc (GCC) 15.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260310/202603100543.SBaUfuzS-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/202603100543.SBaUfuzS-lkp@intel.com/
All errors (new ones prefixed by >>):
>> security/security.c:5392:1: error: expected identifier or '(' before '{' token
5392 | {
| ^
vim +5392 security/security.c
5375
5376 /**
5377 * security_fw_validate_cmd() - Validate a firmware command
5378 * @in: pointer to the firmware command input buffer
5379 * @in_len: length of the firmware command input buffer
5380 * @dev: device associated with the command
5381 * @class_id: class of the firmware command
5382 * @id: device identifier, specific to the command @class_id
5383 *
5384 * Check permissions before sending a firmware command generated by
5385 * userspace to the device.
5386 *
5387 * Return: Returns 0 if permission is granted.
5388 */
5389 int security_fw_validate_cmd(const void *in, size_t in_len,
5390 const struct device *dev,
5391 enum fw_cmd_class class_id, u32 id);
> 5392 {
5393 if (class_id >= FW_CMD_CLASS_MAX)
5394 return -EINVAL;
5395
5396 return call_int_hook(fw_validate_cmd, in, in_len, dev, class_id, id);
5397 }
5398 EXPORT_SYMBOL_GPL(security_fw_validate_cmd);
5399
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 2+ messages in thread
* [leon-rdma:fw-lsm-hook-v2 2/4] security/security.c:5392:1: error: expected identifier or '(' before '{' token
@ 2026-03-09 23:02 kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2026-03-09 23:02 UTC (permalink / raw)
To: Chiara Meiohas
Cc: oe-kbuild-all, Leon Romanovsky, Maher Sanalla, Edward Srouji
tree: https://git.kernel.org/pub/scm/linux/kernel/git/leon/linux-rdma.git fw-lsm-hook-v2
head: 6ecd3e51800ae840af7be672077ab1e9d0af365e
commit: 59b61e265be95f103df6fa7a195c287b7604dd67 [2/4] lsm: add hook for firmware command validation
config: powerpc64-allnoconfig-bpf (https://download.01.org/0day-ci/archive/20260310/202603100003.SLtKXwVj-lkp@intel.com/config)
compiler: powerpc64-linux-gnu-gcc (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260310/202603100003.SLtKXwVj-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/202603100003.SLtKXwVj-lkp@intel.com/
All errors (new ones prefixed by >>):
>> security/security.c:5392:1: error: expected identifier or '(' before '{' token
5392 | {
| ^
vim +5392 security/security.c
5375
5376 /**
5377 * security_fw_validate_cmd() - Validate a firmware command
5378 * @in: pointer to the firmware command input buffer
5379 * @in_len: length of the firmware command input buffer
5380 * @dev: device associated with the command
5381 * @class_id: class of the firmware command
5382 * @id: device identifier, specific to the command @class_id
5383 *
5384 * Check permissions before sending a firmware command generated by
5385 * userspace to the device.
5386 *
5387 * Return: Returns 0 if permission is granted.
5388 */
5389 int security_fw_validate_cmd(const void *in, size_t in_len,
5390 const struct device *dev,
5391 enum fw_cmd_class class_id, u32 id);
> 5392 {
5393 if (class_id >= FW_CMD_CLASS_MAX)
5394 return -EINVAL;
5395
5396 return call_int_hook(fw_validate_cmd, in, in_len, dev, class_id, id);
5397 }
5398 EXPORT_SYMBOL_GPL(security_fw_validate_cmd);
5399
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-03-09 23:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-09 21:42 [leon-rdma:fw-lsm-hook-v2 2/4] security/security.c:5392:1: error: expected identifier or '(' before '{' token kernel test robot
-- strict thread matches above, loose matches on Subject: below --
2026-03-09 23:02 kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.