linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Will Deacon <will@kernel.org>
Cc: clang-built-linux@googlegroups.com,
	Jianyong Wu <jianyong.wu@arm.com>,
	kbuild-all@lists.01.org, linux-arm-kernel@lists.infradead.org,
	Marc Zyngier <maz@kernel.org>
Subject: [arm-platforms:kvm-arm64/ptp 1/7] drivers/firmware/smccc/kvm_guest.c:12:13: warning: no previous prototype for function 'kvm_init_hyp_services'
Date: Wed, 3 Feb 2021 06:55:02 +0800	[thread overview]
Message-ID: <202102030600.pWU6P0hf-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 3623 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git kvm-arm64/ptp
head:   fecd9f021d3220b48d00597bd8e04e4fa6fd9dee
commit: 0f90140a1f02cefb2ce98a94d7f01f5892b95fc2 [1/7] arm/arm64: Probe for the presence of KVM hypervisor
config: arm64-randconfig-r032-20210202 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 275c6af7d7f1ed63a03d05b4484413e447133269)
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
        # install arm64 cross compiling tool for clang build
        # apt-get install binutils-aarch64-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git/commit/?id=0f90140a1f02cefb2ce98a94d7f01f5892b95fc2
        git remote add arm-platforms https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git
        git fetch --no-tags arm-platforms kvm-arm64/ptp
        git checkout 0f90140a1f02cefb2ce98a94d7f01f5892b95fc2
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

>> drivers/firmware/smccc/kvm_guest.c:12:13: warning: no previous prototype for function 'kvm_init_hyp_services' [-Wmissing-prototypes]
   void __init kvm_init_hyp_services(void)
               ^
   drivers/firmware/smccc/kvm_guest.c:12:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void __init kvm_init_hyp_services(void)
   ^
   static 
>> drivers/firmware/smccc/kvm_guest.c:44:6: warning: no previous prototype for function 'kvm_arm_hyp_service_available' [-Wmissing-prototypes]
   bool kvm_arm_hyp_service_available(u32 func_id)
        ^
   drivers/firmware/smccc/kvm_guest.c:44:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   bool kvm_arm_hyp_service_available(u32 func_id)
   ^
   static 
   2 warnings generated.


vim +/kvm_init_hyp_services +12 drivers/firmware/smccc/kvm_guest.c

    11	
  > 12	void __init kvm_init_hyp_services(void)
    13	{
    14		int i;
    15		struct arm_smccc_res res;
    16	
    17		if (arm_smccc_1_1_get_conduit() != SMCCC_CONDUIT_HVC)
    18			return;
    19	
    20		arm_smccc_1_1_invoke(ARM_SMCCC_VENDOR_HYP_CALL_UID_FUNC_ID, &res);
    21		if (res.a0 != ARM_SMCCC_VENDOR_HYP_UID_KVM_REG_0 ||
    22		    res.a1 != ARM_SMCCC_VENDOR_HYP_UID_KVM_REG_1 ||
    23		    res.a2 != ARM_SMCCC_VENDOR_HYP_UID_KVM_REG_2 ||
    24		    res.a3 != ARM_SMCCC_VENDOR_HYP_UID_KVM_REG_3)
    25			return;
    26	
    27		memset(&res, 0, sizeof(res));
    28		arm_smccc_1_1_invoke(ARM_SMCCC_VENDOR_HYP_KVM_FEATURES_FUNC_ID, &res);
    29		for (i = 0; i < 32; ++i) {
    30			if (res.a0 & (i))
    31				set_bit(i + (32 * 0), __kvm_arm_hyp_services);
    32			if (res.a1 & (i))
    33				set_bit(i + (32 * 1), __kvm_arm_hyp_services);
    34			if (res.a2 & (i))
    35				set_bit(i + (32 * 2), __kvm_arm_hyp_services);
    36			if (res.a3 & (i))
    37				set_bit(i + (32 * 3), __kvm_arm_hyp_services);
    38		}
    39	
    40		pr_info("hypervisor services detected (0x%08lx 0x%08lx 0x%08lx 0x%08lx)\n",
    41			 res.a3, res.a2, res.a1, res.a0);
    42	}
    43	
  > 44	bool kvm_arm_hyp_service_available(u32 func_id)

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 31314 bytes --]

[-- Attachment #3: Type: text/plain, Size: 176 bytes --]

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

             reply	other threads:[~2021-02-02 22:57 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-02 22:55 kernel test robot [this message]
2021-02-03  9:27 ` [arm-platforms:kvm-arm64/ptp 1/7] drivers/firmware/smccc/kvm_guest.c:12:13: warning: no previous prototype for function 'kvm_init_hyp_services' Marc Zyngier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202102030600.pWU6P0hf-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=clang-built-linux@googlegroups.com \
    --cc=jianyong.wu@arm.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=maz@kernel.org \
    --cc=will@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).