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=1795955059; b=DTt9zmy0Z0xepihhn26IzHcEMThdb43OFab34yaBIm+kl5s4doS+qpBoqyiDQ416Ae8u 5eOgMCkFqDeDTgYK3vteT7C1DfVRfkLBxXMYlC7138aixZ7qzYRC1l+5huf1bOsXUAbM/ 0V5sVW36AOSblE6y/x+k4EmItar52y5z37nzLzEM+0HhswVwDDGh9uT07ut8Wo3zHzELO h4kmym7oL7XhQd3LMJihSF0uyrXq92CAj7uhzjtpUQ9bLzJE91G0a09W/mY3bC8I7zz4j LN9dRKaO9SsNPJZAxA0Yx029FkZWpIxUpsRQLXyj8DU/6d4hl5aha6s4visKfVpDMAQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795955059; 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=pZ+F6W+/I0AXn/iijJYjPzYdWTdtI9xS698Zw6+HL1M=; b=wlCq+0/5HlO8b5MC5xA7YoxvAeUPO9Ldc00dwmgO5+ffOKaiRK5Fiz8PWp0YFbB5/+b3 X4UblRMI1AsxQcSmsiontyqgpgcN6cS2oyRdAqSOjAAFMTBwyLbgqgv77Di4wLZLVIFJ7 1y4WRUjhUj/wiZmWR9kkJM4M5negOOemHm3xrBzxXsnsBy2W1OcDxvQwhltxDwEhUY+WQ d4dak1Z1yvMHI5fyaY+/19lKLgxur8byLgntr0dBCAVJ7YQl0VWOsUuKXjN9z9IWUUBJB VkJOYse12TsJGicNJYtrpR4B7Z0jx9/9zHtNY84JyxF424lr3vniq5qGLKYd1iNRzew== 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=oBYcJooj; 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 5ED75606A327 for ; Sun, 29 Nov 2026 12:24:19 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 5ED75606A327 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=oBYcJooj DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1795955059; x=1827491059; h=date:from:to:cc:subject:message-id; bh=u1VJbdwgA/WAz5rkjynkksRnOAm3aZ7trrvMhQK2Yv0=; b=oBYcJoojoumKuYqsr0SEI3P5oaLOICnTNL7vhf9CTaqztVg0t1Yk2Ia9 Opn2Fasetxe2nHgnlYukhjGL2384o1ejASZDb4Z56T/ZRUc6pD16d1IbA nP5LQK6UeNBwnkMDHM6t1ojYhdE3iXUQu9Un5FOjm4+PGVSxBt+r/YJiO BWJ/jYfTEZJy7FVGKMY+2rctfil3mw/dxKxJewfc4TurhYLxtZ0DOYWRP NbIv2QFzSs5Pp7jlRq/aU+wOUXmcrS2o/aiOmXVZg7TQy0OzLlzEoDxzq VAxCcCVzmLBHHVIjSflTU7ixBOqj4bn09BY/7/eNY3FnagsCJe7Renr3z Q==; X-CSE-ConnectionGUID: ouJRylG6QdG178V6lvJPwA== X-CSE-MsgGUID: G7eiDfNOTAC2Hqv59Xc4Jw== X-IronPort-AV: E=McAfee;i="6800,10657,11980"; a="4754684" X-IronPort-AV: E=Sophos;i="6.27,240,1787036400"; d="scan'208";a="4754684" Received: from orviesa010.jf.intel.com ([10.64.159.150]) by fmvoesa108.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Nov 2026 04:24:18 -0800 X-CSE-ConnectionGUID: Rm7s+1TsS4WbfjtDacua/w== X-CSE-MsgGUID: lZ9sktcxQSeGpex9JToYDg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,240,1787036400"; d="scan'208";a="4242536" Received: from igk-lkp-server01.igk.intel.com (HELO 146cf1e082f1) ([10.211.93.152]) by orviesa010.jf.intel.com with ESMTP; 29 Nov 2026 04:24:17 -0800 Received: from kbuild by 146cf1e082f1 with local (Exim 4.98.2) (envelope-from ) id 1xXdx0-0000000013a-32DT; Sun, 29 Nov 2026 12:24:14 +0000 Date: Sun, 29 Nov 2026 13:23:45 +0100 From: kernel test robot To: Kumar Kartikeya Dwivedi Cc: oe-kbuild-all@lists.linux.dev Subject: [kkdwivedi:fermata 405/441] block/blk-mq-bpf.c:96:49: sparse: sparse: incorrect type in argument 2 (different base types) Message-ID: <20261129132314.emPBVYCm-lkp@intel.com> User-Agent: s-nail v14.9.25 X-Mailing-List: oe-kbuild-all@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list tree: https://github.com/kkdwivedi/linux fermata head: 71012f36d1d04ec653daeebbce8dccf19aeb205d commit: d5bba177f44e1b88a35c94a49ed7e550587927d0 [405/441] block: Let a BPF struct_ops choose where a disk's requests go config: mips-randconfig-r2311-20261129 (https://download.01.org/0day-ci/archive/20261129/20261129132314.emPBVYCm-lkp@intel.com/config) compiler: mips-linux-gcc (GCC) 16.2.0 sparse: v0.6.5-rc1-21-g84ec0658 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261129/20261129132314.emPBVYCm-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/20261129132314.emPBVYCm-lkp@intel.com/ sparse warnings: (new ones prefixed by >>) >> block/blk-mq-bpf.c:96:49: sparse: sparse: incorrect type in argument 2 (different base types) @@ expected unsigned int [usertype] opf @@ got restricted blk_opf_t [usertype] opf @@ block/blk-mq-bpf.c:96:49: sparse: expected unsigned int [usertype] opf block/blk-mq-bpf.c:96:49: sparse: got restricted blk_opf_t [usertype] opf vim +96 block/blk-mq-bpf.c 80 81 /* 82 * The hardware context the extension chooses for a request of the attached disk's queue 83 * @q, without an elevator, submitted on @cpu, and in *@ctxp the software one, or NULL 84 * where the request is the kernel's. 85 */ 86 static struct blk_mq_hw_ctx *blk_mq_place_hctx(struct request_queue *q, blk_opf_t opf, 87 unsigned int cpu, struct blk_mq_ctx **ctxp) 88 { 89 enum req_op op = opf & REQ_OP_MASK; 90 struct blk_mq_ctx *ctx; 91 unsigned int type; 92 u32 ret; 93 94 if ((op != REQ_OP_READ && op != REQ_OP_WRITE) || (opf & (REQ_PREFLUSH | REQ_FUA))) 95 return NULL; > 96 ret = static_call(blk_mq_place_call)(q, opf, get_current_ioprio(), cpu); 97 if (!(ret & BPF_BLK_MQ_PLACED)) 98 return NULL; 99 cpu = ret & BPF_BLK_MQ_CPU_MASK; 100 type = (ret & ~BPF_BLK_MQ_PLACED) >> BPF_BLK_MQ_TYPE_SHIFT; 101 if (cpu >= nr_cpu_ids || !cpu_online(cpu) || type >= q->tag_set->nr_maps || 102 !q->tag_set->map[type].nr_queues || (type == HCTX_TYPE_POLL) != !!(opf & REQ_POLLED)) 103 return NULL; 104 ctx = per_cpu_ptr(q->queue_ctx, cpu); 105 *ctxp = ctx; 106 return ctx->hctxs[type]; 107 } 108 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki