From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=198.175.65.9 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796556539; b=wLd3IEPuWy1U943/jSaSMd7xr3P1yrIT6IeYkMdrJfVoWHVHVWlSgEX4OGHbM8+a78MW ZsyptaA0a5vuiPXseoS1uhpxfN5+ha5iGZWQ+vVCm52T226Sb0FmzAXBspOqgqWeeqIUU 8wyVfqwlG0eT7rMAmv+B/vzdvk26DQQHnETXv7mBHMchczuZzkEGpzLBYHwEQYgVC6VSw COb/ZHx6kOPXZRUtnsNVq2Wk6on4ftxmf64Uq4XZp+bg7EwEf+D/9VuOnpd3HFgHPtbZa oXpaUqzMXdX44bSgfnot02xxiAlxcJCI3BZ5V9EqGQUuUkyOBFvyfPmFSgkj51xHaAg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796556539; 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=QCWWT5jfbSjh9QG8ICM9Bm7oTz8Q61ZLxaUYz75a9fY=; b=5CcIvJixmh/mKaRMMrxt+nz+FuEACDDujL0F3P+a+z85vJfE/F1A96OouzxmwjlWpYYv AIDe5aZbRJsD93rm/bpGAJXqJtDBgreG0xI1LLt2gRqM4RpPMZOKoEBcyXR9aaldZyyu3 YK7n9lrnxYau7KHonvxprJSo1vshNWauo+NsVC0M5UD8Wsf6J3BoSWV8y0teM0HJHQYTy E7coaNxQhLoXc7wfezDjs+XuKy243P80HkrsRoPuY+IXZoGX32MSxzoZ9jQhzyjTEmoHh PVmsIUUzQi+oq4JUSuEcagtHsV/dDNxINuuy/deOBw8E7pdvW0pALXLSAetd1jqMHFA== 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=cHjAxDhl; arc=none smtp.remote-ip=198.175.65.9 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) (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 BFB75606A68D for ; Sun, 6 Dec 2026 11:28:58 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org BFB75606A68D 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=cHjAxDhl DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1796556539; x=1828092539; h=date:from:to:cc:subject:message-id; bh=QCWWT5jfbSjh9QG8ICM9Bm7oTz8Q61ZLxaUYz75a9fY=; b=cHjAxDhlrpGJRX1GwJa6UV6ZeZoo2RhM0Botc1/70PEIy0/gQSKY05JX 1OFmGgZBeukEsi2FXhS03bPDPFujqeQR7xPA/WxpaF+bCvQOmT7d7tFiL UGyvS0znWgv2qL0le5sUbApdMnAbS66bEDw1Qiw9fyOP6HB6R3KDniX6J 0/sKmxkfF4eCZX3I09gulBCe4jU6dYMnoqmTH3ddG0XC/Pc5jZhJVAXAH ZgMm8CGMVdEpuACekT4eGmOhh0eSozrwagDUx8xsG7rLDNOfYF3731Zu7 HjA4NXZ2+rbO4u9nds1e1dcP1o91D6FeNZnTGP09/S+cxJrxOczrBh4hi g==; X-CSE-ConnectionGUID: 4xDEM0CzSayoAi4OjmdL7Q== X-CSE-MsgGUID: IokdUG26QoKyNfm0GJcUIA== X-IronPort-AV: E=McAfee;i="6800,10657,11988"; a="5393329" X-IronPort-AV: E=Sophos;i="6.29,81,1794902400"; d="scan'208";a="5393329" Received: from orviesa010.jf.intel.com ([10.64.159.150]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Dec 2026 03:28:57 -0800 X-CSE-ConnectionGUID: dAJGAoydSEqfL08Bobt3cg== X-CSE-MsgGUID: NpflsfA7Q0ehqXFglevNsA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.29,81,1794902400"; d="scan'208";a="5930833" Received: from igk-lkp-server01.igk.intel.com (HELO 146cf1e082f1) ([10.211.93.152]) by orviesa010.jf.intel.com with ESMTP; 06 Dec 2026 03:28:55 -0800 Received: from kbuild by 146cf1e082f1 with local (Exim 4.98.2) (envelope-from ) id 1xaAQH-000000004wu-1Zzi; Sun, 06 Dec 2026 11:28:53 +0000 Date: Sun, 06 Dec 2026 12:27:52 +0100 From: kernel test robot To: Nicolas Frattaroli Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, Ulf Hansson , AngeloGioacchino Del Regno Subject: drivers/pmdomain/mediatek/mtk-mfg-pmdomain.c:490:31: sparse: sparse: incorrect type in assignment (different base types) Message-ID: <20261204161625.BFT33Hc2-lkp@intel.com> User-Agent: s-nail v14.9.25 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 007722b8211f7b34fdf21b1e6a9c32497633ea29 commit: f08e7a4e8d6ac4de677727af352ea33c6ce9f444 pmdomain: mediatek: Add support for MFlexGraphics date: 1 year ago config: powerpc64-randconfig-r2308-20261203 (https://download.01.org/0day-ci/archive/20261204/20261204161625.BFT33Hc2-lkp@intel.com/config) compiler: powerpc64-linux-gcc (GCC) 11.5.0 sparse: v0.6.5-rc1-94-g0d159c10 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261204/20261204161625.BFT33Hc2-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: f08e7a4e8d6a ("pmdomain: mediatek: Add support for MFlexGraphics") | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/20261204161625.BFT33Hc2-lkp@intel.com/ sparse warnings: (new ones prefixed by >>) drivers/pmdomain/mediatek/mtk-mfg-pmdomain.c:418:26: sparse: sparse: incorrect type in initializer (different base types) @@ expected restricted __le32 [usertype] magic @@ got unsigned long @@ drivers/pmdomain/mediatek/mtk-mfg-pmdomain.c:418:26: sparse: expected restricted __le32 [usertype] magic drivers/pmdomain/mediatek/mtk-mfg-pmdomain.c:418:26: sparse: got unsigned long drivers/pmdomain/mediatek/mtk-mfg-pmdomain.c:458:20: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [usertype] magic @@ got unsigned int [usertype] ipi_magic @@ drivers/pmdomain/mediatek/mtk-mfg-pmdomain.c:458:20: sparse: expected restricted __le32 [usertype] magic drivers/pmdomain/mediatek/mtk-mfg-pmdomain.c:458:20: sparse: got unsigned int [usertype] ipi_magic drivers/pmdomain/mediatek/mtk-mfg-pmdomain.c:472:19: sparse: sparse: restricted signed int degrades to integer >> drivers/pmdomain/mediatek/mtk-mfg-pmdomain.c:490:31: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le64 [usertype] base @@ got unsigned long long [usertype] shared_mem_phys @@ drivers/pmdomain/mediatek/mtk-mfg-pmdomain.c:490:31: sparse: expected restricted __le64 [usertype] base drivers/pmdomain/mediatek/mtk-mfg-pmdomain.c:490:31: sparse: got unsigned long long [usertype] shared_mem_phys >> drivers/pmdomain/mediatek/mtk-mfg-pmdomain.c:491:31: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [usertype] size @@ got unsigned int shared_mem_size @@ drivers/pmdomain/mediatek/mtk-mfg-pmdomain.c:491:31: sparse: expected restricted __le32 [usertype] size drivers/pmdomain/mediatek/mtk-mfg-pmdomain.c:491:31: sparse: got unsigned int shared_mem_size drivers/pmdomain/mediatek/mtk-mfg-pmdomain.c:509:17: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [usertype] cmd @@ got int @@ drivers/pmdomain/mediatek/mtk-mfg-pmdomain.c:509:17: sparse: expected restricted __le32 [usertype] cmd drivers/pmdomain/mediatek/mtk-mfg-pmdomain.c:509:17: sparse: got int drivers/pmdomain/mediatek/mtk-mfg-pmdomain.c:510:27: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [usertype] power_state @@ got int @@ drivers/pmdomain/mediatek/mtk-mfg-pmdomain.c:510:27: sparse: expected restricted __le32 [usertype] power_state drivers/pmdomain/mediatek/mtk-mfg-pmdomain.c:510:27: sparse: got int drivers/pmdomain/mediatek/mtk-mfg-pmdomain.c:523:17: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [usertype] cmd @@ got int @@ drivers/pmdomain/mediatek/mtk-mfg-pmdomain.c:523:17: sparse: expected restricted __le32 [usertype] cmd drivers/pmdomain/mediatek/mtk-mfg-pmdomain.c:523:17: sparse: got int drivers/pmdomain/mediatek/mtk-mfg-pmdomain.c:524:38: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted signed int [usertype] gpu_oppidx @@ got unsigned int opp_idx @@ drivers/pmdomain/mediatek/mtk-mfg-pmdomain.c:524:38: sparse: expected restricted signed int [usertype] gpu_oppidx drivers/pmdomain/mediatek/mtk-mfg-pmdomain.c:524:38: sparse: got unsigned int opp_idx drivers/pmdomain/mediatek/mtk-mfg-pmdomain.c:525:40: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted signed int [usertype] stack_oppidx @@ got unsigned int opp_idx @@ drivers/pmdomain/mediatek/mtk-mfg-pmdomain.c:525:40: sparse: expected restricted signed int [usertype] stack_oppidx drivers/pmdomain/mediatek/mtk-mfg-pmdomain.c:525:40: sparse: got unsigned int opp_idx drivers/pmdomain/mediatek/mtk-mfg-pmdomain.c:578:42: sparse: sparse: restricted __le32 degrades to integer drivers/pmdomain/mediatek/mtk-mfg-pmdomain.c:579:44: sparse: sparse: restricted __le32 degrades to integer drivers/pmdomain/mediatek/mtk-mfg-pmdomain.c:593:44: sparse: sparse: restricted __le32 degrades to integer drivers/pmdomain/mediatek/mtk-mfg-pmdomain.c:594:46: sparse: sparse: restricted __le32 degrades to integer drivers/pmdomain/mediatek/mtk-mfg-pmdomain.c:1009:9: sparse: sparse: Initializer entry defined twice drivers/pmdomain/mediatek/mtk-mfg-pmdomain.c:1010:9: sparse: also defined here vim +490 drivers/pmdomain/mediatek/mtk-mfg-pmdomain.c 479 480 static int mtk_mfg_init_shared_mem(struct mtk_mfg *mfg) 481 { 482 struct device *dev = &mfg->pdev->dev; 483 struct mtk_mfg_ipi_msg msg = {}; 484 int ret; 485 486 dev_dbg(dev, "clearing GPUEB shared memory, 0x%X bytes\n", mfg->shared_mem_size); 487 memset_io(mfg->shared_mem, 0, mfg->shared_mem_size); 488 489 msg.cmd = CMD_INIT_SHARED_MEM; > 490 msg.u.shared_mem.base = mfg->shared_mem_phys; > 491 msg.u.shared_mem.size = mfg->shared_mem_size; 492 493 ret = mtk_mfg_send_ipi(mfg, &msg); 494 if (ret) 495 return ret; 496 497 if (readl(mfg->shared_mem + GF_REG_MAGIC) != GPUEB_MEM_MAGIC) { 498 dev_err(dev, "EB did not initialise shared memory correctly\n"); 499 return -EIO; 500 } 501 502 return 0; 503 } 504 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki