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 2B1B9C433EF for ; Thu, 31 Mar 2022 10:17:09 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 653C46B0072; Thu, 31 Mar 2022 06:17:08 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 6038C6B0073; Thu, 31 Mar 2022 06:17:08 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 4CB766B0074; Thu, 31 Mar 2022 06:17:08 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0005.hostedemail.com [216.40.44.5]) by kanga.kvack.org (Postfix) with ESMTP id 3D1006B0072 for ; Thu, 31 Mar 2022 06:17:08 -0400 (EDT) Received: from smtpin24.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id E57EBA5D42 for ; Thu, 31 Mar 2022 10:17:07 +0000 (UTC) X-FDA: 79304278494.24.F466DAC Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by imf06.hostedemail.com (Postfix) with ESMTP id 5F6B518000B for ; Thu, 31 Mar 2022 10:17:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1648721826; x=1680257826; h=date:from:to:cc:subject:message-id:mime-version; bh=y/iRp6AXHkpnRdA2HbmIHg2PB89J17Am0CpzhcLHWcI=; b=QytNYhQ5/rGwy+9p0bbl/xsNdJXbEaaRhu+luesfDOTSgFvayd4P+Jfp j/BtQoynY6e7PsEKhrmHz/wYPs4Ss9KiweHX53hY55pEBd8DbVuH740/D 7fJ5U6H3mwHnl9Ufvtrmg9MoGW7W/uSutmSTd3vfCXziUL2NVTmnm3DfT KfRJrLPGfY13+1y/dW6arDKm07/rz4Umc6mV85QAkTkuBSIV6KZwYnEw1 Zy+BB0AmGePh+6XdfBSBoUeX9nO4uGPupJ+PxJBCplK0mByWXmJJfixXG YaYcGoTSxsHnzk2VhFc5kQrRv4T/iW841PaX4+eIJ5lGj9IQ4J5NUJ8/c Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10302"; a="239713901" X-IronPort-AV: E=Sophos;i="5.90,225,1643702400"; d="scan'208";a="239713901" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Mar 2022 03:17:04 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,225,1643702400"; d="scan'208";a="720395819" Received: from lkp-server02.sh.intel.com (HELO 3231c491b0e2) ([10.239.97.151]) by orsmga005.jf.intel.com with ESMTP; 31 Mar 2022 03:17:02 -0700 Received: from kbuild by 3231c491b0e2 with local (Exim 4.95) (envelope-from ) id 1nZrrR-00009j-MV; Thu, 31 Mar 2022 10:17:01 +0000 Date: Thu, 31 Mar 2022 18:16:12 +0800 From: kernel test robot To: Nicholas Piggin Cc: kbuild-all@lists.01.org, Linux Memory Management List , Michael Ellerman , Fabiano Rosas Subject: [linux-next:master 10210/14948] arch/powerpc/kvm/powerpc.c:716:29: error: implicit declaration of function 'kvmhv_on_pseries' Message-ID: <202203311821.zttpWgVU-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-Stat-Signature: haugtkiingippkxe5w11x6o4eoir8h66 Authentication-Results: imf06.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=QytNYhQ5; dmarc=pass (policy=none) header.from=intel.com; spf=none (imf06.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 192.55.52.136) smtp.mailfrom=lkp@intel.com X-Rspam-User: X-Rspamd-Server: rspam11 X-Rspamd-Queue-Id: 5F6B518000B X-HE-Tag: 1648721826-758459 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: Hi Nicholas, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: fdcbcd1348f4ef713668bae1b0fa9774e1811205 commit: f771b55731fc82b1e8e9ef123f6f1b8d8c92bc63 [10210/14948] KVM: PPC: Use KVM_CAP_PPC_AIL_MODE_3 config: powerpc-randconfig-c003-20220331 (https://download.01.org/0day-ci/archive/20220331/202203311821.zttpWgVU-lkp@intel.com/config) compiler: powerpc-linux-gcc (GCC) 11.2.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=f771b55731fc82b1e8e9ef123f6f1b8d8c92bc63 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 f771b55731fc82b1e8e9ef123f6f1b8d8c92bc63 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=powerpc SHELL=/bin/bash arch/powerpc/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): arch/powerpc/kvm/powerpc.c: In function 'kvm_vm_ioctl_check_extension': >> arch/powerpc/kvm/powerpc.c:716:29: error: implicit declaration of function 'kvmhv_on_pseries' [-Werror=implicit-function-declaration] 716 | if (kvmhv_on_pseries()) { | ^~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors vim +/kvmhv_on_pseries +716 arch/powerpc/kvm/powerpc.c 593 594 case KVM_CAP_PPC_ALLOC_HTAB: 595 r = hv_enabled; 596 break; 597 #endif /* CONFIG_PPC_BOOK3S_64 */ 598 #ifdef CONFIG_KVM_BOOK3S_HV_POSSIBLE 599 case KVM_CAP_PPC_SMT: 600 r = 0; 601 if (kvm) { 602 if (kvm->arch.emul_smt_mode > 1) 603 r = kvm->arch.emul_smt_mode; 604 else 605 r = kvm->arch.smt_mode; 606 } else if (hv_enabled) { 607 if (cpu_has_feature(CPU_FTR_ARCH_300)) 608 r = 1; 609 else 610 r = threads_per_subcore; 611 } 612 break; 613 case KVM_CAP_PPC_SMT_POSSIBLE: 614 r = 1; 615 if (hv_enabled) { 616 if (!cpu_has_feature(CPU_FTR_ARCH_300)) 617 r = ((threads_per_subcore << 1) - 1); 618 else 619 /* P9 can emulate dbells, so allow any mode */ 620 r = 8 | 4 | 2 | 1; 621 } 622 break; 623 case KVM_CAP_PPC_RMA: 624 r = 0; 625 break; 626 case KVM_CAP_PPC_HWRNG: 627 r = kvmppc_hwrng_present(); 628 break; 629 case KVM_CAP_PPC_MMU_RADIX: 630 r = !!(hv_enabled && radix_enabled()); 631 break; 632 case KVM_CAP_PPC_MMU_HASH_V3: 633 r = !!(hv_enabled && kvmppc_hv_ops->hash_v3_possible && 634 kvmppc_hv_ops->hash_v3_possible()); 635 break; 636 case KVM_CAP_PPC_NESTED_HV: 637 r = !!(hv_enabled && kvmppc_hv_ops->enable_nested && 638 !kvmppc_hv_ops->enable_nested(NULL)); 639 break; 640 #endif 641 case KVM_CAP_SYNC_MMU: 642 #ifdef CONFIG_KVM_BOOK3S_HV_POSSIBLE 643 r = hv_enabled; 644 #elif defined(KVM_ARCH_WANT_MMU_NOTIFIER) 645 r = 1; 646 #else 647 r = 0; 648 #endif 649 break; 650 #ifdef CONFIG_KVM_BOOK3S_HV_POSSIBLE 651 case KVM_CAP_PPC_HTAB_FD: 652 r = hv_enabled; 653 break; 654 #endif 655 case KVM_CAP_NR_VCPUS: 656 /* 657 * Recommending a number of CPUs is somewhat arbitrary; we 658 * return the number of present CPUs for -HV (since a host 659 * will have secondary threads "offline"), and for other KVM 660 * implementations just count online CPUs. 661 */ 662 if (hv_enabled) 663 r = min_t(unsigned int, num_present_cpus(), KVM_MAX_VCPUS); 664 else 665 r = min_t(unsigned int, num_online_cpus(), KVM_MAX_VCPUS); 666 break; 667 case KVM_CAP_MAX_VCPUS: 668 r = KVM_MAX_VCPUS; 669 break; 670 case KVM_CAP_MAX_VCPU_ID: 671 r = KVM_MAX_VCPU_IDS; 672 break; 673 #ifdef CONFIG_PPC_BOOK3S_64 674 case KVM_CAP_PPC_GET_SMMU_INFO: 675 r = 1; 676 break; 677 case KVM_CAP_SPAPR_MULTITCE: 678 r = 1; 679 break; 680 case KVM_CAP_SPAPR_RESIZE_HPT: 681 r = !!hv_enabled; 682 break; 683 #endif 684 #ifdef CONFIG_KVM_BOOK3S_HV_POSSIBLE 685 case KVM_CAP_PPC_FWNMI: 686 r = hv_enabled; 687 break; 688 #endif 689 #ifdef CONFIG_PPC_TRANSACTIONAL_MEM 690 case KVM_CAP_PPC_HTM: 691 r = !!(cur_cpu_spec->cpu_user_features2 & PPC_FEATURE2_HTM) || 692 (hv_enabled && cpu_has_feature(CPU_FTR_P9_TM_HV_ASSIST)); 693 break; 694 #endif 695 #if defined(CONFIG_KVM_BOOK3S_HV_POSSIBLE) 696 case KVM_CAP_PPC_SECURE_GUEST: 697 r = hv_enabled && kvmppc_hv_ops->enable_svm && 698 !kvmppc_hv_ops->enable_svm(NULL); 699 break; 700 case KVM_CAP_PPC_DAWR1: 701 r = !!(hv_enabled && kvmppc_hv_ops->enable_dawr1 && 702 !kvmppc_hv_ops->enable_dawr1(NULL)); 703 break; 704 case KVM_CAP_PPC_RPT_INVALIDATE: 705 r = 1; 706 break; 707 #endif 708 case KVM_CAP_PPC_AIL_MODE_3: 709 r = 0; 710 /* 711 * KVM PR, POWER7, and some POWER9s don't support AIL=3 mode. 712 * The POWER9s can support it if the guest runs in hash mode, 713 * but QEMU doesn't necessarily query the capability in time. 714 */ 715 if (hv_enabled) { > 716 if (kvmhv_on_pseries()) { 717 if (pseries_reloc_on_exception()) 718 r = 1; 719 } else if (cpu_has_feature(CPU_FTR_ARCH_207S) && 720 !cpu_has_feature(CPU_FTR_P9_RADIX_PREFETCH_BUG)) { 721 r = 1; 722 } 723 } 724 break; 725 default: 726 r = 0; 727 break; 728 } 729 return r; 730 -- 0-DAY CI Kernel Test Service https://01.org/lkp