mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* security/landlock/fs.c:1339:18: sparse: sparse: Initializer entry defined twice
@ 2025-12-13 19:52 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2025-12-13 19:52 UTC (permalink / raw)
  To: Mickaël Salaün; +Cc: oe-kbuild-all, linux-kernel

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   4a298a43f5e339f48d2dda0665c02b88ee9a4e03
commit: c56f649646ecec3dd1a2e400e6e5ec83439d940f landlock: Log mount-related denials
date:   9 months ago
config: arm64-randconfig-r112-20251213 (https://download.01.org/0day-ci/archive/20251214/202512140315.QRNaYare-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 15.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251214/202512140315.QRNaYare-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/202512140315.QRNaYare-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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* security/landlock/fs.c:1339:18: sparse: sparse: Initializer entry defined twice
@ 2026-01-17  4:57 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2026-01-17  4:57 UTC (permalink / raw)
  To:  Mickaël Salaün ; +Cc: oe-kbuild-all, linux-kernel

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@intel.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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-01-17  4:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-12-13 19:52 security/landlock/fs.c:1339:18: sparse: sparse: Initializer entry defined twice kernel test robot
2026-01-17  4:57 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

all inboxes | Powered by JetHome®