From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B581834E744 for ; Mon, 22 Jun 2026 23:36:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.16 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782171385; cv=none; b=CchhrccYVP6RITtFaQmKGmmR5WDyH1vXu9NIyzqsd3HVVy7p260WA80fu9JrdCaVXZCsygqRP3lsHtk//a6+KF84oMtwwEX6yHwdZjayXAUNMh3HlbDOwqCcmsrS2ItbsLpSrf0rDWwAgwgbbt5TCbIvOrtV/r4Y8ux1NykOwL0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782171385; c=relaxed/simple; bh=NUX1iGy7bET8NxNRX+rdoX12tLyY189OSbedrVWVeCA=; h=Date:From:To:Cc:Subject:Message-ID; b=Ecq/kp2UUwpQXCrHG8iUOikCaIfkb7bK3ankNepYH3PXptP3tg4U6dR22ONGpjrknuPPBrfecjAhMj2Q/SdpANE9y7lAVAhxeG8KwApGZHHuKqVszuhIU1TpoEmWDVB8dTPZ2kCc5WVFC9EZ9LvtVhu8VJN9621OXW8tIkKC5/0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=eNh6eRui; arc=none smtp.client-ip=198.175.65.16 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.b="eNh6eRui" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1782171384; x=1813707384; h=date:from:to:cc:subject:message-id; bh=NUX1iGy7bET8NxNRX+rdoX12tLyY189OSbedrVWVeCA=; b=eNh6eRui/ihTXAEA9h0eiS1fOIb+064V26TliasVfrTU9pnnTZc4jTnx LYvCCr4WTLF0T/kgKULPZYzk8ezbgBDv7dT8W6QNT89gpLsBmGaG9EneT fwu3vZZN5oPVz7r8dhCcwWR+8qmNBUBejZjqC+bGTfhm3pTUlLLNvMfJ6 zmZAsymaFrL1P3bkhzhOIzBQtyvHa/kvj+2IW6uA2gGKltjMNyFn6FNel NZPjJESUwIiUIFbdlmDgZ8WFto3K8Uhst+9trTo4Ow8iJU9MptgS7lQBP MWKZSwwhq9OrnbvgKw6GRu3uJA2kZtrIwJclSfGS9VGQSRO4l0bl5XIDl w==; X-CSE-ConnectionGUID: HMMLVCVcRxiEtS8hUf4FQg== X-CSE-MsgGUID: 59WPmH4vSF2Ox0xac6gDjQ== X-IronPort-AV: E=McAfee;i="6800,10657,11825"; a="83100303" X-IronPort-AV: E=Sophos;i="6.24,219,1774335600"; d="scan'208";a="83100303" Received: from fmviesa001.fm.intel.com ([10.60.135.141]) by orvoesa108.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Jun 2026 16:36:23 -0700 X-CSE-ConnectionGUID: ahw/W6PWRqm2+nU53GZ/ag== X-CSE-MsgGUID: 1ooaVHvHRueFgaRmAGjjIg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.24,219,1774335600"; d="scan'208";a="273422285" Received: from lkp-server02.sh.intel.com (HELO ea128546eb3d) ([10.239.97.151]) by fmviesa001.fm.intel.com with ESMTP; 22 Jun 2026 16:36:19 -0700 Received: from kbuild by ea128546eb3d with local (Exim 4.98.2) (envelope-from ) id 1wboBa-0000000023y-2e9G; Mon, 22 Jun 2026 23:36:15 +0000 Date: Tue, 23 Jun 2026 07:35:31 +0800 From: kernel test robot To: Jason Gunthorpe Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org Subject: drivers/infiniband/core/ib_core_uverbs.c:430:16: sparse: sparse: incorrect type in return expression (different modifiers) Message-ID: <202606230708.oBFhjnbi-lkp@intel.com> User-Agent: s-nail v14.9.25 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 4708cac0e22cfd217f48f7cec3c35e5922efcccd commit: 01f99f8c4a0adec6875f192702a57c5e88978af5 RDMA/core: Move the _ib_copy_validate_udata* functions to ib_core_uverbs date: 5 weeks ago config: x86_64-randconfig-122-20260618 (https://download.01.org/0day-ci/archive/20260623/202606230708.oBFhjnbi-lkp@intel.com/config) compiler: clang version 22.1.3 (https://github.com/llvm/llvm-project e9846648fd6183ee6d8cbdb4502213fcf902a211) sparse: v0.6.5-rc1 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260623/202606230708.oBFhjnbi-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: 01f99f8c4a0a ("RDMA/core: Move the _ib_copy_validate_udata* functions to ib_core_uverbs") | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202606230708.oBFhjnbi-lkp@intel.com/ sparse warnings: (new ones prefixed by >>) >> drivers/infiniband/core/ib_core_uverbs.c:430:16: sparse: sparse: incorrect type in return expression (different modifiers) @@ expected int ( * )( ... ) @@ got int ( [noderef] *__v )( ... ) @@ drivers/infiniband/core/ib_core_uverbs.c:430:16: sparse: expected int ( * )( ... ) drivers/infiniband/core/ib_core_uverbs.c:430:16: sparse: got int ( [noderef] *__v )( ... ) vim +430 drivers/infiniband/core/ib_core_uverbs.c 419 420 #if IS_ENABLED(CONFIG_INFINIBAND_USER_ACCESS) 421 uverbs_api_ioctl_handler_fn uverbs_get_handler_fn(struct ib_udata *udata) 422 { 423 struct uverbs_attr_bundle *bundle = 424 rdma_udata_to_uverbs_attr_bundle(udata); 425 struct bundle_priv *pbundle = 426 container_of(&bundle->hdr, struct bundle_priv, bundle); 427 428 lockdep_assert_held(&bundle->ufile->device->disassociate_srcu); 429 > 430 return srcu_dereference(pbundle->method_elm->handler, 431 &bundle->ufile->device->disassociate_srcu); 432 } 433 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki