[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202601171241.AOq0Obg0-lkp@intel.com>
Date: Sat, 17 Jan 2026 12:57:27 +0800
From: kernel test robot <lkp@...el.com>
To: "Mickaël Salaün" <mic@...ikod.net>
Cc: oe-kbuild-all@...ts.linux.dev, linux-kernel@...r.kernel.org
Subject: security/landlock/fs.c:1339:18: sparse: sparse: Initializer
entry defined twice
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 39d3389331abd712461f50249722f7ed9d815068
commit: c56f649646ecec3dd1a2e400e6e5ec83439d940f landlock: Log mount-related denials
date: 10 months ago
config: arm-randconfig-r132-20260117 (https://download.01.org/0day-ci/archive/20260117/202601171241.AOq0Obg0-lkp@intel.com/config)
compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project 9b8addffa70cee5b2acc5454712d9cf78ce45710)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260117/202601171241.AOq0Obg0-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@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202601171241.AOq0Obg0-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
>> security/landlock/fs.c:1339:18: sparse: sparse: Initializer entry defined twice
security/landlock/fs.c:1340:26: sparse: also defined here
security/landlock/fs.c:1353:18: sparse: sparse: Initializer entry defined twice
security/landlock/fs.c:1354:26: sparse: also defined here
vim +1339 security/landlock/fs.c
1333
1334 static void
1335 log_fs_change_topology_path(const struct landlock_cred_security *const subject,
1336 size_t handle_layer, const struct path *const path)
1337 {
1338 landlock_log_denial(subject, &(struct landlock_request) {
> 1339 .type = LANDLOCK_REQUEST_FS_CHANGE_TOPOLOGY,
1340 .audit = {
1341 .type = LSM_AUDIT_DATA_PATH,
1342 .u.path = *path,
1343 },
1344 .layer_plus_one = handle_layer + 1,
1345 });
1346 }
1347
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists