From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=192.198.163.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796342854; b=a9ZqmjOLv1jFBuBNATriARb/dhZmtDXaXXrqSMbL+Es0TydJWEXzYAHULQFPAtdc2Lpx O3YWKLcJv9z33kiLtCQ2odEcVHqClRhSA6OQ1OUWLBxRNkWl0qw53jL2lVL3m5chxYtuj 44NMTltNLexhd51coGCCX1l/36z7vh2uFGyGz8ODRLJtfJTnu5G1KOZ06Kml/L3sy0nvR Fs6saWUGh/LT+AVD1lruvQ6xjl7tt/FAFjlxPnKs2SfhhWiEueoydOkuVjbhHZTcpcsBv rRuI6OLpYEfzAefg4nU1Na1CixMIPnst3h0ECzDYhcsV2seu40A9pXRmYgHWk1K00WA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796342854; h=DMARC-Filter:DKIM-Signature:X-CSE-ConnectionGUID:X-CSE-MsgGUID: X-IronPort-AV:X-IronPort-AV:Received:X-CSE-ConnectionGUID: X-CSE-MsgGUID:X-ExtLoop1:X-IronPort-AV:Received:Received:Date:From:To: Cc:Subject:Message-ID:User-Agent; bh=jHVsHfaajAaJ0GQY9ugaR1n2NttUmcfXpLjIEiUN4ns=; b=HRks8Wuiqs4pk6Ok4dHRlNde8bAiTaxFQPwN93/ilHv8SmpYzZ/mwgSioxoiF9j/4v/2 xBzfgdM3IDL/SYWuOzCOx/YbSXN693p/UjZwMDO9aUmWNuK+Dr+pLxktrOIZk4ptM/tVM KF6ZcFdGeK7EPPV3DaeGOgYK60uYGMETGSQDcv9nX3kepqFvYST5z9HO4R2C0FGKrhKAf 4SOGhnCnnhDmQfF/ByitkQO9OmBkgCthWQTcXpXHTnbyDR1hPPki+cXqViBW8EKRxoyee SYuGIXhoC7v6NlhS5aYMlwYln5K5KtFO7PrvBzN3bkKDr5781hHE7SOINo14JeITe8w== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=hSYV5R4Z; arc=none smtp.remote-ip=192.198.163.18 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.18]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 30359606A336 for ; Fri, 4 Dec 2026 00:07:34 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 30359606A336 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=hSYV5R4Z DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1796342854; x=1827878854; h=date:from:to:cc:subject:message-id; bh=jHVsHfaajAaJ0GQY9ugaR1n2NttUmcfXpLjIEiUN4ns=; b=hSYV5R4ZL/xQn/UK1LYupgTq9+GrIrXI9Z9a6y7L3wg5EZ4/LPniLxif TjVddx8ruz+Lsv7AezBSCjw3RxQIbLoyYQ2QCwaYK+Yl0K04FjtWg/+Yd SVetmWG6hTWbH3YtYc4JoQSo+n03XtTZrOZWcJJVea4JBWGnOw5Ao2/Tr d84H7iWWU11XgVpNBV/KiXgKYF2rK/z9VcR8SIo016qeeoikniYwspzh4 YDNiQA2GCp6qNrfKSVnrtRFyuri0abRwLwq/rmf3SAhFkIIH6f7UJC+LY HefLU7DtaiRkrWMsSJ3wqvIvE8uC1r9CvQagZIjVqKeCJDHdW8UyAvYGS A==; X-CSE-ConnectionGUID: FBB413AHS9anfv4UEabV5g== X-CSE-MsgGUID: WM5iOvflR3eJjN++nXFxag== X-IronPort-AV: E=McAfee;i="6800,10657,11985"; a="5329268" X-IronPort-AV: E=Sophos;i="6.29,77,1794902400"; d="scan'208";a="5329268" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by fmvoesa112.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Dec 2026 16:07:33 -0800 X-CSE-ConnectionGUID: JVKTIhAsS5O+7/c6xReSFg== X-CSE-MsgGUID: g1BXVZf7T8ai8TdEAoL/Fw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.29,77,1794902400"; d="scan'208";a="13808037" Received: from igk-lkp-server01.igk.intel.com (HELO 146cf1e082f1) ([10.211.93.152]) by orviesa003.jf.intel.com with ESMTP; 03 Dec 2026 16:07:32 -0800 Received: from kbuild by 146cf1e082f1 with local (Exim 4.98.2) (envelope-from ) id 1xZGpm-00000000449-0H3A; Fri, 04 Dec 2026 00:07:30 +0000 Date: Fri, 04 Dec 2026 01:07:08 +0100 From: kernel test robot To: oe-kbuild@lists.linux.dev Cc: lkp@intel.com Subject: fs/fuse/ext_map.c:28:51: sparse: sparse: Initializer entry defined twice Message-ID: <20261204010408.PHf1ZlAM-lkp@intel.com> User-Agent: s-nail v14.9.25 X-Mailing-List: oe-kbuild@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list :::::: :::::: Manual check reason: "sparse: Initializer entry defined twice" :::::: BCC: lkp@intel.com CC: oe-kbuild-all@lists.linux.dev CC: linux-kernel@vger.kernel.org TO: Miklos Szeredi tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 007722b8211f7b34fdf21b1e6a9c32497633ea29 commit: bf75733445820e511ca0b9158a639f6c255eaf7d fuse: add extent map data structure date: 6 weeks ago :::::: branch date: 7 hours ago :::::: commit date: 6 weeks ago config: s390-randconfig-r2304-20261203 (https://download.01.org/0day-ci/archive/20261204/20261204010408.PHf1ZlAM-lkp@intel.com/config) compiler: clang version 24.0.0git (https://github.com/llvm/llvm-project c81a35549c5c976f799dc394e6eaf41da1ff2f64) sparse: v0.6.5-rc1-94-g0d159c10 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261204/20261204010408.PHf1ZlAM-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 | Fixes: bf7573344582 ("fuse: add extent map data structure") | Reported-by: kernel test robot | Closes: https://lore.kernel.org/r/20261204010408.PHf1ZlAM-lkp@intel.com/ sparse warnings: (new ones prefixed by >>) >> fs/fuse/ext_map.c:28:51: sparse: sparse: Initializer entry defined twice fs/fuse/ext_map.c:28:51: sparse: also defined here fs/fuse/ext_map.c:103:22: sparse: sparse: Initializer entry defined twice fs/fuse/ext_map.c:103:22: sparse: also defined here vim +28 fs/fuse/ext_map.c bf75733445820e Miklos Szeredi 2026-09-21 24 bf75733445820e Miklos Szeredi 2026-09-21 25 static int fuse_add_extent(struct fuse_conn *fc, struct rb_root *extents, bf75733445820e Miklos Szeredi 2026-09-21 26 struct fuse_extent *ext) bf75733445820e Miklos Szeredi 2026-09-21 27 { bf75733445820e Miklos Szeredi 2026-09-21 @28 struct fuse_iext *new_fie __free(kfree) = kzalloc_obj(*new_fie); bf75733445820e Miklos Szeredi 2026-09-21 29 struct rb_node *parent = NULL, **link = &extents->rb_node; bf75733445820e Miklos Szeredi 2026-09-21 30 loff_t end; bf75733445820e Miklos Szeredi 2026-09-21 31 u64 tmp; bf75733445820e Miklos Szeredi 2026-09-21 32 bf75733445820e Miklos Szeredi 2026-09-21 33 if (!new_fie) bf75733445820e Miklos Szeredi 2026-09-21 34 return -ENOMEM; bf75733445820e Miklos Szeredi 2026-09-21 35 bf75733445820e Miklos Szeredi 2026-09-21 36 if (ext->reserved[0] || ext->reserved[1]) bf75733445820e Miklos Szeredi 2026-09-21 37 return fuse_EIO("reserved fields set"); bf75733445820e Miklos Szeredi 2026-09-21 38 bf75733445820e Miklos Szeredi 2026-09-21 39 if (!PAGE_ALIGNED(ext->offset) || !PAGE_ALIGNED(ext->length) || !PAGE_ALIGNED(ext->addr)) bf75733445820e Miklos Szeredi 2026-09-21 40 return fuse_EIO("not page aligned"); bf75733445820e Miklos Szeredi 2026-09-21 41 bf75733445820e Miklos Szeredi 2026-09-21 42 if (!ext->length) bf75733445820e Miklos Szeredi 2026-09-21 43 return fuse_EIO("zero sized extent"); bf75733445820e Miklos Szeredi 2026-09-21 44 bf75733445820e Miklos Szeredi 2026-09-21 45 if (overflows_type(ext->offset, loff_t) || bf75733445820e Miklos Szeredi 2026-09-21 46 check_add_overflow(ext->offset, ext->length, &end) || bf75733445820e Miklos Szeredi 2026-09-21 47 check_add_overflow(ext->addr, ext->length, &tmp)) bf75733445820e Miklos Szeredi 2026-09-21 48 return fuse_EIO("offset overflow"); bf75733445820e Miklos Szeredi 2026-09-21 49 bf75733445820e Miklos Szeredi 2026-09-21 50 new_fie->start = ext->offset; bf75733445820e Miklos Szeredi 2026-09-21 51 new_fie->end = end; bf75733445820e Miklos Szeredi 2026-09-21 52 new_fie->backing_offset = ext->addr; bf75733445820e Miklos Szeredi 2026-09-21 53 bf75733445820e Miklos Szeredi 2026-09-21 54 while (*link) { bf75733445820e Miklos Szeredi 2026-09-21 55 struct fuse_iext *fie = rb_entry(*link, typeof(*fie), rb); bf75733445820e Miklos Szeredi 2026-09-21 56 bf75733445820e Miklos Szeredi 2026-09-21 57 parent = *link; bf75733445820e Miklos Szeredi 2026-09-21 58 if (new_fie->end <= fie->start) bf75733445820e Miklos Szeredi 2026-09-21 59 link = &parent->rb_left; bf75733445820e Miklos Szeredi 2026-09-21 60 else if (new_fie->start >= fie->end) bf75733445820e Miklos Szeredi 2026-09-21 61 link = &parent->rb_right; bf75733445820e Miklos Szeredi 2026-09-21 62 else bf75733445820e Miklos Szeredi 2026-09-21 63 return fuse_EIO("overlap"); bf75733445820e Miklos Szeredi 2026-09-21 64 } bf75733445820e Miklos Szeredi 2026-09-21 65 bf75733445820e Miklos Szeredi 2026-09-21 66 new_fie->backing = fuse_backing_lookup(fc, ext->backing_id); bf75733445820e Miklos Szeredi 2026-09-21 67 if (!new_fie->backing) bf75733445820e Miklos Szeredi 2026-09-21 68 return fuse_EIO("backing not found"); bf75733445820e Miklos Szeredi 2026-09-21 69 bf75733445820e Miklos Szeredi 2026-09-21 70 if (new_fie->backing->type != FUSE_BACKING_DAXDEV) { bf75733445820e Miklos Szeredi 2026-09-21 71 fuse_backing_put(new_fie->backing); bf75733445820e Miklos Szeredi 2026-09-21 72 return fuse_EIO("backing is not dax device"); bf75733445820e Miklos Szeredi 2026-09-21 73 } bf75733445820e Miklos Szeredi 2026-09-21 74 bf75733445820e Miklos Szeredi 2026-09-21 75 rb_link_node(&new_fie->rb, parent, link); bf75733445820e Miklos Szeredi 2026-09-21 76 rb_insert_color(&no_free_ptr(new_fie)->rb, extents); bf75733445820e Miklos Szeredi 2026-09-21 77 bf75733445820e Miklos Szeredi 2026-09-21 78 return 0; bf75733445820e Miklos Szeredi 2026-09-21 79 } bf75733445820e Miklos Szeredi 2026-09-21 80 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki