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 74B89C001B0 for ; Mon, 24 Jul 2023 13:58:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230040AbjGXN6j (ORCPT ); Mon, 24 Jul 2023 09:58:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33082 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230362AbjGXN6D (ORCPT ); Mon, 24 Jul 2023 09:58:03 -0400 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BCC28E61 for ; Mon, 24 Jul 2023 06:58:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1690207081; x=1721743081; h=date:from:to:cc:subject:message-id:mime-version; bh=TNL8SNf44HdiVQPtoWGEn3diq6by9aPcf5MMkQAYHwI=; b=GoIzacsp5dMsF87ay0VT/dhucS8sXz7gYJdb5FvyKRy8Loibb8N9bFeH DgocN2590Pwn4nkPDpW0yGjp3LxDJscAwyDEWTDtbTGnjpL3c1+MdZ7xQ hsJ2fuO55sGlrMFDX1lm+uOyCHA/wV7+PLd+iLHoRs51O1GpE8WVs6diA 4TVzaLMAdNlCYuF6eIJFyvJxkwlVZa/b8hFaX1pn6c9pZYu7L7FI36PJB 3lAczZ2BofqBFfrrnL+V7AulCo3a62nYAq42PC47b7+5894nRgUxEeAmA r2BEpoM9HK4RMwxEDrL01tF/Hx1hvxOXf9ip3rLvWIln7yfcyQDZ7kZIh A==; X-IronPort-AV: E=McAfee;i="6600,9927,10781"; a="367471379" X-IronPort-AV: E=Sophos;i="6.01,228,1684825200"; d="scan'208";a="367471379" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Jul 2023 06:58:00 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10781"; a="849637008" X-IronPort-AV: E=Sophos;i="6.01,228,1684825200"; d="scan'208";a="849637008" Received: from lkp-server02.sh.intel.com (HELO 36946fcf73d7) ([10.239.97.151]) by orsmga004.jf.intel.com with ESMTP; 24 Jul 2023 06:57:58 -0700 Received: from kbuild by 36946fcf73d7 with local (Exim 4.96) (envelope-from ) id 1qNw37-0009ke-2z; Mon, 24 Jul 2023 13:56:50 +0000 Date: Mon, 24 Jul 2023 21:56:19 +0800 From: kernel test robot To: Sai Prakash Ranjan Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, Arnd Bergmann Subject: drivers/mtd/nand/raw/sh_flctl.c:512:24: sparse: sparse: incorrect type in argument 1 (different base types) Message-ID: <202307242110.JAXek08p-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: 6eaae198076080886b9e7d57f4ae06fa782f90ef commit: 548927e0312194167f7ee5de47d50c2036088cce arm64: io: Use asm-generic high level MMIO accessors date: 1 year, 1 month ago config: arm64-randconfig-r081-20230723 (https://download.01.org/0day-ci/archive/20230724/202307242110.JAXek08p-lkp@intel.com/config) compiler: aarch64-linux-gcc (GCC) 12.3.0 reproduce: (https://download.01.org/0day-ci/archive/20230724/202307242110.JAXek08p-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/202307242110.JAXek08p-lkp@intel.com/ sparse warnings: (new ones prefixed by >>) drivers/mtd/nand/raw/sh_flctl.c:458:16: sparse: sparse: cast to restricted __le32 drivers/mtd/nand/raw/sh_flctl.c:458:16: sparse: sparse: cast to restricted __le32 drivers/mtd/nand/raw/sh_flctl.c:458:16: sparse: sparse: cast to restricted __le32 drivers/mtd/nand/raw/sh_flctl.c:458:16: sparse: sparse: cast to restricted __le32 drivers/mtd/nand/raw/sh_flctl.c:458:16: sparse: sparse: cast to restricted __le32 drivers/mtd/nand/raw/sh_flctl.c:458:16: sparse: sparse: cast to restricted __le32 drivers/mtd/nand/raw/sh_flctl.c:481:26: sparse: sparse: cast to restricted __be32 drivers/mtd/nand/raw/sh_flctl.c:496:38: sparse: sparse: cast to restricted __be32 >> drivers/mtd/nand/raw/sh_flctl.c:512:24: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __be32 [usertype] @@ drivers/mtd/nand/raw/sh_flctl.c:512:24: sparse: expected unsigned int [usertype] value drivers/mtd/nand/raw/sh_flctl.c:512:24: sparse: got restricted __be32 [usertype] drivers/mtd/nand/raw/sh_flctl.c:525:24: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long @@ got restricted __be32 [usertype] @@ drivers/mtd/nand/raw/sh_flctl.c:525:24: sparse: expected unsigned long drivers/mtd/nand/raw/sh_flctl.c:525:24: sparse: got restricted __be32 [usertype] vim +512 drivers/mtd/nand/raw/sh_flctl.c 6028aa01f759a1d drivers/mtd/nand/sh_flctl.c Yoshihiro Shimoda 2008-10-14 502 e8a9d8f31c592ee drivers/mtd/nand/sh_flctl.c Bastian Hecht 2012-10-19 503 static void write_fiforeg(struct sh_flctl *flctl, int rlen, e8a9d8f31c592ee drivers/mtd/nand/sh_flctl.c Bastian Hecht 2012-10-19 504 unsigned int offset) 6028aa01f759a1d drivers/mtd/nand/sh_flctl.c Yoshihiro Shimoda 2008-10-14 505 { 6028aa01f759a1d drivers/mtd/nand/sh_flctl.c Yoshihiro Shimoda 2008-10-14 506 int i, len_4align; e8a9d8f31c592ee drivers/mtd/nand/sh_flctl.c Bastian Hecht 2012-10-19 507 unsigned long *buf = (unsigned long *)&flctl->done_buff[offset]; 6028aa01f759a1d drivers/mtd/nand/sh_flctl.c Yoshihiro Shimoda 2008-10-14 508 6028aa01f759a1d drivers/mtd/nand/sh_flctl.c Yoshihiro Shimoda 2008-10-14 509 len_4align = (rlen + 3) / 4; 6028aa01f759a1d drivers/mtd/nand/sh_flctl.c Yoshihiro Shimoda 2008-10-14 510 for (i = 0; i < len_4align; i++) { 6028aa01f759a1d drivers/mtd/nand/sh_flctl.c Yoshihiro Shimoda 2008-10-14 511 wait_wfifo_ready(flctl); e8a9d8f31c592ee drivers/mtd/nand/sh_flctl.c Bastian Hecht 2012-10-19 @512 writel(cpu_to_be32(buf[i]), FLDTFIFO(flctl)); 6028aa01f759a1d drivers/mtd/nand/sh_flctl.c Yoshihiro Shimoda 2008-10-14 513 } 6028aa01f759a1d drivers/mtd/nand/sh_flctl.c Yoshihiro Shimoda 2008-10-14 514 } 6028aa01f759a1d drivers/mtd/nand/sh_flctl.c Yoshihiro Shimoda 2008-10-14 515 :::::: The code at line 512 was first introduced by commit :::::: e8a9d8f31c592eea89f1b0d3fd425e7a96944e88 mtd: sh_flctl: Minor cleanups :::::: TO: Bastian Hecht :::::: CC: Artem Bityutskiy -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki