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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9E78CC4167B for ; Sun, 10 Dec 2023 10:00:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231765AbjLJJjh (ORCPT ); Sun, 10 Dec 2023 04:39:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46388 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231696AbjLJJjf (ORCPT ); Sun, 10 Dec 2023 04:39:35 -0500 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.7]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D361BCB for ; Sun, 10 Dec 2023 01:39:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1702201182; x=1733737182; h=date:from:to:cc:subject:message-id:mime-version; bh=m3ohfLZN27Ga1Wyw+Qwlsc99w+gBsI1CBD63mYwu0Co=; b=EacFtnHoGfwv4FuAB/DlbRI3ucH4aSmAmQmjFPEKw4yrHEGytHXWGAG/ BRraaCAttLWeCtxivpkyXSgtt6LCJubeCoA7SmJheFEBEg+y01IWI8HoD JvQjwKZ4WNE5aARzVvF/xbSAuDSDCPVYcC7sn4rbvVmiXPeYmu/tPpqCZ viVRgsWiIxNRYsXJCBR4pMqugoZKFIAkQ7Fnl0CCbyAG3xZmDVOeGD/uk Kqx4B0cz92GiQ84SSCPCtc1ErEWHQMfc388hnrczjkiK4BF8v3isjo+z1 4CTFcyzOsAggTE6W1DLU0HiaGnZQJJnizUC3m+GlDTZCyCcNVeDr5kD4j g==; X-IronPort-AV: E=McAfee;i="6600,9927,10919"; a="16096684" X-IronPort-AV: E=Sophos;i="6.04,265,1695711600"; d="scan'208";a="16096684" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmvoesa101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Dec 2023 01:39:41 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10919"; a="765979927" X-IronPort-AV: E=Sophos;i="6.04,265,1695711600"; d="scan'208";a="765979927" Received: from lkp-server02.sh.intel.com (HELO b07ab15da5fe) ([10.239.97.151]) by orsmga007.jf.intel.com with ESMTP; 10 Dec 2023 01:39:38 -0800 Received: from kbuild by b07ab15da5fe with local (Exim 4.96) (envelope-from ) id 1rCGHg-000Gfk-1S; Sun, 10 Dec 2023 09:39:36 +0000 Date: Sun, 10 Dec 2023 17:39:19 +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: <202312101757.CMITvKFp-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: c527f5606aa545233a4d2c6d5c636ed82b8633ef commit: 8f28ca6bd8211214faf717677bbffe375c2a6072 iomap: constify ioreadX() iomem argument (as in generic implementation) date: 3 years, 4 months ago config: parisc-randconfig-m041-20230821 (https://download.01.org/0day-ci/archive/20231210/202312101757.CMITvKFp-lkp@intel.com/config) compiler: hppa-linux-gcc (GCC) 12.3.0 reproduce: (https://download.01.org/0day-ci/archive/20231210/202312101757.CMITvKFp-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/202312101757.CMITvKFp-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 const volatile [noderef] __iomem *addr @@ got void *priv @@ drivers/uio/uio_aec.c:138:21: sparse: expected void const 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