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 03842C77B7C for ; Fri, 5 May 2023 20:50:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233328AbjEEUue (ORCPT ); Fri, 5 May 2023 16:50:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40778 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230028AbjEEUua (ORCPT ); Fri, 5 May 2023 16:50:30 -0400 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 79ACF1984 for ; Fri, 5 May 2023 13:50:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1683319829; x=1714855829; h=date:from:to:cc:subject:message-id:mime-version; bh=QLXECqInnQy7wtTiG3c5fyyfaG2MFK9TrrmA60BGwM8=; b=QdBxkctzEl1ek4+qyhi7WNmT8EX4rzUxw5uFbv2J4pGlPeSiNrYkqbUG Ge9O0a968hWj2Fd/S9kdybTdF6AcU9FyzX3tA5ueg+RWDohslcK44k1Is MEuSQT64XSy9JaY0MId0tXPXBB99EPjUZH6Dt2Om6P0eO7XPPEzRkQhuh cCdekevCGC90uGghMMAye2o6NArkHgNwDzRZyrHeb+THyKd5Oz9WPepzW Fp+2XMUitO7JaqtBMJvqdVmWNe4BlG46T6x1qyltEkfr8jjGR2vCOPD4P r/u9oL/lDOUd0VjCK4d8svqVwePJY+ocXpHZfP3SKtGitq4RwXINJxMiu w==; X-IronPort-AV: E=McAfee;i="6600,9927,10701"; a="348122207" X-IronPort-AV: E=Sophos;i="5.99,253,1677571200"; d="scan'208";a="348122207" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 May 2023 13:50:29 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10701"; a="728249464" X-IronPort-AV: E=Sophos;i="5.99,253,1677571200"; d="scan'208";a="728249464" Received: from lkp-server01.sh.intel.com (HELO fe5d646e317d) ([10.239.97.150]) by orsmga008.jf.intel.com with ESMTP; 05 May 2023 13:50:27 -0700 Received: from kbuild by fe5d646e317d with local (Exim 4.96) (envelope-from ) id 1pv2Nm-0000qz-31; Fri, 05 May 2023 20:50:26 +0000 Date: Sat, 6 May 2023 04:49:52 +0800 From: kernel test robot To: Huacai Chen Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org Subject: arch/loongarch/kernel/kfpu.c:17:9: sparse: sparse: incorrect type in argument 1 (different address spaces) Message-ID: <202305060451.grzli3Av-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: 7163a2111f6c030ee39635ac3334bfa1a52a3dd3 commit: 2b3bd32ea3a22ea2d5e591da4ac2c2b1fb17c0e0 LoongArch: Provide kernel fpu functions date: 4 days ago config: loongarch-randconfig-s043-20230501 (https://download.01.org/0day-ci/archive/20230506/202305060451.grzli3Av-lkp@intel.com/config) compiler: loongarch64-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=2b3bd32ea3a22ea2d5e591da4ac2c2b1fb17c0e0 git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git fetch --no-tags linus master git checkout 2b3bd32ea3a22ea2d5e591da4ac2c2b1fb17c0e0 # 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=loongarch 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=loongarch SHELL=/bin/bash arch/loongarch/kernel/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot | Link: https://lore.kernel.org/oe-kbuild-all/202305060451.grzli3Av-lkp@intel.com/ sparse warnings: (new ones prefixed by >>) >> arch/loongarch/kernel/kfpu.c:17:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got bool [noderef] __percpu * @@ arch/loongarch/kernel/kfpu.c:17:9: sparse: expected void *ptr arch/loongarch/kernel/kfpu.c:17:9: sparse: got bool [noderef] __percpu * >> arch/loongarch/kernel/kfpu.c:17:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got bool [noderef] __percpu * @@ arch/loongarch/kernel/kfpu.c:17:9: sparse: expected void *ptr arch/loongarch/kernel/kfpu.c:17:9: sparse: got bool [noderef] __percpu * >> arch/loongarch/kernel/kfpu.c:17:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got bool [noderef] __percpu * @@ arch/loongarch/kernel/kfpu.c:17:9: sparse: expected void *ptr arch/loongarch/kernel/kfpu.c:17:9: sparse: got bool [noderef] __percpu * >> arch/loongarch/kernel/kfpu.c:17:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got bool [noderef] __percpu * @@ arch/loongarch/kernel/kfpu.c:17:9: sparse: expected void *ptr arch/loongarch/kernel/kfpu.c:17:9: sparse: got bool [noderef] __percpu * arch/loongarch/kernel/kfpu.c:19:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got bool [noderef] __percpu * @@ arch/loongarch/kernel/kfpu.c:19:9: sparse: expected void *ptr arch/loongarch/kernel/kfpu.c:19:9: sparse: got bool [noderef] __percpu * arch/loongarch/kernel/kfpu.c:19:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got bool [noderef] __percpu * @@ arch/loongarch/kernel/kfpu.c:19:9: sparse: expected void *ptr arch/loongarch/kernel/kfpu.c:19:9: sparse: got bool [noderef] __percpu * arch/loongarch/kernel/kfpu.c:19:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got bool [noderef] __percpu * @@ arch/loongarch/kernel/kfpu.c:19:9: sparse: expected void *ptr arch/loongarch/kernel/kfpu.c:19:9: sparse: got bool [noderef] __percpu * arch/loongarch/kernel/kfpu.c:19:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got bool [noderef] __percpu * @@ arch/loongarch/kernel/kfpu.c:19:9: sparse: expected void *ptr arch/loongarch/kernel/kfpu.c:19:9: sparse: got bool [noderef] __percpu * arch/loongarch/kernel/kfpu.c:32:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got bool [noderef] __percpu * @@ arch/loongarch/kernel/kfpu.c:32:9: sparse: expected void *ptr arch/loongarch/kernel/kfpu.c:32:9: sparse: got bool [noderef] __percpu * arch/loongarch/kernel/kfpu.c:32:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got bool [noderef] __percpu * @@ arch/loongarch/kernel/kfpu.c:32:9: sparse: expected void *ptr arch/loongarch/kernel/kfpu.c:32:9: sparse: got bool [noderef] __percpu * arch/loongarch/kernel/kfpu.c:32:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got bool [noderef] __percpu * @@ arch/loongarch/kernel/kfpu.c:32:9: sparse: expected void *ptr arch/loongarch/kernel/kfpu.c:32:9: sparse: got bool [noderef] __percpu * arch/loongarch/kernel/kfpu.c:32:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got bool [noderef] __percpu * @@ arch/loongarch/kernel/kfpu.c:32:9: sparse: expected void *ptr arch/loongarch/kernel/kfpu.c:32:9: sparse: got bool [noderef] __percpu * arch/loongarch/kernel/kfpu.c:39:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got bool [noderef] __percpu * @@ arch/loongarch/kernel/kfpu.c:39:9: sparse: expected void *ptr arch/loongarch/kernel/kfpu.c:39:9: sparse: got bool [noderef] __percpu * arch/loongarch/kernel/kfpu.c:39:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got bool [noderef] __percpu * @@ arch/loongarch/kernel/kfpu.c:39:9: sparse: expected void *ptr arch/loongarch/kernel/kfpu.c:39:9: sparse: got bool [noderef] __percpu * arch/loongarch/kernel/kfpu.c:39:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got bool [noderef] __percpu * @@ arch/loongarch/kernel/kfpu.c:39:9: sparse: expected void *ptr arch/loongarch/kernel/kfpu.c:39:9: sparse: got bool [noderef] __percpu * arch/loongarch/kernel/kfpu.c:39:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got bool [noderef] __percpu * @@ arch/loongarch/kernel/kfpu.c:39:9: sparse: expected void *ptr arch/loongarch/kernel/kfpu.c:39:9: sparse: got bool [noderef] __percpu * arch/loongarch/kernel/kfpu.c: note: in included file (through arch/loongarch/include/asm/cpu-info.h, arch/loongarch/include/asm/processor.h, ...): arch/loongarch/include/asm/loongarch.h:211:16: sparse: sparse: undefined identifier '__builtin_loongarch_csrrd_w' arch/loongarch/include/asm/loongarch.h:211:16: sparse: sparse: cast from unknown type arch/loongarch/include/asm/loongarch.h:221:9: sparse: sparse: undefined identifier '__builtin_loongarch_csrwr_w' arch/loongarch/include/asm/loongarch.h:221:9: sparse: sparse: cast from unknown type arch/loongarch/include/asm/loongarch.h:211:16: sparse: sparse: cast from unknown type arch/loongarch/include/asm/loongarch.h:221:9: sparse: sparse: cast from unknown type vim +17 arch/loongarch/kernel/kfpu.c 12 13 void kernel_fpu_begin(void) 14 { 15 preempt_disable(); 16 > 17 WARN_ON(this_cpu_read(in_kernel_fpu)); 18 19 this_cpu_write(in_kernel_fpu, true); 20 21 if (!is_fpu_owner()) 22 enable_fpu(); 23 else 24 _save_fp(¤t->thread.fpu); 25 26 write_fcsr(LOONGARCH_FCSR0, 0); 27 } 28 EXPORT_SYMBOL_GPL(kernel_fpu_begin); 29 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests