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 DF7FBC4332F for ; Wed, 13 Dec 2023 02:15:08 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 6D6F66B0431; Tue, 12 Dec 2023 21:15:08 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 686ED6B0432; Tue, 12 Dec 2023 21:15:08 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 5757D6B0433; Tue, 12 Dec 2023 21:15:08 -0500 (EST) 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 454266B0431 for ; Tue, 12 Dec 2023 21:15:08 -0500 (EST) Received: from smtpin24.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 20B031C1367 for ; Wed, 13 Dec 2023 02:15:08 +0000 (UTC) X-FDA: 81560177496.24.EE657A1 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.11]) by imf10.hostedemail.com (Postfix) with ESMTP id AE238C000A for ; Wed, 13 Dec 2023 02:15:05 +0000 (UTC) Authentication-Results: imf10.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=D1Q1TiIH; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf10.hostedemail.com: domain of lkp@intel.com designates 198.175.65.11 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1702433706; 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: references:dkim-signature; bh=bNH9c4fFzB0FVhCzQcOTakXEmLaBs97+kzpcBZhK4Js=; b=hChpEkC+XopAKtj8sF2j/7t8KahlKI8vzAPRrAuPHtOFKkBU0PStmPgOuZx19O6lMmgx+j AoBliDx7hiazKt9+cZhig1ot8bmW+5ZhTmt6NYDYmtMkZivwWNtXj1+eGEVNQsSrBGPLo/ ZFWgCYAd/qKpuUFqamdhN/3CzklWebs= ARC-Authentication-Results: i=1; imf10.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=D1Q1TiIH; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf10.hostedemail.com: domain of lkp@intel.com designates 198.175.65.11 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1702433706; a=rsa-sha256; cv=none; b=1IoY+Zi28jZpKXD8Yeffo+T+eiVdmJ7i+UZX4nL4GWAulVCy1HLGAs0NsvbcJh/3wmamro ktJHcuIH9H+g8qoIqJeFOK9m2zQ4jlZ79YYlbo8Ep+J0Nh9UmgSiQBQaKms4MFL+x7lI/o l8aA1+QeO7iZy/yQFqN7rZT8MiAVaZA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1702433706; x=1733969706; h=date:from:to:cc:subject:message-id:mime-version; bh=R3wPK74lI3isRxG8q1/3e0bayBSEhIqQESBOeWOeJcg=; b=D1Q1TiIHHIsijqfMOsE2NK45TPmnbPlc4mIiVuPLBMUmO4neRiojBL/Q Ehu/H6lqjHsrvr1kZiTaiLxLnvqmIHbUY3krDzR5NzoRSkLvyYcJGeOhZ KeGlLHkd3avmGYN0GTllfY9qE/vc70S4Jm0kTbxAqrTdrxeegI4L5nuX6 iEQ5hCPPUuteHvt+KgGd9QcatqOjB54wGXbMy8qk59j2a2mO5gQ6OnLBw 6Tf4xM3ym5lFjf2K+AgBIngZmJy7gvC4yJNMZ2E1v2MX2LEa+ueABrDCE osXWzIuT93od6oCvQx66RTQJkKpqa91Tydtuh66mAgThoD7swxPmtiWI8 A==; X-IronPort-AV: E=McAfee;i="6600,9927,10922"; a="1746345" X-IronPort-AV: E=Sophos;i="6.04,271,1695711600"; d="scan'208";a="1746345" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orvoesa103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Dec 2023 18:15:05 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10922"; a="897156722" X-IronPort-AV: E=Sophos;i="6.04,271,1695711600"; d="scan'208";a="897156722" Received: from lkp-server02.sh.intel.com (HELO b07ab15da5fe) ([10.239.97.151]) by orsmga004.jf.intel.com with ESMTP; 12 Dec 2023 18:15:01 -0800 Received: from kbuild by b07ab15da5fe with local (Exim 4.96) (envelope-from ) id 1rDElx-000K0F-2c; Wed, 13 Dec 2023 02:14:54 +0000 Date: Wed, 13 Dec 2023 10:14:50 +0800 From: kernel test robot To: Krzysztof Kozlowski Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, Andrew Morton , Linux Memory Management List , Geert Uytterhoeven , Arnd Bergmann Subject: drivers/uio/uio_aec.c:50:49: sparse: sparse: incorrect type in argument 1 (different address spaces) Message-ID: <202312131026.UI2RWnbl-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspam-User: X-Stat-Signature: bjqectnurhjpqaepd3dp7ogpfxi43bt1 X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: AE238C000A X-HE-Tag: 1702433705-939602 X-HE-Meta: U2FsdGVkX18NNJcxXGAk8qkd2RxGx1d+vnpmqBiOb2HsIJvnI0X8Btkgdvr3RnmpEAtlNTsxdNyWQ6YWuWw2SP6MNsdrJvxV1ri0akZ1IMqmaOTOM2No6DGUQk0zmApdvAxc2igitXwLl64wzgrvwWWJBjrFF8jaxF1bget6ijjxdgAOMsGEXOw+96dWe3O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UYTDN0LZ5NgatCLNHbVghyA6t61HIucSpprZ/W7Hp8kxx3AsLuGSDad9JqZ6QKfVswnMd+hONq5z9mkswj58VGrivy1WJh3dBxUtuOfGbJ4Lf+NMRtBL6xB3WzpaJQbvj3KQe9rz8L1Jl/3vgJlUYl3sE4vGv9RKHqci3HQPvEsVeYQpYOwJS4p+KWQ1lp/D6oC5GCak= 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: tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: cf52eed70e555e864120cfaf280e979e2a035c66 commit: 8f28ca6bd8211214faf717677bbffe375c2a6072 iomap: constify ioreadX() iomem argument (as in generic implementation) date: 3 years, 4 months ago config: i386-randconfig-061-20231101 (https://download.01.org/0day-ci/archive/20231213/202312131026.UI2RWnbl-lkp@intel.com/config) compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231213/202312131026.UI2RWnbl-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/202312131026.UI2RWnbl-lkp@intel.com/ sparse warnings: (new ones prefixed by >>) drivers/uio/uio_aec.c:44:49: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected void [noderef] __iomem *int_flag @@ got void * @@ drivers/uio/uio_aec.c:44:49: sparse: expected void [noderef] __iomem *int_flag drivers/uio/uio_aec.c:44:49: sparse: got void * >> drivers/uio/uio_aec.c:50:49: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const [noderef] __iomem * @@ got void * @@ drivers/uio/uio_aec.c:50:49: sparse: expected void const [noderef] __iomem * drivers/uio/uio_aec.c:50:49: sparse: got void * drivers/uio/uio_aec.c:59:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const [noderef] __iomem * @@ got void * @@ drivers/uio/uio_aec.c:59:9: sparse: expected void const [noderef] __iomem * drivers/uio/uio_aec.c:59:9: sparse: got void * drivers/uio/uio_aec.c:59:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const [noderef] __iomem * @@ got void * @@ drivers/uio/uio_aec.c:59:9: sparse: expected void const [noderef] __iomem * drivers/uio/uio_aec.c:59:9: sparse: got void * drivers/uio/uio_aec.c:59:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const [noderef] __iomem * @@ got void * @@ drivers/uio/uio_aec.c:59:9: sparse: expected void const [noderef] __iomem * drivers/uio/uio_aec.c:59:9: sparse: got void * drivers/uio/uio_aec.c:59:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const [noderef] __iomem * @@ got void * @@ drivers/uio/uio_aec.c:59:9: sparse: expected void const [noderef] __iomem * drivers/uio/uio_aec.c:59:9: sparse: got void * drivers/uio/uio_aec.c:59:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const [noderef] __iomem * @@ got void * @@ drivers/uio/uio_aec.c:59:9: sparse: expected void const [noderef] __iomem * drivers/uio/uio_aec.c:59:9: sparse: got void * drivers/uio/uio_aec.c:59:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const [noderef] __iomem * @@ got void * @@ drivers/uio/uio_aec.c:59:9: sparse: expected void const [noderef] __iomem * drivers/uio/uio_aec.c:59:9: sparse: got void * drivers/uio/uio_aec.c:88:20: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected void *priv @@ got void [noderef] __iomem * @@ drivers/uio/uio_aec.c:88:20: sparse: expected void *priv drivers/uio/uio_aec.c:88:20: sparse: got void [noderef] __iomem * drivers/uio/uio_aec.c:104:42: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem * @@ got void * @@ drivers/uio/uio_aec.c:104:42: sparse: expected void [noderef] __iomem * drivers/uio/uio_aec.c:104:42: sparse: got void * drivers/uio/uio_aec.c:105:43: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem * @@ got void * @@ drivers/uio/uio_aec.c:105:43: sparse: expected void [noderef] __iomem * drivers/uio/uio_aec.c:105:43: sparse: got void * drivers/uio/uio_aec.c:106:34: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const [noderef] __iomem * @@ got void * @@ drivers/uio/uio_aec.c:106:34: sparse: expected void const [noderef] __iomem * drivers/uio/uio_aec.c:106:34: sparse: got void * drivers/uio/uio_aec.c:115:31: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem * @@ got void *priv @@ drivers/uio/uio_aec.c:115:31: sparse: expected void [noderef] __iomem * drivers/uio/uio_aec.c:115:31: sparse: got void *priv drivers/uio/uio_aec.c:130:42: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem * @@ got void * @@ drivers/uio/uio_aec.c:130:42: sparse: expected void [noderef] __iomem * drivers/uio/uio_aec.c:130:42: sparse: got void * drivers/uio/uio_aec.c:131:43: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem * @@ got void * @@ drivers/uio/uio_aec.c:131:43: sparse: expected void [noderef] __iomem * drivers/uio/uio_aec.c:131:43: sparse: got void * drivers/uio/uio_aec.c:133:28: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const [noderef] __iomem * @@ got void * @@ drivers/uio/uio_aec.c:133:28: sparse: expected void const [noderef] __iomem * drivers/uio/uio_aec.c:133:28: sparse: got void * drivers/uio/uio_aec.c:138:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void *priv @@ drivers/uio/uio_aec.c:138:21: sparse: expected void volatile [noderef] __iomem *addr drivers/uio/uio_aec.c:138:21: sparse: got void *priv vim +50 drivers/uio/uio_aec.c 1bafeb378e915f Brandon Philips 2009-01-27 41 1bafeb378e915f Brandon Philips 2009-01-27 42 static irqreturn_t aectc_irq(int irq, struct uio_info *dev_info) 1bafeb378e915f Brandon Philips 2009-01-27 43 { 1bafeb378e915f Brandon Philips 2009-01-27 44 void __iomem *int_flag = dev_info->priv + INTA_DRVR_ADDR; 1bafeb378e915f Brandon Philips 2009-01-27 45 unsigned char status = ioread8(int_flag); 1bafeb378e915f Brandon Philips 2009-01-27 46 1bafeb378e915f Brandon Philips 2009-01-27 47 1bafeb378e915f Brandon Philips 2009-01-27 48 if ((status & INTA_ENABLED_FLAG) && (status & INTA_FLAG)) { 1bafeb378e915f Brandon Philips 2009-01-27 49 /* application writes 0x00 to 0x2F to get next interrupt */ 1bafeb378e915f Brandon Philips 2009-01-27 @50 status = ioread8(dev_info->priv + MAILBOX); 1bafeb378e915f Brandon Philips 2009-01-27 51 return IRQ_HANDLED; 1bafeb378e915f Brandon Philips 2009-01-27 52 } 1bafeb378e915f Brandon Philips 2009-01-27 53 1bafeb378e915f Brandon Philips 2009-01-27 54 return IRQ_NONE; 1bafeb378e915f Brandon Philips 2009-01-27 55 } 1bafeb378e915f Brandon Philips 2009-01-27 56 :::::: The code at line 50 was first introduced by commit :::::: 1bafeb378e915f39b1bf44ee0871823d6f402ea5 uio: add the uio_aec driver :::::: TO: Brandon Philips :::::: CC: Greg Kroah-Hartman -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki