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 DC110C197A0 for ; Fri, 17 Nov 2023 23:59:07 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 0C2256B053B; Fri, 17 Nov 2023 18:59:07 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 04D146B053D; Fri, 17 Nov 2023 18:59:06 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id E2E416B053E; Fri, 17 Nov 2023 18:59:06 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id C76B96B053B for ; Fri, 17 Nov 2023 18:59:06 -0500 (EST) Received: from smtpin30.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 888ACA0CB0 for ; Fri, 17 Nov 2023 23:59:06 +0000 (UTC) X-FDA: 81469114692.30.A746A92 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.88]) by imf27.hostedemail.com (Postfix) with ESMTP id 7F02640014 for ; Fri, 17 Nov 2023 23:59:03 +0000 (UTC) Authentication-Results: imf27.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=dqQSYwME; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf27.hostedemail.com: domain of lkp@intel.com designates 192.55.52.88 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=1700265544; 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=uWwSTrm8EAtEEreyMrcDl2foRqXp612ovbSug8cNa+4=; b=Gi/lFiF6sKL8NnKspSlXhB4u8izkcuhX73FvnRz57AY0FvvqgwDqAS6bH5jUZat4jy+bqG qFTW7+7Jf6nghlgI53AunwIjtxHaBG0vPfk1q2vfSYZOwmro/PivMrFPnw/vwzYGmGZmDE Oefw9ZH4F2IiSxOqSrqzr1oYdf5lMzM= ARC-Authentication-Results: i=1; imf27.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=dqQSYwME; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf27.hostedemail.com: domain of lkp@intel.com designates 192.55.52.88 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1700265544; a=rsa-sha256; cv=none; b=R+jATXMDfXpj1ZI95/obRF8jE7+yUD/fsbrQQju7MsBKcmzNrkwRBjNcJJQUK8klf6ioad TPpr0u8VvpVEpk70xdQ8BOYRjbroviIwLBS9k6OX21EgzvU1a7o+QsFfBMuIepY+p7e0QF hFum4e7Kk0zA3yjEc4L+A/17m0Ru39w= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1700265543; x=1731801543; h=date:from:to:cc:subject:message-id:mime-version; bh=HwY6nsLLE0cFQbiAF3NYHbRTmkZOKT1Cc53pBEar+LQ=; b=dqQSYwMEHV86Yxi73MWLd9BJGVROMMYHjf+EDbp/GjLjq5QXlXvWn7o6 60koPaGKIz9vlmpPuWKC6MDXfK/5YbWyyrFlHF6Ovgg6nSQVq/FPOn32v lGwTOffRGvCwtuqRMkOpQVljyc9P4bpmIKf26b4AZeVGZxFceEbssLL1y iwHaxkPxAdH5ij386XyDqh/yCHYFJitG80E2NXud/0rvTk/yeeylScyo6 8xVKOog/Yy3GCkehwHEGNdEYBTw/F75qgvaZPrfhUjFnJtdsSiUUYocCR wSPhOygb6PVYcwWvE2dmq/frkL9bOnHXSjpZzUA8hSKp/ISI12s+6nTLk A==; X-IronPort-AV: E=McAfee;i="6600,9927,10897"; a="422481887" X-IronPort-AV: E=Sophos;i="6.04,206,1695711600"; d="scan'208";a="422481887" Received: from orviesa001.jf.intel.com ([10.64.159.141]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Nov 2023 15:59:02 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.04,206,1695711600"; d="scan'208";a="13628607" Received: from lkp-server02.sh.intel.com (HELO b8de5498638e) ([10.239.97.151]) by orviesa001.jf.intel.com with ESMTP; 17 Nov 2023 15:59:00 -0800 Received: from kbuild by b8de5498638e with local (Exim 4.96) (envelope-from ) id 1r48jg-0003Jr-37; Fri, 17 Nov 2023 23:58:57 +0000 Date: Sat, 18 Nov 2023 07:58:20 +0800 From: kernel test robot To: Marco Elver Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, Andrew Morton , Linux Memory Management List Subject: drivers/video/fbdev/atmel_lcdfb.c:342:9: sparse: sparse: incorrect type in argument 1 (different address spaces) Message-ID: <202311180713.L5rLtmbc-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspamd-Queue-Id: 7F02640014 X-Rspam-User: X-Rspamd-Server: rspam05 X-Stat-Signature: c1sok5dda439wn5o4a3mcgn4k4pwq9dd X-HE-Tag: 1700265543-187045 X-HE-Meta: U2FsdGVkX1+Mo7hc0aqdrJyswivgcj+R2Vbs/1ABeZH1jOWRT7tnrnGk7AjbO2IHgKcD2dg0BiC4/V7tdeBAcM67pQw585UxKABwEZb2Ts5RyfMGXPN0V1fM8IEQEqgXXR1W7B73fmzMTD/HW3owI6mVh0GWWn3dXLGAw8mhQlMr804KSRz/NeeQBPqQ0zk3hKkMYwSF/hXg8uXauCl9pEnZqoEOhPbQgK+LBGzQrRO+1RKHwNPnAQH8tnyj0e2aS5S8q5gaeeeD4G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/GcbQxv8hyHPrMwZDbBctmU713JR5zKNFDuqe/LcDG+tQXf8ZVVPl4hF+4xK50PKpdx45BBgtCOUcyvQzPrRkus0QIekLFFntJ20+CKYxiDsRsB2j/7G0xORhoqehbrwQBfzaq3w== 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: 6bc40e44f1ddef16a787f3501b97f1fff909177c commit: 90db9dbedd26ce029f3a0f8d2cbd3a142f452408 kasan, powerpc: don't rename memintrinsics if compiler adds prefixes date: 8 months ago config: powerpc-randconfig-r132-20231117 (https://download.01.org/0day-ci/archive/20231118/202311180713.L5rLtmbc-lkp@intel.com/config) compiler: powerpc-linux-gcc (GCC) 13.2.0 reproduce: (https://download.01.org/0day-ci/archive/20231118/202311180713.L5rLtmbc-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/202311180713.L5rLtmbc-lkp@intel.com/ sparse warnings: (new ones prefixed by >>) drivers/video/fbdev/atmel_lcdfb.c:334:27: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected char [noderef] __iomem *screen_base @@ got void * @@ drivers/video/fbdev/atmel_lcdfb.c:334:27: sparse: expected char [noderef] __iomem *screen_base drivers/video/fbdev/atmel_lcdfb.c:334:27: sparse: got void * drivers/video/fbdev/atmel_lcdfb.c:342:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const * @@ got char [noderef] __iomem *screen_base @@ drivers/video/fbdev/atmel_lcdfb.c:342:9: sparse: expected void const * drivers/video/fbdev/atmel_lcdfb.c:342:9: sparse: got char [noderef] __iomem *screen_base drivers/video/fbdev/atmel_lcdfb.c:342:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const * @@ got char [noderef] __iomem *screen_base @@ drivers/video/fbdev/atmel_lcdfb.c:342:9: sparse: expected void const * drivers/video/fbdev/atmel_lcdfb.c:342:9: sparse: got char [noderef] __iomem *screen_base >> drivers/video/fbdev/atmel_lcdfb.c:342:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *p @@ got char [noderef] __iomem *screen_base @@ drivers/video/fbdev/atmel_lcdfb.c:342:9: sparse: expected void *p drivers/video/fbdev/atmel_lcdfb.c:342:9: sparse: got char [noderef] __iomem *screen_base drivers/video/fbdev/atmel_lcdfb.c: note: in included file (through include/linux/mmzone.h, include/linux/gfp.h, include/linux/xarray.h, ...): include/linux/page-flags.h:246:46: sparse: sparse: self-comparison always evaluates to false drivers/video/fbdev/atmel_lcdfb.c:313:59: sparse: sparse: incorrect type in argument 3 (different address spaces) @@ expected void *cpu_addr @@ got char [noderef] __iomem *screen_base @@ drivers/video/fbdev/atmel_lcdfb.c:313:59: sparse: expected void *cpu_addr drivers/video/fbdev/atmel_lcdfb.c:313:59: sparse: got char [noderef] __iomem *screen_base drivers/video/fbdev/atmel_lcdfb.c:313:59: sparse: sparse: incorrect type in argument 3 (different address spaces) @@ expected void *cpu_addr @@ got char [noderef] __iomem *screen_base @@ drivers/video/fbdev/atmel_lcdfb.c:313:59: sparse: expected void *cpu_addr drivers/video/fbdev/atmel_lcdfb.c:313:59: sparse: got char [noderef] __iomem *screen_base -- drivers/mtd/nand/raw/hisi504_nand.c:362:26: sparse: sparse: cast removes address space '__iomem' of expression drivers/mtd/nand/raw/hisi504_nand.c:367:26: sparse: sparse: cast removes address space '__iomem' of expression drivers/mtd/nand/raw/hisi504_nand.c:465:17: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const * @@ got void [noderef] __iomem *mmio @@ drivers/mtd/nand/raw/hisi504_nand.c:465:17: sparse: expected void const * drivers/mtd/nand/raw/hisi504_nand.c:465:17: sparse: got void [noderef] __iomem *mmio drivers/mtd/nand/raw/hisi504_nand.c:465:17: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const * @@ got void [noderef] __iomem *mmio @@ drivers/mtd/nand/raw/hisi504_nand.c:465:17: sparse: expected void const * drivers/mtd/nand/raw/hisi504_nand.c:465:17: sparse: got void [noderef] __iomem *mmio >> drivers/mtd/nand/raw/hisi504_nand.c:465:17: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *p @@ got void [noderef] __iomem *mmio @@ drivers/mtd/nand/raw/hisi504_nand.c:465:17: sparse: expected void *p drivers/mtd/nand/raw/hisi504_nand.c:465:17: sparse: got void [noderef] __iomem *mmio drivers/mtd/nand/raw/hisi504_nand.c:477:17: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const * @@ got void [noderef] __iomem *mmio @@ drivers/mtd/nand/raw/hisi504_nand.c:477:17: sparse: expected void const * drivers/mtd/nand/raw/hisi504_nand.c:477:17: sparse: got void [noderef] __iomem *mmio drivers/mtd/nand/raw/hisi504_nand.c:477:17: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const * @@ got void [noderef] __iomem *mmio @@ drivers/mtd/nand/raw/hisi504_nand.c:477:17: sparse: expected void const * drivers/mtd/nand/raw/hisi504_nand.c:477:17: sparse: got void [noderef] __iomem *mmio drivers/mtd/nand/raw/hisi504_nand.c:477:17: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *p @@ got void [noderef] __iomem *mmio @@ drivers/mtd/nand/raw/hisi504_nand.c:477:17: sparse: expected void *p drivers/mtd/nand/raw/hisi504_nand.c:477:17: sparse: got void [noderef] __iomem *mmio drivers/mtd/nand/raw/hisi504_nand.c:603:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const * @@ got void [noderef] __iomem *mmio @@ drivers/mtd/nand/raw/hisi504_nand.c:603:9: sparse: expected void const * drivers/mtd/nand/raw/hisi504_nand.c:603:9: sparse: got void [noderef] __iomem *mmio drivers/mtd/nand/raw/hisi504_nand.c:603:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const * @@ got void [noderef] __iomem *mmio @@ drivers/mtd/nand/raw/hisi504_nand.c:603:9: sparse: expected void const * drivers/mtd/nand/raw/hisi504_nand.c:603:9: sparse: got void [noderef] __iomem *mmio drivers/mtd/nand/raw/hisi504_nand.c:603:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *p @@ got void [noderef] __iomem *mmio @@ drivers/mtd/nand/raw/hisi504_nand.c:603:9: sparse: expected void *p drivers/mtd/nand/raw/hisi504_nand.c:603:9: sparse: got void [noderef] __iomem *mmio drivers/mtd/nand/raw/hisi504_nand.c: note: in included file (through include/linux/mmzone.h, include/linux/gfp.h, include/linux/xarray.h, ...): include/linux/page-flags.h:246:46: sparse: sparse: self-comparison always evaluates to false vim +342 drivers/video/fbdev/atmel_lcdfb.c 14340586148e7c drivers/video/atmel_lcdfb.c Nicolas Ferre 2007-05-10 316 14340586148e7c drivers/video/atmel_lcdfb.c Nicolas Ferre 2007-05-10 317 /** 14340586148e7c drivers/video/atmel_lcdfb.c Nicolas Ferre 2007-05-10 318 * atmel_lcdfb_alloc_video_memory - Allocate framebuffer memory 14340586148e7c drivers/video/atmel_lcdfb.c Nicolas Ferre 2007-05-10 319 * @sinfo: the frame buffer to allocate memory for 1d01e83557105e drivers/video/atmel_lcdfb.c Krzysztof Helt 2009-07-08 320 * 1d01e83557105e drivers/video/atmel_lcdfb.c Krzysztof Helt 2009-07-08 321 * This function is called only from the atmel_lcdfb_probe() 1d01e83557105e drivers/video/atmel_lcdfb.c Krzysztof Helt 2009-07-08 322 * so no locking by fb_info->mm_lock around smem_len setting is needed. 14340586148e7c drivers/video/atmel_lcdfb.c Nicolas Ferre 2007-05-10 323 */ 14340586148e7c drivers/video/atmel_lcdfb.c Nicolas Ferre 2007-05-10 324 static int atmel_lcdfb_alloc_video_memory(struct atmel_lcdfb_info *sinfo) 14340586148e7c drivers/video/atmel_lcdfb.c Nicolas Ferre 2007-05-10 325 { 14340586148e7c drivers/video/atmel_lcdfb.c Nicolas Ferre 2007-05-10 326 struct fb_info *info = sinfo->info; 14340586148e7c drivers/video/atmel_lcdfb.c Nicolas Ferre 2007-05-10 327 struct fb_var_screeninfo *var = &info->var; ea757acad5a518 drivers/video/atmel_lcdfb.c Haavard Skinnemoen 2008-08-12 328 unsigned int smem_len; 14340586148e7c drivers/video/atmel_lcdfb.c Nicolas Ferre 2007-05-10 329 ea757acad5a518 drivers/video/atmel_lcdfb.c Haavard Skinnemoen 2008-08-12 330 smem_len = (var->xres_virtual * var->yres_virtual 14340586148e7c drivers/video/atmel_lcdfb.c Nicolas Ferre 2007-05-10 331 * ((var->bits_per_pixel + 7) / 8)); ea757acad5a518 drivers/video/atmel_lcdfb.c Haavard Skinnemoen 2008-08-12 332 info->fix.smem_len = max(smem_len, sinfo->smem_len); 14340586148e7c drivers/video/atmel_lcdfb.c Nicolas Ferre 2007-05-10 333 f6e45661f9be54 drivers/video/fbdev/atmel_lcdfb.c Luis R. Rodriguez 2016-01-22 334 info->screen_base = dma_alloc_wc(info->device, info->fix.smem_len, f6e45661f9be54 drivers/video/fbdev/atmel_lcdfb.c Luis R. Rodriguez 2016-01-22 335 (dma_addr_t *)&info->fix.smem_start, f6e45661f9be54 drivers/video/fbdev/atmel_lcdfb.c Luis R. Rodriguez 2016-01-22 336 GFP_KERNEL); 14340586148e7c drivers/video/atmel_lcdfb.c Nicolas Ferre 2007-05-10 337 14340586148e7c drivers/video/atmel_lcdfb.c Nicolas Ferre 2007-05-10 338 if (!info->screen_base) { 14340586148e7c drivers/video/atmel_lcdfb.c Nicolas Ferre 2007-05-10 339 return -ENOMEM; 14340586148e7c drivers/video/atmel_lcdfb.c Nicolas Ferre 2007-05-10 340 } 14340586148e7c drivers/video/atmel_lcdfb.c Nicolas Ferre 2007-05-10 341 01d3a5e7fab773 drivers/video/atmel_lcdfb.c Haavard Skinnemoen 2008-04-28 @342 memset(info->screen_base, 0, info->fix.smem_len); 01d3a5e7fab773 drivers/video/atmel_lcdfb.c Haavard Skinnemoen 2008-04-28 343 14340586148e7c drivers/video/atmel_lcdfb.c Nicolas Ferre 2007-05-10 344 return 0; 14340586148e7c drivers/video/atmel_lcdfb.c Nicolas Ferre 2007-05-10 345 } 14340586148e7c drivers/video/atmel_lcdfb.c Nicolas Ferre 2007-05-10 346 :::::: The code at line 342 was first introduced by commit :::::: 01d3a5e7fab7732cfc5d5d4533e9378ea435295a atmel_lcdfb: don't initialize a pre-allocated framebuffer :::::: TO: Haavard Skinnemoen :::::: CC: Linus Torvalds -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki