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 2E05CC4167B for ; Fri, 8 Dec 2023 00:17:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235730AbjLHARm (ORCPT ); Thu, 7 Dec 2023 19:17:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47000 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235816AbjLHARR (ORCPT ); Thu, 7 Dec 2023 19:17:17 -0500 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 20B821FD8 for ; Thu, 7 Dec 2023 16:16:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1701994614; x=1733530614; h=date:from:to:cc:subject:message-id:mime-version; bh=GmNtcnIA/48rpg6fqjvhaVRjnT8lxRZsbxeYWQdBPdQ=; b=oB2BmM+4Bx41vP23RTu13Le+CXrXWmFICOQ18sl+MWe1T9pZy/Vy+L9m uC5w7L4g8Eau9EqntaVfpep7wJaYlNImQoS7Ha8+VQCyIOC+CztSq57FY 0g9/B+OdjW6hoix2Xh+0A6Bm+NvMQYXGtsGegZl/7hgZflZKbLEwvAyfA eoZG6od1CjQkRneSt6m4ZwqLp/dqOh2gThO3V3nBzE2y2RrVPcGPZyYLz 460lPbOAGou4np1A3Sj8+FrwfFVPNlSF2Ohxa3ENcVkhBOqtmTkvAOaJ9 N8NSdi4CkOUQVfELFaSaikrI1q4sBPAUu2EfbRKOvWW4z5z9mN2xDg4Y0 A==; X-IronPort-AV: E=McAfee;i="6600,9927,10917"; a="397117738" X-IronPort-AV: E=Sophos;i="6.04,259,1695711600"; d="scan'208";a="397117738" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Dec 2023 16:16:53 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10917"; a="862677879" X-IronPort-AV: E=Sophos;i="6.04,259,1695711600"; d="scan'208";a="862677879" Received: from lkp-server02.sh.intel.com (HELO b07ab15da5fe) ([10.239.97.151]) by FMSMGA003.fm.intel.com with ESMTP; 07 Dec 2023 16:16:52 -0800 Received: from kbuild by b07ab15da5fe with local (Exim 4.96) (envelope-from ) id 1rBOXx-000D14-28; Fri, 08 Dec 2023 00:16:49 +0000 Date: Fri, 8 Dec 2023 08:16:41 +0800 From: kernel test robot To: Arnd Bergmann Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org Subject: drivers/video/fbdev/omap/lcdc.c:642:23: sparse: sparse: incorrect type in assignment (different address spaces) Message-ID: <202312080851.QH738juG-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: 9ace34a8e446c1a566f3b0a3e0c4c483987e39a6 commit: 804f7f19c2e2928aeb8eafef8379fe8b8d13f98b fbdev: omap: avoid using mach/*.h files date: 1 year, 8 months ago config: arm-randconfig-r131-20231117 (https://download.01.org/0day-ci/archive/20231208/202312080851.QH738juG-lkp@intel.com/config) compiler: arm-linux-gnueabi-gcc (GCC) 13.2.0 reproduce: (https://download.01.org/0day-ci/archive/20231208/202312080851.QH738juG-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/202312080851.QH738juG-lkp@intel.com/ sparse warnings: (new ones prefixed by >>) >> drivers/video/fbdev/omap/lcdc.c:642:23: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected void [noderef] __iomem *vaddr @@ got void *static [addressable] [assigned] [toplevel] vram_virt @@ drivers/video/fbdev/omap/lcdc.c:642:23: sparse: expected void [noderef] __iomem *vaddr drivers/video/fbdev/omap/lcdc.c:642:23: sparse: got void *static [addressable] [assigned] [toplevel] vram_virt drivers/video/fbdev/omap/lcdc.c: note: in included file (through include/linux/mmzone.h, include/linux/gfp.h, include/linux/umh.h, include/linux/kmod.h, ...): include/linux/page-flags.h:258:46: sparse: sparse: self-comparison always evaluates to false -- >> drivers/video/fbdev/omap/lcd_mipid.c:451:23: sparse: sparse: cast to restricted __be32 drivers/video/fbdev/omap/lcd_mipid.c: note: in included file (through include/linux/mmzone.h, include/linux/gfp.h, include/linux/radix-tree.h, ...): include/linux/page-flags.h:258:46: sparse: sparse: self-comparison always evaluates to false -- >> drivers/video/fbdev/omap/omapfb_main.c:1027:11: sparse: sparse: cast removes address space '__iomem' of expression drivers/video/fbdev/omap/omapfb_main.c: note: in included file (through include/linux/mmzone.h, include/linux/gfp.h, include/linux/radix-tree.h, ...): include/linux/page-flags.h:258:46: sparse: sparse: self-comparison always evaluates to false vim +642 drivers/video/fbdev/omap/lcdc.c 569755c706f0f9 drivers/video/omap/lcdc.c Imre Deak 2007-07-17 620 569755c706f0f9 drivers/video/omap/lcdc.c Imre Deak 2007-07-17 621 static int alloc_fbmem(struct omapfb_mem_region *region) 569755c706f0f9 drivers/video/omap/lcdc.c Imre Deak 2007-07-17 622 { 569755c706f0f9 drivers/video/omap/lcdc.c Imre Deak 2007-07-17 623 int bpp; 569755c706f0f9 drivers/video/omap/lcdc.c Imre Deak 2007-07-17 624 int frame_size; 569755c706f0f9 drivers/video/omap/lcdc.c Imre Deak 2007-07-17 625 struct lcd_panel *panel = lcdc.fbdev->panel; 569755c706f0f9 drivers/video/omap/lcdc.c Imre Deak 2007-07-17 626 569755c706f0f9 drivers/video/omap/lcdc.c Imre Deak 2007-07-17 627 bpp = panel->bpp; 569755c706f0f9 drivers/video/omap/lcdc.c Imre Deak 2007-07-17 628 if (bpp == 12) 569755c706f0f9 drivers/video/omap/lcdc.c Imre Deak 2007-07-17 629 bpp = 16; 569755c706f0f9 drivers/video/omap/lcdc.c Imre Deak 2007-07-17 630 frame_size = PAGE_ALIGN(panel->x_res * bpp / 8 * panel->y_res); 569755c706f0f9 drivers/video/omap/lcdc.c Imre Deak 2007-07-17 631 if (region->size > frame_size) 569755c706f0f9 drivers/video/omap/lcdc.c Imre Deak 2007-07-17 632 frame_size = region->size; 569755c706f0f9 drivers/video/omap/lcdc.c Imre Deak 2007-07-17 633 lcdc.vram_size = frame_size; f6e45661f9be54 drivers/video/fbdev/omap/lcdc.c Luis R. Rodriguez 2016-01-22 634 lcdc.vram_virt = dma_alloc_wc(lcdc.fbdev->dev, lcdc.vram_size, f6e45661f9be54 drivers/video/fbdev/omap/lcdc.c Luis R. Rodriguez 2016-01-22 635 &lcdc.vram_phys, GFP_KERNEL); 569755c706f0f9 drivers/video/omap/lcdc.c Imre Deak 2007-07-17 636 if (lcdc.vram_virt == NULL) { 569755c706f0f9 drivers/video/omap/lcdc.c Imre Deak 2007-07-17 637 dev_err(lcdc.fbdev->dev, "unable to allocate FB DMA memory\n"); 569755c706f0f9 drivers/video/omap/lcdc.c Imre Deak 2007-07-17 638 return -ENOMEM; 569755c706f0f9 drivers/video/omap/lcdc.c Imre Deak 2007-07-17 639 } 569755c706f0f9 drivers/video/omap/lcdc.c Imre Deak 2007-07-17 640 region->size = frame_size; 569755c706f0f9 drivers/video/omap/lcdc.c Imre Deak 2007-07-17 641 region->paddr = lcdc.vram_phys; 569755c706f0f9 drivers/video/omap/lcdc.c Imre Deak 2007-07-17 @642 region->vaddr = lcdc.vram_virt; 569755c706f0f9 drivers/video/omap/lcdc.c Imre Deak 2007-07-17 643 region->alloc = 1; 569755c706f0f9 drivers/video/omap/lcdc.c Imre Deak 2007-07-17 644 569755c706f0f9 drivers/video/omap/lcdc.c Imre Deak 2007-07-17 645 memset(lcdc.vram_virt, 0, lcdc.vram_size); 569755c706f0f9 drivers/video/omap/lcdc.c Imre Deak 2007-07-17 646 569755c706f0f9 drivers/video/omap/lcdc.c Imre Deak 2007-07-17 647 return 0; 569755c706f0f9 drivers/video/omap/lcdc.c Imre Deak 2007-07-17 648 } 569755c706f0f9 drivers/video/omap/lcdc.c Imre Deak 2007-07-17 649 :::::: The code at line 642 was first introduced by commit :::::: 569755c706f0f94409edd2ae60b9878cb420844f OMAP: add TI OMAP1 internal LCD controller :::::: TO: Imre Deak :::::: CC: Linus Torvalds -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki