From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=192.198.163.13 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796556599; b=1szujmgBGJLKJ4sijEFSOaRt6Wqkx6uNkYf8st45tlYWPZcwL5dLZQRpkELEiNWhkzo8 kqbH6Hm5y9QrrgAQ/tUdkju4sexjLeQGwJfkML0BkCpd1OHEBPffMbizU/AdsZ1MohNKg OHtivkdscd3VFzd7GlRZ/K3U2u9LocCTK8KFedD10KemUoY5/NlZ2EQ0TCDEtUj6xIFA1 C/pLuRmhqbUIcSmv9IdQAH82a0gOfpe66L27xOe1lkpFojTy+AVkwZKhCI99r6sgMre7U rOAcp3/hSygPbdUIkaj+zkwflr4KEZleAIKQZWpugLUWmcwbUAx26SNh8VEJrastAlw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796556599; 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=XEne9GHOE1ilLZTYrE70sOp95x7EBSMYm1ZEyMMxGNI=; b=pA8dzAW6k///cjX2Y1DX6g+4PxXlDonB0eYglt8OPEaqnTVRsoaRtQ++Q9asWO3KioA+ TVyPXuswNXmt1nBtPiU1jfxvalsDTtYfGjdgiLVcZXIuhf016TPziRXLrd0fSv19BlaVI zVOROa6U02n3K9t8A7uUcpahD0ODAgQkuI2h140kJH2drdknkmu5dD2UMTKRYZ1mACS/6 LtyLhkLG/TKd5+DslcWztGqd5pcq9Lg9jKybi0t1b6avvQl6Su54pQMfJIAuN3zRqpwIE q1XYrsLfnfjqWIuEUwBAQDS7VFnmc8FSp8HNXK8LSva6vLifV54csUEpjFxmCCFRo1A== 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="X/aXrwj0"; arc=none smtp.remote-ip=192.198.163.13 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.13]) (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 2B968606A321 for ; Sun, 6 Dec 2026 11:29:59 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 2B968606A321 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=X/aXrwj0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1796556599; x=1828092599; h=date:from:to:cc:subject:message-id; bh=XEne9GHOE1ilLZTYrE70sOp95x7EBSMYm1ZEyMMxGNI=; b=X/aXrwj0O4mP1C7sI6AP6bGwWtfGC/5pDLxjjTTDxwrqQm9j1w/oKc3D 8N4qkZbkpXvO+ZYhMFa5uiq8z97W1H7J/5EBryv8t0gwn9TYErgSfUYxU 1hRdp30EPYEwu1wr2kE03uEVDJtzjo10LDc7Gr+1JfLz8kbFM0y4CBJ4t YA2UYepMdiTFgalJ9ivnq6E0Waagu4z2B9lbfFjXYD7uQSFi3S6pNh02K 2dcT8Ve5BypSfEOCqVF8CcaKUiubRLiFKU14KeeZG9Qz7OOv+kuG5RtEV ilqg7v2JmASB9DYjnjYViKIbciDSr8E4dII4cx62FQLOooYo4VNEVyDp4 w==; X-CSE-ConnectionGUID: LkCAKm/JQeWGzF1e3v5pWw== X-CSE-MsgGUID: GYGNofTgS8WzVMKGVV5JLA== X-IronPort-AV: E=McAfee;i="6800,10657,11988"; a="5455621" X-IronPort-AV: E=Sophos;i="6.29,81,1794902400"; d="scan'208";a="5455621" Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by fmvoesa107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Dec 2026 03:29:59 -0800 X-CSE-ConnectionGUID: dI8G2EeETqG6sifKNImgQQ== X-CSE-MsgGUID: Urg+gvoARpWDVCXRHw24eQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.29,81,1794902400"; d="scan'208";a="14693674" Received: from igk-lkp-server01.igk.intel.com (HELO 146cf1e082f1) ([10.211.93.152]) by fmviesa003.fm.intel.com with ESMTP; 06 Dec 2026 03:29:57 -0800 Received: from kbuild by 146cf1e082f1 with local (Exim 4.98.2) (envelope-from ) id 1xaARH-000000004zs-1W6s; Sun, 06 Dec 2026 11:29:55 +0000 Date: Sun, 06 Dec 2026 12:29:49 +0100 From: kernel test robot To: Rustam Adilov Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, Thomas Gleixner Subject: drivers/irqchip/irq-realtek-rtl.c:79:15: sparse: sparse: incorrect type in argument 1 (different address spaces) Message-ID: <20261206092517.nxZPIJjI-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: d14d00a5fea1ee2540be6a2238314b7ba1e41f86 commit: 58b34b72b64bfbfc5f8ad4d8f229942aff76597e irqchip/irq-realtek-rtl: Use readl_be()/writel_be() instead of readl()/writel() date: 4 months ago config: mips-randconfig-r2302-20261206 (https://download.01.org/0day-ci/archive/20261206/20261206092517.nxZPIJjI-lkp@intel.com/config) compiler: clang version 18.1.8 (https://github.com/llvm/llvm-project 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff) sparse: v0.6.5-rc1-94-g0d159c10 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261206/20261206092517.nxZPIJjI-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: 58b34b72b64b ("irqchip/irq-realtek-rtl: Use readl_be()/writel_be() instead of readl()/writel()") | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/20261206092517.nxZPIJjI-lkp@intel.com/ sparse warnings: (new ones prefixed by >>) >> drivers/irqchip/irq-realtek-rtl.c:79:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got unsigned int * @@ drivers/irqchip/irq-realtek-rtl.c:79:15: sparse: expected void const volatile [noderef] __iomem *mem drivers/irqchip/irq-realtek-rtl.c:79:15: sparse: got unsigned int * >> drivers/irqchip/irq-realtek-rtl.c:79:15: sparse: sparse: cast to restricted __be32 >> drivers/irqchip/irq-realtek-rtl.c:81:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] val @@ got restricted __be32 [usertype] @@ drivers/irqchip/irq-realtek-rtl.c:81:9: sparse: expected unsigned int [usertype] val drivers/irqchip/irq-realtek-rtl.c:81:9: sparse: got restricted __be32 [usertype] >> drivers/irqchip/irq-realtek-rtl.c:81:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got unsigned int * @@ drivers/irqchip/irq-realtek-rtl.c:81:9: sparse: expected void volatile [noderef] __iomem *mem drivers/irqchip/irq-realtek-rtl.c:81:9: sparse: got unsigned int * drivers/irqchip/irq-realtek-rtl.c:167:19: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got unsigned int * @@ drivers/irqchip/irq-realtek-rtl.c:167:19: sparse: expected void const volatile [noderef] __iomem *mem drivers/irqchip/irq-realtek-rtl.c:167:19: sparse: got unsigned int * drivers/irqchip/irq-realtek-rtl.c:167:19: sparse: sparse: cast to restricted __be32 drivers/irqchip/irq-realtek-rtl.c:168:19: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got unsigned int * @@ drivers/irqchip/irq-realtek-rtl.c:168:19: sparse: expected void const volatile [noderef] __iomem *mem drivers/irqchip/irq-realtek-rtl.c:168:19: sparse: got unsigned int * drivers/irqchip/irq-realtek-rtl.c:168:19: sparse: sparse: cast to restricted __be32 drivers/irqchip/irq-realtek-rtl.c:58:16: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got unsigned int * @@ drivers/irqchip/irq-realtek-rtl.c:58:16: sparse: expected void const volatile [noderef] __iomem *mem drivers/irqchip/irq-realtek-rtl.c:58:16: sparse: got unsigned int * drivers/irqchip/irq-realtek-rtl.c:58:16: sparse: sparse: cast to restricted __be32 drivers/irqchip/irq-realtek-rtl.c:60:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] val @@ got restricted __be32 [usertype] @@ drivers/irqchip/irq-realtek-rtl.c:60:9: sparse: expected unsigned int [usertype] val drivers/irqchip/irq-realtek-rtl.c:60:9: sparse: got restricted __be32 [usertype] drivers/irqchip/irq-realtek-rtl.c:60:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got unsigned int * @@ drivers/irqchip/irq-realtek-rtl.c:60:9: sparse: expected void volatile [noderef] __iomem *mem drivers/irqchip/irq-realtek-rtl.c:60:9: sparse: got unsigned int * drivers/irqchip/irq-realtek-rtl.c:67:16: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got unsigned int * @@ drivers/irqchip/irq-realtek-rtl.c:67:16: sparse: expected void const volatile [noderef] __iomem *mem drivers/irqchip/irq-realtek-rtl.c:67:16: sparse: got unsigned int * drivers/irqchip/irq-realtek-rtl.c:67:16: sparse: sparse: cast to restricted __be32 drivers/irqchip/irq-realtek-rtl.c:69:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] val @@ got restricted __be32 [usertype] @@ drivers/irqchip/irq-realtek-rtl.c:69:9: sparse: expected unsigned int [usertype] val drivers/irqchip/irq-realtek-rtl.c:69:9: sparse: got restricted __be32 [usertype] drivers/irqchip/irq-realtek-rtl.c:69:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got unsigned int * @@ drivers/irqchip/irq-realtek-rtl.c:69:9: sparse: expected void volatile [noderef] __iomem *mem drivers/irqchip/irq-realtek-rtl.c:69:9: sparse: got unsigned int * drivers/irqchip/irq-realtek-rtl.c:67:16: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got unsigned int * @@ drivers/irqchip/irq-realtek-rtl.c:67:16: sparse: expected void const volatile [noderef] __iomem *mem drivers/irqchip/irq-realtek-rtl.c:67:16: sparse: got unsigned int * drivers/irqchip/irq-realtek-rtl.c:67:16: sparse: sparse: cast to restricted __be32 drivers/irqchip/irq-realtek-rtl.c:69:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] val @@ got restricted __be32 [usertype] @@ drivers/irqchip/irq-realtek-rtl.c:69:9: sparse: expected unsigned int [usertype] val drivers/irqchip/irq-realtek-rtl.c:69:9: sparse: got restricted __be32 [usertype] drivers/irqchip/irq-realtek-rtl.c:69:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got unsigned int * @@ drivers/irqchip/irq-realtek-rtl.c:69:9: sparse: expected void volatile [noderef] __iomem *mem drivers/irqchip/irq-realtek-rtl.c:69:9: sparse: got unsigned int * vim +79 drivers/irqchip/irq-realtek-rtl.c 71 72 static void write_irr(unsigned int cpu, int hw_irq, u32 value) 73 { 74 void __iomem *irr0 = REG(cpu, RTL_ICTL_IRR0); 75 unsigned int offset = IRR_OFFSET(hw_irq); 76 unsigned int shift = IRR_SHIFT(hw_irq); 77 u32 irr; 78 > 79 irr = readl_be(irr0 + offset) & ~(0xf << shift); 80 irr |= (value & 0xf) << shift; > 81 writel_be(irr, irr0 + offset); 82 } 83 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki