From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id A0222C52D7C for ; Sun, 18 Aug 2024 19:24:29 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id BC4436B0150; Sun, 18 Aug 2024 15:24:28 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id B74866B0151; Sun, 18 Aug 2024 15:24:28 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A3C686B0152; Sun, 18 Aug 2024 15:24:28 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 84D876B0150 for ; Sun, 18 Aug 2024 15:24:28 -0400 (EDT) Received: from smtpin30.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 2886B160D98 for ; Sun, 18 Aug 2024 19:24:28 +0000 (UTC) X-FDA: 82466342616.30.7963A33 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.13]) by imf02.hostedemail.com (Postfix) with ESMTP id 5F5B980005 for ; Sun, 18 Aug 2024 19:24:25 +0000 (UTC) Authentication-Results: imf02.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=hv5bnLsZ; spf=pass (imf02.hostedemail.com: domain of lkp@intel.com designates 198.175.65.13 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1724008989; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=yWJE980EhhU8tfj/RsIW4a4lOuLRb1bli20NL1VdUsA=; b=z0UQZwdQ/VgUoUZ8ZGI5QWGaZLK5PhSKGDbY06FnB159FIZwO1IoX79nTxw6k21vXWDUZr 3QCepISOx087v8voWQWwplgzCcT3UJXdzq4QlqKcFIS/hcJTH6p9yJKfpq9jKUxlWXO3s2 ibEcH5K2kZ5Feds39PwVU0SkE6fUnYg= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1724008989; a=rsa-sha256; cv=none; b=RHhetuPqW1sClVWlhmjBW0uRDIhqSwIIMOhwUFJLEEqYkr4S5s/VLNGyZM+D6MHIkX4c3q kLl8mV7RFnaY5HLZD/qjrKYrIhKI7gb3jb8lfc0mrE/lrDi3itAnWgOITIA1IUdQk7+4/q S9GyQmOlzmA1UzLg/e9j+UBx5dAVBYU= ARC-Authentication-Results: i=1; imf02.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=hv5bnLsZ; spf=pass (imf02.hostedemail.com: domain of lkp@intel.com designates 198.175.65.13 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1724009065; x=1755545065; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=uDIlPlP6pOZko2F3eOUc/KS8ctBQF6b3E/mzu/L+Jfs=; b=hv5bnLsZPHqIaPFHu28xfWS+q0G1/2SiuIaQDEaYryr/BEve2jw7piEO jaf9MNUKJfTcHag8EjRWU9FCscLq7/z72ZAxqWTawmekiwI574gtkSy4k 3VZYXXBrHCPv5+0Mf0vzsVZL0NPtm7RVCVLQ+MB8RebtnWGiyRz7n8F6Y dRqhaudeLTxzgibiqftJvqaiCnXANzyVIk4qDMMc9BssZHXc8HrKGSWpx gSBv+G+eB+voLiu2XM7hSUvjNfc9tmsRO7PRNtcQn59J1gM1zwKFL54sH tCSPVGzZRSrnaW57cIekjqm6R0abzA2xp5va5XZFySqvTIJQW+k7wGhWE g==; X-CSE-ConnectionGUID: h06tkGbqQqqzHqMDcYFR7g== X-CSE-MsgGUID: VFoLRVPXQNCeCNhBrZZmXw== X-IronPort-AV: E=McAfee;i="6700,10204,11168"; a="33393266" X-IronPort-AV: E=Sophos;i="6.10,157,1719903600"; d="scan'208";a="33393266" Received: from fmviesa005.fm.intel.com ([10.60.135.145]) by orvoesa105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Aug 2024 12:24:24 -0700 X-CSE-ConnectionGUID: 0mSq64FMRWi+hrc1jcc9yg== X-CSE-MsgGUID: VmyUEt/ATrSZkRad8kq8xw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.10,157,1719903600"; d="scan'208";a="64561022" Received: from lkp-server01.sh.intel.com (HELO 9a732dc145d3) ([10.239.97.150]) by fmviesa005.fm.intel.com with ESMTP; 18 Aug 2024 12:24:17 -0700 Received: from kbuild by 9a732dc145d3 with local (Exim 4.96) (envelope-from ) id 1sflVf-0008QE-0A; Sun, 18 Aug 2024 19:24:15 +0000 Date: Mon, 19 Aug 2024 03:23:40 +0800 From: kernel test robot To: shiju.jose@huawei.com, linux-edac@vger.kernel.org, linux-cxl@vger.kernel.org, linux-acpi@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Cc: oe-kbuild-all@lists.linux.dev, bp@alien8.de, tony.luck@intel.com, rafael@kernel.org, lenb@kernel.org, mchehab@kernel.org, dan.j.williams@intel.com, dave@stgolabs.net, jonathan.cameron@huawei.com, dave.jiang@intel.com, alison.schofield@intel.com, vishal.l.verma@intel.com, ira.weiny@intel.com, david@redhat.com, Vilas.Sridharan@amd.com, leo.duran@amd.com, Yazen.Ghannam@amd.com, rientjes@google.com, jiaqiyan@google.com, Jon.Grimm@amd.com, dave.hansen@linux.intel.com, naoya.horiguchi@nec.com, james.morse@arm.com, jthoughton@google.com, somasundaram.a@hpe.com, erdemaktas@google.com Subject: Re: [PATCH v11 04/14] cxl/mbox: Add GET_SUPPORTED_FEATURES mailbox command Message-ID: <202408190510.dFXq1LrX-lkp@intel.com> References: <20240816164238.1902-5-shiju.jose@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240816164238.1902-5-shiju.jose@huawei.com> X-Rspam-User: X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: 5F5B980005 X-Stat-Signature: 7id56pfqnc6omr7669ujpyhs779mdky8 X-HE-Tag: 1724009065-640286 X-HE-Meta: U2FsdGVkX18eRbGUl1WOM67Rtmn7XFHYPqg1evbX+5FEqlyV77zVgJ8ERXMeud75EgMbI74bxjoKM3TNx9OrUqecrbJ3pgZvKtpHOtMFgVRV/tak859JHNrLkBSPy5o7Ey5nnHyQVTe6u076+U8/WLfb8OnBQ+99suo0oU2Bw/H97mPchYEbwKoz+rXs3yNIF6xU6NN4mrDmOOxt7IkrkwW2QBTKxCbuH1jMtkYF6YC5yDTMQURp1eeiYDmnAK1g/evlgeKvrTP3p2GWcvA6wJx4RyQrtVsQXzgbWop2piryFOFASMp1m4J+hYf0JlCm6ZSYtjTwu5t/4anqD0ACsV3KFE2/YGjNSmtEzO9Tkl1pQcjr9/3bHGhvkFMIdlw41qCvb3lgocJ60dna1FwGIRn8Xuz0A6szOAyljL7jlEHQR+hTNo9I7R2ji0aare8ZJsZHe+QmMl3Y3jkr1jNB8ahrwo3lFqUtd4D1FTWrAlG9HBERi/uoiQqASM1NbqR0GzmT7LWvFFtspOgGXez/q1UA6zzRuKQL0Bx7XEX7n5X4+dy65h/NGqBlIBJibaOMVZuvFcJGoszY40/HAL+xsiWV0fy+4xfjYpi2nxjX+zOrPQddLCQGWjGhtlTGkbhCoF5SUDb/0tKoUt0AYXhXTsmAslCT00q4pq0sLBZilsXdY+vb2mxJPc1g9DmLQKo0+Z1Mdpu5184s7edj3QrcyCNK7jKRklYE6narhXlSS4Ui2888iMEZ+G6eZRJ15qeXRvCDrPmzwArQA5qUKaXDEhJr8qIwi0KF8SDgjljfkaScE1k4z4vKdboWnN6qEDhHqnUFfTn5IWPu6Idnoxa4NPeXAALw+vZ7NtwFuTaqR6IQKm1hZZxVwArKo5+MP/cJV0/uDV5B23BAqLe2wmUwBpy4dYjlEl8oenV4/dgPwSxmyBN1mUKuO1HvtGtFAkkFoQTAzfvGcLGbVXjeqhM jmhsuuUj +qwViAmieZSrcZTDQhN7x+x53SwoTA/gEItaCVHHEtV6B1g1SBqW+l2GEMJTV9W/SJ8TjGVijdi8ayPXwq1yemupIKwQg6XLvp15e6+/GClnLyqbkqdq6xM+bkcqr2SnrvsiGrb8mKhCb9e/xfJ+Jvvs3P2PwWlA+Fyk6fZxo6eKsA3qANRO5+dLgS6oMDCiUvjvPso0Oh8rfE27nKYWCw8Mn63Z61YuCEv83m4Hbrrki43nKFf9130o2HXDS1sahBOvZgQd7901C9C2vUrUthMEpNTrlBVaf4Cd2tWa1ky69sDcLJMePFOukAudJLRsk//JXdP3Mvd1JclbmfuP+v8RoSH/kBWOowij248lge6H+H1narlpO73EGrPO0HjTi6y+Ew3gdbE8csYk+MCvbKNVbtYshZL9hgEYrXAsilPk8Sz+93Z/6A4rGS5PvXo+9fAEcpNSzDgIWltxZN8q+lRyWQA== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: Hi, kernel test robot noticed the following build warnings: [auto build test WARNING on ras/edac-for-next] [also build test WARNING on rafael-pm/linux-next rafael-pm/bleeding-edge cxl/next linus/master v6.11-rc3 next-20240816] [cannot apply to cxl/pending] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/shiju-jose-huawei-com/EDAC-Add-support-for-EDAC-device-feature-s-control/20240817-004442 base: https://git.kernel.org/pub/scm/linux/kernel/git/ras/ras.git edac-for-next patch link: https://lore.kernel.org/r/20240816164238.1902-5-shiju.jose%40huawei.com patch subject: [PATCH v11 04/14] cxl/mbox: Add GET_SUPPORTED_FEATURES mailbox command config: alpha-randconfig-r131-20240818 (https://download.01.org/0day-ci/archive/20240819/202408190510.dFXq1LrX-lkp@intel.com/config) compiler: alpha-linux-gcc (GCC) 13.3.0 reproduce: (https://download.01.org/0day-ci/archive/20240819/202408190510.dFXq1LrX-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/oe-kbuild-all/202408190510.dFXq1LrX-lkp@intel.com/ sparse warnings: (new ones prefixed by >>) >> drivers/cxl/core/mbox.c:1377:26: sparse: sparse: incorrect type in assignment (different base types) @@ expected int nentries @@ got restricted __le16 [usertype] nr_entries @@ drivers/cxl/core/mbox.c:1377:26: sparse: expected int nentries drivers/cxl/core/mbox.c:1377:26: sparse: got restricted __le16 [usertype] nr_entries vim +1377 drivers/cxl/core/mbox.c 1353 1354 int cxl_get_supported_feature_entry(struct cxl_memdev_state *mds, const uuid_t *feat_uuid, 1355 struct cxl_mbox_supp_feat_entry *feat_entry_out) 1356 { 1357 struct cxl_mbox_supp_feat_entry *feat_entry; 1358 int feat_index, feats_out_size; 1359 int nentries, count; 1360 int ret; 1361 1362 feat_index = 0; 1363 feats_out_size = sizeof(struct cxl_mbox_get_supp_feats_out) + 1364 sizeof(struct cxl_mbox_supp_feat_entry); 1365 struct cxl_mbox_get_supp_feats_out *feats_out __free(kfree) = 1366 kmalloc(feats_out_size, GFP_KERNEL); 1367 if (!feats_out) 1368 return -ENOMEM; 1369 1370 while (true) { 1371 memset(feats_out, 0, feats_out_size); 1372 ret = cxl_get_supported_features(mds, feats_out_size, 1373 feat_index, feats_out); 1374 if (ret) 1375 return ret; 1376 > 1377 nentries = feats_out->nr_entries; 1378 if (!nentries) 1379 return -EOPNOTSUPP; 1380 1381 /* Check CXL memdev supports the feature */ 1382 feat_entry = feats_out->feat_entries; 1383 for (count = 0; count < nentries; count++, feat_entry++) { 1384 if (uuid_equal(&feat_entry->uuid, feat_uuid)) { 1385 memcpy(feat_entry_out, feat_entry, 1386 sizeof(*feat_entry_out)); 1387 return 0; 1388 } 1389 } 1390 feat_index += nentries; 1391 } 1392 } 1393 EXPORT_SYMBOL_NS_GPL(cxl_get_supported_feature_entry, CXL); 1394 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki