From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=192.198.163.14 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796310971; b=CdCaQQvDNXwN1/+ySZwbSi1oC+fGf545PExGQB4evjr8mCEo7orMHyM7BYRtb3sIqMTc 6DeVEIW0yiGNIdPk6RZ4cJO3XuLNm/rCBVUhJOGbXj+KZ195Vh7Qx4wEHhGz3n05roKAw KNQls5ojftNF+8001eCUBmsXLtky/zoH596kHKw/bz9J8ho7bSA26vJ4ZovVBNOuNG85t 5m5ywtjKac0ibmexFB9dvrFtgXRUeL/Mpyoa6rgj3qs0ewWtcESQ9bIbP9BZFyBs+hVHy 0iM4yEipY7di4feTCawhtiiGprgYMB6NQ6tijDMEhxZOStOosRCNlFKCzLvgrPbx8Kg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796310971; 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=QNhRjBqvVBomWmIL8cjf6T/6EG4w14nq0w4IxVnctX8=; b=v8aTKKAhLKHXW37pTiNKCZhZOQsSYhxy3xYsKI9XAfGr3lBVW1/jhk8moFVaqaXLy3hR aanVgdF171/ARWTpNHvyznOqCzmzIE7BjUX+1B0hHZP964iAH5+j92F35cIXBjVn8+lyM iM7c1nca0bClBLy2NY+2m9Jd0SPqRqhoaQkt9Rb8DPJIiDDbIp3++huYg/NmZmPNS4pkI 9Ekg5sLDb+Vb2P9gvheUg1dwV5zoMK2tkp+OBJEqXEcMa+jxspCC1P6OVYlN1O3X7w9GF 5e1ed/PmQq0vpKvUwOP8oYEMRsamWXFHRwIaLjKTAbdMs6K2yK97oT/MM1xATWm+LJg== 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=A8thmbw5; arc=none smtp.remote-ip=192.198.163.14 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.14]) (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 705D5606A33C for ; Thu, 3 Dec 2026 15:16:10 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 705D5606A33C 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=A8thmbw5 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1796310970; x=1827846970; h=date:from:to:cc:subject:message-id; bh=QNhRjBqvVBomWmIL8cjf6T/6EG4w14nq0w4IxVnctX8=; b=A8thmbw52AI6UDVytLJCfDjQfR+dKMKP+VNi5gBbw5j13+FXKC7URoKf //zJiN6IjKxIKzYbOHzs1F2I4exTE/Jh47IaSkT0SIfbjUyb553I1HJtw m1RjvYyEkAEHbe4MXT+c0XRGl5E4dMpEfmdKJePeg6gd3iZOajtlE+aX7 nZouerN/7FiJ74K5ByHExUjFl9ropv+SOL44wdZQFgg7GcHB+hgVSATx2 tFUT05ZzJkneillNPmxvPKjeqSImOmKRnCc71/c8lpSYfk1chs2ivq8rW mR7Ls8a24GYWb6qHZQzhQwDnruR5VZQGmm2SrtN9nAfDgSB2NLyV75Nz5 A==; X-CSE-ConnectionGUID: L2VlgtR9TxSwSuFXTRU7Bg== X-CSE-MsgGUID: M9mzXXgSQfODKIlQ0uZoVw== X-IronPort-AV: E=McAfee;i="6800,10657,11984"; a="5246985" X-IronPort-AV: E=Sophos;i="6.29,248,1794902400"; d="scan'208";a="5246985" Received: from fmviesa001.fm.intel.com ([10.60.135.141]) by fmvoesa108.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Dec 2026 07:16:09 -0800 X-CSE-ConnectionGUID: RgV1wX6jSJCoO1v7Rex6hg== X-CSE-MsgGUID: RfKvWwkMShmxVe9CDfQdYw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.29,248,1794902400"; d="scan'208";a="14337832" Received: from igk-lkp-server01.igk.intel.com (HELO 146cf1e082f1) ([10.211.93.152]) by fmviesa001.fm.intel.com with ESMTP; 03 Dec 2026 07:16:09 -0800 Received: from kbuild by 146cf1e082f1 with local (Exim 4.98.2) (envelope-from ) id 1xZ8XW-000000003ni-1Hc3; Thu, 03 Dec 2026 15:16:06 +0000 Date: Thu, 03 Dec 2026 16:15:40 +0100 From: kernel test robot To: oe-kbuild@lists.linux.dev Cc: lkp@intel.com Subject: [linux-next:master 2337/14229] drivers/reset/core-test.c:103:17: sparse: sparse: Initializer entry defined twice Message-ID: <20261203161244.YSEznO2S-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 TO: "Tzung-Bi Shih" CC: Philipp Zabel tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 799dd936553182df5770dde7f38d94c8337df75a commit: db2f5f4ccc3df91ff1841bd8ed024beb42d2bc7a [2337/14229] reset: Add KUnit test cases :::::: branch date: 24 hours ago :::::: commit date: 4 weeks ago config: i386-randconfig-2301-20261203 (https://download.01.org/0day-ci/archive/20261203/20261203161244.YSEznO2S-lkp@intel.com/config) compiler: gcc-14 (Debian 14.2.0-19) 14.2.0 sparse: v0.6.5-rc1-94-g0d159c10 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261203/20261203161244.YSEznO2S-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 | Closes: https://lore.kernel.org/r/20261203161244.YSEznO2S-lkp@intel.com/ sparse warnings: (new ones prefixed by >>) >> drivers/reset/core-test.c:103:17: sparse: sparse: Initializer entry defined twice drivers/reset/core-test.c:103:17: sparse: also defined here vim +103 drivers/reset/core-test.c db2f5f4ccc3df91 Tzung-Bi Shih 2026-11-05 91 db2f5f4ccc3df91 Tzung-Bi Shih 2026-11-05 92 static int reset_test_init(struct kunit *test) db2f5f4ccc3df91 Tzung-Bi Shih 2026-11-05 93 { db2f5f4ccc3df91 Tzung-Bi Shih 2026-11-05 94 static const struct property_entry supp_props[] = { db2f5f4ccc3df91 Tzung-Bi Shih 2026-11-05 95 PROPERTY_ENTRY_U32("#reset-cells", 1), db2f5f4ccc3df91 Tzung-Bi Shih 2026-11-05 96 {} db2f5f4ccc3df91 Tzung-Bi Shih 2026-11-05 97 }; db2f5f4ccc3df91 Tzung-Bi Shih 2026-11-05 98 static const struct software_node supp_swnode = { db2f5f4ccc3df91 Tzung-Bi Shih 2026-11-05 99 .name = "reset-test-supplier", db2f5f4ccc3df91 Tzung-Bi Shih 2026-11-05 100 .properties = supp_props, db2f5f4ccc3df91 Tzung-Bi Shih 2026-11-05 101 }; db2f5f4ccc3df91 Tzung-Bi Shih 2026-11-05 102 static const struct software_node_ref_args refs[] = { db2f5f4ccc3df91 Tzung-Bi Shih 2026-11-05 @103 SOFTWARE_NODE_REFERENCE(&supp_swnode, 0), db2f5f4ccc3df91 Tzung-Bi Shih 2026-11-05 104 }; db2f5f4ccc3df91 Tzung-Bi Shih 2026-11-05 105 static const struct property_entry cons_props[] = { db2f5f4ccc3df91 Tzung-Bi Shih 2026-11-05 106 PROPERTY_ENTRY_REF_ARRAY("resets", refs), db2f5f4ccc3df91 Tzung-Bi Shih 2026-11-05 107 {} db2f5f4ccc3df91 Tzung-Bi Shih 2026-11-05 108 }; db2f5f4ccc3df91 Tzung-Bi Shih 2026-11-05 109 db2f5f4ccc3df91 Tzung-Bi Shih 2026-11-05 110 struct reset_test_context *ctx; db2f5f4ccc3df91 Tzung-Bi Shih 2026-11-05 111 int ret; db2f5f4ccc3df91 Tzung-Bi Shih 2026-11-05 112 db2f5f4ccc3df91 Tzung-Bi Shih 2026-11-05 113 ctx = kunit_kzalloc(test, sizeof(*ctx), GFP_KERNEL); db2f5f4ccc3df91 Tzung-Bi Shih 2026-11-05 114 KUNIT_ASSERT_NOT_NULL(test, ctx); db2f5f4ccc3df91 Tzung-Bi Shih 2026-11-05 115 test->priv = ctx; db2f5f4ccc3df91 Tzung-Bi Shih 2026-11-05 116 db2f5f4ccc3df91 Tzung-Bi Shih 2026-11-05 117 ctx->supp_fwnode = kunit_software_node_register(test, &supp_swnode); db2f5f4ccc3df91 Tzung-Bi Shih 2026-11-05 118 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, ctx->supp_fwnode); db2f5f4ccc3df91 Tzung-Bi Shih 2026-11-05 119 db2f5f4ccc3df91 Tzung-Bi Shih 2026-11-05 120 ctx->cons_fwnode = kunit_fwnode_create_software_node(test, cons_props, db2f5f4ccc3df91 Tzung-Bi Shih 2026-11-05 121 NULL); db2f5f4ccc3df91 Tzung-Bi Shih 2026-11-05 122 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, ctx->cons_fwnode); db2f5f4ccc3df91 Tzung-Bi Shih 2026-11-05 123 db2f5f4ccc3df91 Tzung-Bi Shih 2026-11-05 124 ctx->rcdev.ops = &reset_test_ops; db2f5f4ccc3df91 Tzung-Bi Shih 2026-11-05 125 ctx->rcdev.nr_resets = 1; db2f5f4ccc3df91 Tzung-Bi Shih 2026-11-05 126 ctx->rcdev.fwnode = ctx->supp_fwnode; db2f5f4ccc3df91 Tzung-Bi Shih 2026-11-05 127 db2f5f4ccc3df91 Tzung-Bi Shih 2026-11-05 128 ret = reset_controller_register(&ctx->rcdev); db2f5f4ccc3df91 Tzung-Bi Shih 2026-11-05 129 KUNIT_ASSERT_EQ(test, ret, 0); db2f5f4ccc3df91 Tzung-Bi Shih 2026-11-05 130 ctx->rcdev_registered = true; db2f5f4ccc3df91 Tzung-Bi Shih 2026-11-05 131 db2f5f4ccc3df91 Tzung-Bi Shih 2026-11-05 132 ctx->rstc = __fwnode_reset_control_get(ctx->cons_fwnode, NULL, 0, db2f5f4ccc3df91 Tzung-Bi Shih 2026-11-05 133 RESET_CONTROL_EXCLUSIVE); db2f5f4ccc3df91 Tzung-Bi Shih 2026-11-05 134 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, ctx->rstc); db2f5f4ccc3df91 Tzung-Bi Shih 2026-11-05 135 db2f5f4ccc3df91 Tzung-Bi Shih 2026-11-05 136 return 0; db2f5f4ccc3df91 Tzung-Bi Shih 2026-11-05 137 } db2f5f4ccc3df91 Tzung-Bi Shih 2026-11-05 138 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki