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 89CA9C77B7A for ; Sat, 13 May 2023 23:10:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231137AbjEMXKZ (ORCPT ); Sat, 13 May 2023 19:10:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42750 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229447AbjEMXKX (ORCPT ); Sat, 13 May 2023 19:10:23 -0400 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BB4C026B6 for ; Sat, 13 May 2023 16:10:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1684019420; x=1715555420; h=date:from:to:cc:subject:message-id:mime-version; bh=hChey0sD+Am2exPD+htyYB+NZPTsObi4Ejz+CnhkbK0=; b=mIoLNnn3m0v7cJo5Qi9fFUJSlVizCsV0Q97Vgvt/8ZpQqGUKYj0MXCgF uCkULmDQ8vTIuB+Q6pgYlrBPNehY/GNuiXnDub2lQv24fyAhfk7qxKioY XQj54+809IjgeB3CFeTztmBxcysr+J/Y/YBD7M3mO/YfGlPmx5TQBESmx BMeERuW+Y9WMffOoiZH0QfI4qUHry19gRGLJsQe1BrfiBNr1nYMSWTduB 40mkvGuNMdhNGndJLIDVlKs+31/6VWsa37QrLszuhI+AxstGJAUl64OzH ASzs81L1DZ8t7q2BjYP4gEPR/fy0NQgKjRjB27vbJ+/q2pqx7YN09KiTU w==; X-IronPort-AV: E=McAfee;i="6600,9927,10709"; a="416635354" X-IronPort-AV: E=Sophos;i="5.99,273,1677571200"; d="scan'208";a="416635354" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 May 2023 16:10:20 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10709"; a="731199428" X-IronPort-AV: E=Sophos;i="5.99,273,1677571200"; d="scan'208";a="731199428" Received: from lkp-server01.sh.intel.com (HELO dea6d5a4f140) ([10.239.97.150]) by orsmga008.jf.intel.com with ESMTP; 13 May 2023 16:10:18 -0700 Received: from kbuild by dea6d5a4f140 with local (Exim 4.96) (envelope-from ) id 1pxyNV-0005ia-0v; Sat, 13 May 2023 23:10:17 +0000 Date: Sun, 14 May 2023 07:09:17 +0800 From: kernel test robot To: Yimin Gu Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, Palmer Dabbelt , Jesse Taube , Damien Le Moal , Conor Dooley Subject: arch/riscv/include/asm/timex.h:25:16: sparse: sparse: cast removes address space '__iomem' of expression Message-ID: <202305140720.Lekmdfp3-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 Hi Yimin, FYI, the error/warning was bisected to this commit, please ignore it if it's irrelevant. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: d4d58949a6eac1c45ab022562c8494725e1ac094 commit: b5e2c507b06c9d36411845149162a804ae7b04a9 riscv: Kconfig: Allow RV32 to build with no MMU date: 7 weeks ago config: riscv-randconfig-s033-20230509 (https://download.01.org/0day-ci/archive/20230514/202305140720.Lekmdfp3-lkp@intel.com/config) compiler: riscv32-linux-gcc (GCC) 12.1.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-39-gce1a6720-dirty # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=b5e2c507b06c9d36411845149162a804ae7b04a9 git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git fetch --no-tags linus master git checkout b5e2c507b06c9d36411845149162a804ae7b04a9 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=riscv olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=riscv SHELL=/bin/bash If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot | Link: https://lore.kernel.org/oe-kbuild-all/202305140720.Lekmdfp3-lkp@intel.com/ sparse warnings: (new ones prefixed by >>) WARNING: invalid argument to '-march': '_zihintpause' crypto/jitterentropy-kcapi.c: note: in included file (through include/linux/timex.h, include/linux/time32.h, include/linux/time.h, ...): >> arch/riscv/include/asm/timex.h:25:16: sparse: sparse: cast removes address space '__iomem' of expression >> arch/riscv/include/asm/timex.h:25:16: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got unsigned int [usertype] * @@ arch/riscv/include/asm/timex.h:25:16: sparse: expected void const volatile [noderef] __iomem *addr arch/riscv/include/asm/timex.h:25:16: sparse: got unsigned int [usertype] * -- WARNING: invalid argument to '-march': '_zihintpause' crypto/tcrypt.c: note: in included file (through include/linux/timex.h, include/linux/time32.h, include/linux/time.h, ...): >> arch/riscv/include/asm/timex.h:25:16: sparse: sparse: cast removes address space '__iomem' of expression >> arch/riscv/include/asm/timex.h:25:16: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got unsigned int [usertype] * @@ arch/riscv/include/asm/timex.h:25:16: sparse: expected void const volatile [noderef] __iomem *addr arch/riscv/include/asm/timex.h:25:16: sparse: got unsigned int [usertype] * >> arch/riscv/include/asm/timex.h:25:16: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got unsigned int [usertype] * @@ arch/riscv/include/asm/timex.h:25:16: sparse: expected void const volatile [noderef] __iomem *addr arch/riscv/include/asm/timex.h:25:16: sparse: got unsigned int [usertype] * >> arch/riscv/include/asm/timex.h:25:16: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got unsigned int [usertype] * @@ arch/riscv/include/asm/timex.h:25:16: sparse: expected void const volatile [noderef] __iomem *addr arch/riscv/include/asm/timex.h:25:16: sparse: got unsigned int [usertype] * >> arch/riscv/include/asm/timex.h:25:16: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got unsigned int [usertype] * @@ arch/riscv/include/asm/timex.h:25:16: sparse: expected void const volatile [noderef] __iomem *addr arch/riscv/include/asm/timex.h:25:16: sparse: got unsigned int [usertype] * >> arch/riscv/include/asm/timex.h:25:16: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got unsigned int [usertype] * @@ arch/riscv/include/asm/timex.h:25:16: sparse: expected void const volatile [noderef] __iomem *addr arch/riscv/include/asm/timex.h:25:16: sparse: got unsigned int [usertype] * >> arch/riscv/include/asm/timex.h:25:16: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got unsigned int [usertype] * @@ arch/riscv/include/asm/timex.h:25:16: sparse: expected void const volatile [noderef] __iomem *addr arch/riscv/include/asm/timex.h:25:16: sparse: got unsigned int [usertype] * >> arch/riscv/include/asm/timex.h:25:16: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got unsigned int [usertype] * @@ arch/riscv/include/asm/timex.h:25:16: sparse: expected void const volatile [noderef] __iomem *addr arch/riscv/include/asm/timex.h:25:16: sparse: got unsigned int [usertype] * >> arch/riscv/include/asm/timex.h:25:16: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got unsigned int [usertype] * @@ arch/riscv/include/asm/timex.h:25:16: sparse: expected void const volatile [noderef] __iomem *addr arch/riscv/include/asm/timex.h:25:16: sparse: got unsigned int [usertype] * >> arch/riscv/include/asm/timex.h:25:16: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got unsigned int [usertype] * @@ arch/riscv/include/asm/timex.h:25:16: sparse: expected void const volatile [noderef] __iomem *addr arch/riscv/include/asm/timex.h:25:16: sparse: got unsigned int [usertype] * >> arch/riscv/include/asm/timex.h:25:16: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got unsigned int [usertype] * @@ arch/riscv/include/asm/timex.h:25:16: sparse: expected void const volatile [noderef] __iomem *addr arch/riscv/include/asm/timex.h:25:16: sparse: got unsigned int [usertype] * >> arch/riscv/include/asm/timex.h:25:16: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got unsigned int [usertype] * @@ arch/riscv/include/asm/timex.h:25:16: sparse: expected void const volatile [noderef] __iomem *addr arch/riscv/include/asm/timex.h:25:16: sparse: got unsigned int [usertype] * >> arch/riscv/include/asm/timex.h:25:16: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got unsigned int [usertype] * @@ arch/riscv/include/asm/timex.h:25:16: sparse: expected void const volatile [noderef] __iomem *addr arch/riscv/include/asm/timex.h:25:16: sparse: got unsigned int [usertype] * -- WARNING: invalid argument to '-march': '_zihintpause' lib/rbtree_test.c: note: in included file (through include/linux/timex.h, include/linux/time32.h, include/linux/time.h, ...): >> arch/riscv/include/asm/timex.h:25:16: sparse: sparse: cast removes address space '__iomem' of expression >> arch/riscv/include/asm/timex.h:25:16: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got unsigned int [usertype] * @@ arch/riscv/include/asm/timex.h:25:16: sparse: expected void const volatile [noderef] __iomem *addr arch/riscv/include/asm/timex.h:25:16: sparse: got unsigned int [usertype] * >> arch/riscv/include/asm/timex.h:25:16: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got unsigned int [usertype] * @@ arch/riscv/include/asm/timex.h:25:16: sparse: expected void const volatile [noderef] __iomem *addr arch/riscv/include/asm/timex.h:25:16: sparse: got unsigned int [usertype] * >> arch/riscv/include/asm/timex.h:25:16: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got unsigned int [usertype] * @@ arch/riscv/include/asm/timex.h:25:16: sparse: expected void const volatile [noderef] __iomem *addr arch/riscv/include/asm/timex.h:25:16: sparse: got unsigned int [usertype] * >> arch/riscv/include/asm/timex.h:25:16: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got unsigned int [usertype] * @@ arch/riscv/include/asm/timex.h:25:16: sparse: expected void const volatile [noderef] __iomem *addr arch/riscv/include/asm/timex.h:25:16: sparse: got unsigned int [usertype] * >> arch/riscv/include/asm/timex.h:25:16: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got unsigned int [usertype] * @@ arch/riscv/include/asm/timex.h:25:16: sparse: expected void const volatile [noderef] __iomem *addr arch/riscv/include/asm/timex.h:25:16: sparse: got unsigned int [usertype] * >> arch/riscv/include/asm/timex.h:25:16: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got unsigned int [usertype] * @@ arch/riscv/include/asm/timex.h:25:16: sparse: expected void const volatile [noderef] __iomem *addr arch/riscv/include/asm/timex.h:25:16: sparse: got unsigned int [usertype] * >> arch/riscv/include/asm/timex.h:25:16: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got unsigned int [usertype] * @@ arch/riscv/include/asm/timex.h:25:16: sparse: expected void const volatile [noderef] __iomem *addr arch/riscv/include/asm/timex.h:25:16: sparse: got unsigned int [usertype] * >> arch/riscv/include/asm/timex.h:25:16: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got unsigned int [usertype] * @@ arch/riscv/include/asm/timex.h:25:16: sparse: expected void const volatile [noderef] __iomem *addr arch/riscv/include/asm/timex.h:25:16: sparse: got unsigned int [usertype] * >> arch/riscv/include/asm/timex.h:25:16: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got unsigned int [usertype] * @@ arch/riscv/include/asm/timex.h:25:16: sparse: expected void const volatile [noderef] __iomem *addr arch/riscv/include/asm/timex.h:25:16: sparse: got unsigned int [usertype] * >> arch/riscv/include/asm/timex.h:25:16: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got unsigned int [usertype] * @@ arch/riscv/include/asm/timex.h:25:16: sparse: expected void const volatile [noderef] __iomem *addr arch/riscv/include/asm/timex.h:25:16: sparse: got unsigned int [usertype] * >> arch/riscv/include/asm/timex.h:25:16: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got unsigned int [usertype] * @@ arch/riscv/include/asm/timex.h:25:16: sparse: expected void const volatile [noderef] __iomem *addr arch/riscv/include/asm/timex.h:25:16: sparse: got unsigned int [usertype] * >> arch/riscv/include/asm/timex.h:25:16: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got unsigned int [usertype] * @@ arch/riscv/include/asm/timex.h:25:16: sparse: expected void const volatile [noderef] __iomem *addr arch/riscv/include/asm/timex.h:25:16: sparse: got unsigned int [usertype] * >> arch/riscv/include/asm/timex.h:25:16: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got unsigned int [usertype] * @@ arch/riscv/include/asm/timex.h:25:16: sparse: expected void const volatile [noderef] __iomem *addr arch/riscv/include/asm/timex.h:25:16: sparse: got unsigned int [usertype] * >> arch/riscv/include/asm/timex.h:25:16: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got unsigned int [usertype] * @@ arch/riscv/include/asm/timex.h:25:16: sparse: expected void const volatile [noderef] __iomem *addr arch/riscv/include/asm/timex.h:25:16: sparse: got unsigned int [usertype] * -- WARNING: invalid argument to '-march': '_zihintpause' >> arch/riscv/mm/init.c:1204:48: sparse: sparse: cast truncates bits from constant value (100000000 becomes 0) -- WARNING: invalid argument to '-march': '_zihintpause' arch/riscv/lib/delay.c: note: in included file (through include/linux/timex.h, include/linux/time32.h, include/linux/time.h, ...): >> arch/riscv/include/asm/timex.h:25:16: sparse: sparse: cast removes address space '__iomem' of expression >> arch/riscv/include/asm/timex.h:25:16: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got unsigned int [usertype] * @@ arch/riscv/include/asm/timex.h:25:16: sparse: expected void const volatile [noderef] __iomem *addr arch/riscv/include/asm/timex.h:25:16: sparse: got unsigned int [usertype] * >> arch/riscv/include/asm/timex.h:25:16: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got unsigned int [usertype] * @@ arch/riscv/include/asm/timex.h:25:16: sparse: expected void const volatile [noderef] __iomem *addr arch/riscv/include/asm/timex.h:25:16: sparse: got unsigned int [usertype] * -- WARNING: invalid argument to '-march': '_zihintpause' drivers/char/random.c: note: in included file (through include/linux/timex.h, include/linux/time32.h, include/linux/time.h, ...): >> arch/riscv/include/asm/timex.h:25:16: sparse: sparse: cast removes address space '__iomem' of expression >> arch/riscv/include/asm/timex.h:25:16: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got unsigned int [usertype] * @@ arch/riscv/include/asm/timex.h:25:16: sparse: expected void const volatile [noderef] __iomem *addr arch/riscv/include/asm/timex.h:25:16: sparse: got unsigned int [usertype] * >> arch/riscv/include/asm/timex.h:25:16: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got unsigned int [usertype] * @@ arch/riscv/include/asm/timex.h:25:16: sparse: expected void const volatile [noderef] __iomem *addr arch/riscv/include/asm/timex.h:25:16: sparse: got unsigned int [usertype] * >> arch/riscv/include/asm/timex.h:25:16: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got unsigned int [usertype] * @@ arch/riscv/include/asm/timex.h:25:16: sparse: expected void const volatile [noderef] __iomem *addr arch/riscv/include/asm/timex.h:25:16: sparse: got unsigned int [usertype] * >> arch/riscv/include/asm/timex.h:25:16: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got unsigned int [usertype] * @@ arch/riscv/include/asm/timex.h:25:16: sparse: expected void const volatile [noderef] __iomem *addr arch/riscv/include/asm/timex.h:25:16: sparse: got unsigned int [usertype] * >> arch/riscv/include/asm/timex.h:25:16: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got unsigned int [usertype] * @@ arch/riscv/include/asm/timex.h:25:16: sparse: expected void const volatile [noderef] __iomem *addr arch/riscv/include/asm/timex.h:25:16: sparse: got unsigned int [usertype] * >> arch/riscv/include/asm/timex.h:25:16: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got unsigned int [usertype] * @@ arch/riscv/include/asm/timex.h:25:16: sparse: expected void const volatile [noderef] __iomem *addr arch/riscv/include/asm/timex.h:25:16: sparse: got unsigned int [usertype] * >> arch/riscv/include/asm/timex.h:25:16: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got unsigned int [usertype] * @@ arch/riscv/include/asm/timex.h:25:16: sparse: expected void const volatile [noderef] __iomem *addr arch/riscv/include/asm/timex.h:25:16: sparse: got unsigned int [usertype] * >> arch/riscv/include/asm/timex.h:25:16: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got unsigned int [usertype] * @@ arch/riscv/include/asm/timex.h:25:16: sparse: expected void const volatile [noderef] __iomem *addr arch/riscv/include/asm/timex.h:25:16: sparse: got unsigned int [usertype] * >> arch/riscv/include/asm/timex.h:25:16: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got unsigned int [usertype] * @@ arch/riscv/include/asm/timex.h:25:16: sparse: expected void const volatile [noderef] __iomem *addr arch/riscv/include/asm/timex.h:25:16: sparse: got unsigned int [usertype] * >> arch/riscv/include/asm/timex.h:25:16: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got unsigned int [usertype] * @@ arch/riscv/include/asm/timex.h:25:16: sparse: expected void const volatile [noderef] __iomem *addr arch/riscv/include/asm/timex.h:25:16: sparse: got unsigned int [usertype] * vim +/__iomem +25 arch/riscv/include/asm/timex.h d5be89a8d118a8 Palmer Dabbelt 2020-09-14 16 d5be89a8d118a8 Palmer Dabbelt 2020-09-14 17 #ifdef CONFIG_64BIT d5be89a8d118a8 Palmer Dabbelt 2020-09-14 18 static inline cycles_t get_cycles(void) d5be89a8d118a8 Palmer Dabbelt 2020-09-14 19 { d5be89a8d118a8 Palmer Dabbelt 2020-09-14 20 return readq_relaxed(clint_time_val); d5be89a8d118a8 Palmer Dabbelt 2020-09-14 21 } d5be89a8d118a8 Palmer Dabbelt 2020-09-14 22 #else /* !CONFIG_64BIT */ d5be89a8d118a8 Palmer Dabbelt 2020-09-14 23 static inline u32 get_cycles(void) d5be89a8d118a8 Palmer Dabbelt 2020-09-14 24 { d5be89a8d118a8 Palmer Dabbelt 2020-09-14 @25 return readl_relaxed(((u32 *)clint_time_val)); d5be89a8d118a8 Palmer Dabbelt 2020-09-14 26 } d5be89a8d118a8 Palmer Dabbelt 2020-09-14 27 #define get_cycles get_cycles d5be89a8d118a8 Palmer Dabbelt 2020-09-14 28 :::::: The code at line 25 was first introduced by commit :::::: d5be89a8d118a8e8d09cd74a921a808f17fbdd09 RISC-V: Resurrect the MMIO timer implementation for M-mode systems :::::: TO: Palmer Dabbelt :::::: CC: Palmer Dabbelt -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests