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 E6777C433EF for ; Thu, 25 Nov 2021 15:58:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235446AbhKYQB4 (ORCPT ); Thu, 25 Nov 2021 11:01:56 -0500 Received: from mga12.intel.com ([192.55.52.136]:41275 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231359AbhKYP7y (ORCPT ); Thu, 25 Nov 2021 10:59:54 -0500 X-IronPort-AV: E=McAfee;i="6200,9189,10179"; a="215558269" X-IronPort-AV: E=Sophos;i="5.87,263,1631602800"; d="scan'208";a="215558269" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Nov 2021 07:56:43 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.87,263,1631602800"; d="scan'208";a="498121581" Received: from lkp-server02.sh.intel.com (HELO 9e1e9f9b3bcb) ([10.239.97.151]) by orsmga007.jf.intel.com with ESMTP; 25 Nov 2021 07:56:41 -0800 Received: from kbuild by 9e1e9f9b3bcb with local (Exim 4.92) (envelope-from ) id 1mqH73-0006an-56; Thu, 25 Nov 2021 15:56:41 +0000 Date: Thu, 25 Nov 2021 23:56:31 +0800 From: kernel test robot To: Guenter Roeck Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org Subject: drivers/dma/sun6i-dma.c:244:45: sparse: sparse: incorrect type in argument 1 (different address spaces) Message-ID: <202111252303.HyoCSVcA-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) 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: 5f53fa508db098c9d372423a6dac31c8a5679cdf commit: 35a3f4ef0ab543daa1725b0c963eb8c05e3376f8 alpha: Declare virt_to_phys and virt_to_bus parameter as pointer to volatile date: 2 months ago config: alpha-randconfig-s032-20211117 (https://download.01.org/0day-ci/archive/20211125/202111252303.HyoCSVcA-lkp@intel.com/config) compiler: alpha-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/torvalds/linux.git/commit/?id=35a3f4ef0ab543daa1725b0c963eb8c05e3376f8 git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git fetch --no-tags linus master git checkout 35a3f4ef0ab543daa1725b0c963eb8c05e3376f8 # save the config file to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=alpha If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot sparse warnings: (new ones prefixed by >>) >> drivers/dma/sun6i-dma.c:244:45: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void volatile *address @@ got void [noderef] __iomem *base @@ drivers/dma/sun6i-dma.c:244:45: sparse: expected void volatile *address drivers/dma/sun6i-dma.c:244:45: sparse: got void [noderef] __iomem *base vim +244 drivers/dma/sun6i-dma.c 555859308723d8d Maxime Ripard 2014-07-17 240 555859308723d8d Maxime Ripard 2014-07-17 241 static inline void sun6i_dma_dump_chan_regs(struct sun6i_dma_dev *sdev, 555859308723d8d Maxime Ripard 2014-07-17 242 struct sun6i_pchan *pchan) 555859308723d8d Maxime Ripard 2014-07-17 243 { 42c0d54e6236958 Vinod Koul 2014-07-28 @244 phys_addr_t reg = virt_to_phys(pchan->base); 555859308723d8d Maxime Ripard 2014-07-17 245 555859308723d8d Maxime Ripard 2014-07-17 246 dev_dbg(sdev->slave.dev, "Chan %d reg: %pa\n" 555859308723d8d Maxime Ripard 2014-07-17 247 "\t___en(%04x): \t0x%08x\n" 555859308723d8d Maxime Ripard 2014-07-17 248 "\tpause(%04x): \t0x%08x\n" 555859308723d8d Maxime Ripard 2014-07-17 249 "\tstart(%04x): \t0x%08x\n" 555859308723d8d Maxime Ripard 2014-07-17 250 "\t__cfg(%04x): \t0x%08x\n" 555859308723d8d Maxime Ripard 2014-07-17 251 "\t__src(%04x): \t0x%08x\n" 555859308723d8d Maxime Ripard 2014-07-17 252 "\t__dst(%04x): \t0x%08x\n" 555859308723d8d Maxime Ripard 2014-07-17 253 "\tcount(%04x): \t0x%08x\n" 555859308723d8d Maxime Ripard 2014-07-17 254 "\t_para(%04x): \t0x%08x\n\n", 555859308723d8d Maxime Ripard 2014-07-17 255 pchan->idx, ®, 555859308723d8d Maxime Ripard 2014-07-17 256 DMA_CHAN_ENABLE, 555859308723d8d Maxime Ripard 2014-07-17 257 readl(pchan->base + DMA_CHAN_ENABLE), 555859308723d8d Maxime Ripard 2014-07-17 258 DMA_CHAN_PAUSE, 555859308723d8d Maxime Ripard 2014-07-17 259 readl(pchan->base + DMA_CHAN_PAUSE), 555859308723d8d Maxime Ripard 2014-07-17 260 DMA_CHAN_LLI_ADDR, 555859308723d8d Maxime Ripard 2014-07-17 261 readl(pchan->base + DMA_CHAN_LLI_ADDR), 555859308723d8d Maxime Ripard 2014-07-17 262 DMA_CHAN_CUR_CFG, 555859308723d8d Maxime Ripard 2014-07-17 263 readl(pchan->base + DMA_CHAN_CUR_CFG), 555859308723d8d Maxime Ripard 2014-07-17 264 DMA_CHAN_CUR_SRC, 555859308723d8d Maxime Ripard 2014-07-17 265 readl(pchan->base + DMA_CHAN_CUR_SRC), 555859308723d8d Maxime Ripard 2014-07-17 266 DMA_CHAN_CUR_DST, 555859308723d8d Maxime Ripard 2014-07-17 267 readl(pchan->base + DMA_CHAN_CUR_DST), 555859308723d8d Maxime Ripard 2014-07-17 268 DMA_CHAN_CUR_CNT, 555859308723d8d Maxime Ripard 2014-07-17 269 readl(pchan->base + DMA_CHAN_CUR_CNT), 555859308723d8d Maxime Ripard 2014-07-17 270 DMA_CHAN_CUR_PARA, 555859308723d8d Maxime Ripard 2014-07-17 271 readl(pchan->base + DMA_CHAN_CUR_PARA)); 555859308723d8d Maxime Ripard 2014-07-17 272 } 555859308723d8d Maxime Ripard 2014-07-17 273 :::::: The code at line 244 was first introduced by commit :::::: 42c0d54e62369584f2491f072f405602ff504e0e dmaengine: sun6i: fix build failure on x86, xilinx targets :::::: TO: Vinod Koul :::::: CC: Vinod Koul --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org