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 D0938C433EF for ; Tue, 25 Jan 2022 19:18:20 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 6883F6B007D; Tue, 25 Jan 2022 14:18:20 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 6366D6B0080; Tue, 25 Jan 2022 14:18:20 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 4FE706B0081; Tue, 25 Jan 2022 14:18:20 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0037.hostedemail.com [216.40.44.37]) by kanga.kvack.org (Postfix) with ESMTP id 42CD96B007D for ; Tue, 25 Jan 2022 14:18:20 -0500 (EST) Received: from smtpin28.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id EFFDB95272 for ; Tue, 25 Jan 2022 19:18:19 +0000 (UTC) X-FDA: 79069770360.28.D3830C5 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by imf08.hostedemail.com (Postfix) with ESMTP id 1BEDE16000F for ; Tue, 25 Jan 2022 19:18:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1643138299; x=1674674299; h=date:from:to:cc:subject:message-id:mime-version; bh=yy+s2KW8nfWkioi07vxXQSqOdj9u9CJq5qvlnzqDYbM=; b=FdOz5VOxpnvC22T/EexxfBn1Z+EJnbrqayyf5MSUEzqS+HwvUOlUweWz MTFHK7mhFfREdk2mD+pcwtUYINHauxB6+0SZaEmRPRa/dnvbXxnDNP+if A2sJVhrhpesG9Wdm41wu/GAvO5n3hOdMELYrq9Auy27zGEWTxvwVy08qq s9xI5H4+wo21Yr5YaYg1UNaKXrn7BGuFGDMQPHU5lBpC9qpSh3Oqrkvck wLj7F3XOzQxODeSfzZKatHLEZi6Ox1dWp6jDfQifKQ1wF9IiE7NtAJsO0 JvQA43mObrkj+an2GSsi6ONaNbY82I82jTCTN+mYK5d7QFj0PFbLi2w7E A==; X-IronPort-AV: E=McAfee;i="6200,9189,10238"; a="226370724" X-IronPort-AV: E=Sophos;i="5.88,315,1635231600"; d="scan'208";a="226370724" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Jan 2022 11:18:17 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,315,1635231600"; d="scan'208";a="766886509" Received: from lkp-server01.sh.intel.com (HELO 276f1b88eecb) ([10.239.97.150]) by fmsmga006.fm.intel.com with ESMTP; 25 Jan 2022 11:18:16 -0800 Received: from kbuild by 276f1b88eecb with local (Exim 4.92) (envelope-from ) id 1nCRKZ-000KM6-UC; Tue, 25 Jan 2022 19:18:15 +0000 Date: Wed, 26 Jan 2022 03:17:49 +0800 From: kernel test robot To: Kees Cook Cc: kbuild-all@lists.01.org, Linux Memory Management List Subject: [linux-next:master 1564/1734] drivers/video/fbdev/sstfb.c:337:9: sparse: sparse: incorrect type in argument 1 (different address spaces) Message-ID: <202201260223.8zuM2m4N-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: 1BEDE16000F X-Rspam-User: nil Authentication-Results: imf08.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=FdOz5VOx; dmarc=pass (policy=none) header.from=intel.com; spf=none (imf08.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 192.55.52.136) smtp.mailfrom=lkp@intel.com X-Stat-Signature: e4sqfhxq3p9n69mgaewg3m5scjr3hcjr X-HE-Tag: 1643138298-867026 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: tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: d25ee88530253138d0b20d43511ca5acbda4e9f7 commit: 6f6f253efa1346fb0b7206c0361428aadbb22e08 [1564/1734] fortify: Detect struct member overflows in memset() at compile-time config: s390-randconfig-s031-20220124 (https://download.01.org/0day-ci/archive/20220126/202201260223.8zuM2m4N-lkp@intel.com/config) compiler: s390-linux-gcc (GCC) 11.2.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # apt-get install sparse # sparse version: v0.6.4-dirty # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=6f6f253efa1346fb0b7206c0361428aadbb22e08 git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git git fetch --no-tags linux-next master git checkout 6f6f253efa1346fb0b7206c0361428aadbb22e08 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=s390 SHELL=/bin/bash drivers/mtd/nand/raw/ drivers/video/fbdev/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot sparse warnings: (new ones prefixed by >>) >> drivers/video/fbdev/sstfb.c:337:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const * @@ got char [noderef] __iomem *screen_base @@ drivers/video/fbdev/sstfb.c:337:9: sparse: expected void const * drivers/video/fbdev/sstfb.c:337:9: sparse: got char [noderef] __iomem *screen_base >> drivers/video/fbdev/sstfb.c:337:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const * @@ got char [noderef] __iomem *screen_base @@ drivers/video/fbdev/sstfb.c:337:9: sparse: expected void const * drivers/video/fbdev/sstfb.c:337:9: sparse: got char [noderef] __iomem *screen_base drivers/video/fbdev/sstfb.c:337:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void * @@ got char [noderef] __iomem *screen_base @@ drivers/video/fbdev/sstfb.c:337:9: sparse: expected void * drivers/video/fbdev/sstfb.c:337:9: sparse: got char [noderef] __iomem *screen_base -- >> drivers/video/fbdev/i740fb.c:743:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const * @@ got char [noderef] __iomem *screen_base @@ drivers/video/fbdev/i740fb.c:743:9: sparse: expected void const * drivers/video/fbdev/i740fb.c:743:9: sparse: got char [noderef] __iomem *screen_base >> drivers/video/fbdev/i740fb.c:743:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const * @@ got char [noderef] __iomem *screen_base @@ drivers/video/fbdev/i740fb.c:743:9: sparse: expected void const * drivers/video/fbdev/i740fb.c:743:9: sparse: got char [noderef] __iomem *screen_base drivers/video/fbdev/i740fb.c:743:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void * @@ got char [noderef] __iomem *screen_base @@ drivers/video/fbdev/i740fb.c:743:9: sparse: expected void * drivers/video/fbdev/i740fb.c:743:9: sparse: got char [noderef] __iomem *screen_base -- >> drivers/video/fbdev/tdfxfb.c:1118:17: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const * @@ got unsigned char [noderef] [usertype] __iomem *cursorbase @@ drivers/video/fbdev/tdfxfb.c:1118:17: sparse: expected void const * drivers/video/fbdev/tdfxfb.c:1118:17: sparse: got unsigned char [noderef] [usertype] __iomem *cursorbase >> drivers/video/fbdev/tdfxfb.c:1118:17: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const * @@ got unsigned char [noderef] [usertype] __iomem *cursorbase @@ drivers/video/fbdev/tdfxfb.c:1118:17: sparse: expected void const * drivers/video/fbdev/tdfxfb.c:1118:17: sparse: got unsigned char [noderef] [usertype] __iomem *cursorbase drivers/video/fbdev/tdfxfb.c:1118:17: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void * @@ got unsigned char [noderef] [usertype] __iomem *cursorbase @@ drivers/video/fbdev/tdfxfb.c:1118:17: sparse: expected void * drivers/video/fbdev/tdfxfb.c:1118:17: sparse: got unsigned char [noderef] [usertype] __iomem *cursorbase drivers/video/fbdev/tdfxfb.c:1129:33: sparse: sparse: cast removes address space '__iomem' of expression drivers/video/fbdev/tdfxfb.c:1132:33: sparse: sparse: cast removes address space '__iomem' of expression -- 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 * @@ got void [noderef] __iomem *mmio @@ drivers/mtd/nand/raw/hisi504_nand.c:465:17: sparse: expected void * 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 * @@ got void [noderef] __iomem *mmio @@ drivers/mtd/nand/raw/hisi504_nand.c:477:17: sparse: expected void * 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 * @@ got void [noderef] __iomem *mmio @@ drivers/mtd/nand/raw/hisi504_nand.c:603:9: sparse: expected void * drivers/mtd/nand/raw/hisi504_nand.c:603:9: sparse: got void [noderef] __iomem *mmio -- >> drivers/video/fbdev/aty/mach64_cursor.c:156:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const * @@ got unsigned char [noderef] [usertype] __iomem *dst @@ drivers/video/fbdev/aty/mach64_cursor.c:156:13: sparse: expected void const * drivers/video/fbdev/aty/mach64_cursor.c:156:13: sparse: got unsigned char [noderef] [usertype] __iomem *dst >> drivers/video/fbdev/aty/mach64_cursor.c:156:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const * @@ got unsigned char [noderef] [usertype] __iomem *dst @@ drivers/video/fbdev/aty/mach64_cursor.c:156:13: sparse: expected void const * drivers/video/fbdev/aty/mach64_cursor.c:156:13: sparse: got unsigned char [noderef] [usertype] __iomem *dst drivers/video/fbdev/aty/mach64_cursor.c:156:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void * @@ got unsigned char [noderef] [usertype] __iomem *dst @@ drivers/video/fbdev/aty/mach64_cursor.c:156:13: sparse: expected void * drivers/video/fbdev/aty/mach64_cursor.c:156:13: sparse: got unsigned char [noderef] [usertype] __iomem *dst drivers/video/fbdev/aty/mach64_cursor.c:187:25: sparse: sparse: cast removes address space '__iomem' of expression drivers/video/fbdev/aty/mach64_cursor.c:188:25: sparse: sparse: cast removes address space '__iomem' of expression drivers/video/fbdev/aty/mach64_cursor.c:209:30: sparse: sparse: cast removes address space '__iomem' of expression -- >> drivers/video/fbdev/kyro/fbdev.c:733:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const * @@ got char [noderef] __iomem *screen_base @@ drivers/video/fbdev/kyro/fbdev.c:733:9: sparse: expected void const * drivers/video/fbdev/kyro/fbdev.c:733:9: sparse: got char [noderef] __iomem *screen_base >> drivers/video/fbdev/kyro/fbdev.c:733:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const * @@ got char [noderef] __iomem *screen_base @@ drivers/video/fbdev/kyro/fbdev.c:733:9: sparse: expected void const * drivers/video/fbdev/kyro/fbdev.c:733:9: sparse: got char [noderef] __iomem *screen_base drivers/video/fbdev/kyro/fbdev.c:733:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void * @@ got char [noderef] __iomem *screen_base @@ drivers/video/fbdev/kyro/fbdev.c:733:9: sparse: expected void * drivers/video/fbdev/kyro/fbdev.c:733:9: sparse: got char [noderef] __iomem *screen_base vim +337 drivers/video/fbdev/sstfb.c ^1da177e4c3f415 drivers/video/sstfb.c Linus Torvalds 2005-04-16 330 ^1da177e4c3f415 drivers/video/sstfb.c Linus Torvalds 2005-04-16 331 /* ^1da177e4c3f415 drivers/video/sstfb.c Linus Torvalds 2005-04-16 332 * clear lfb screen ^1da177e4c3f415 drivers/video/sstfb.c Linus Torvalds 2005-04-16 333 */ ^1da177e4c3f415 drivers/video/sstfb.c Linus Torvalds 2005-04-16 334 static void sstfb_clear_screen(struct fb_info *info) ^1da177e4c3f415 drivers/video/sstfb.c Linus Torvalds 2005-04-16 335 { ^1da177e4c3f415 drivers/video/sstfb.c Linus Torvalds 2005-04-16 336 /* clear screen */ ^1da177e4c3f415 drivers/video/sstfb.c Linus Torvalds 2005-04-16 @337 fb_memset(info->screen_base, 0, info->fix.smem_len); ^1da177e4c3f415 drivers/video/sstfb.c Linus Torvalds 2005-04-16 338 } ^1da177e4c3f415 drivers/video/sstfb.c Linus Torvalds 2005-04-16 339 :::::: The code at line 337 was first introduced by commit :::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2 :::::: TO: Linus Torvalds :::::: CC: Linus Torvalds --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org