Patch "RISC-V: KVM: include missing hwcap.h into vcpu_fp" has been added to the 5.17-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    RISC-V: KVM: include missing hwcap.h into vcpu_fp

to the 5.17-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     risc-v-kvm-include-missing-hwcap.h-into-vcpu_fp.patch
and it can be found in the queue-5.17 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 29b09c5bcc34e1b135576bc5b700125c8f1955a3
Author: Heiko Stuebner <heiko@xxxxxxxxx>
Date:   Sat Apr 9 09:16:00 2022 +0530

    RISC-V: KVM: include missing hwcap.h into vcpu_fp
    
    [ Upstream commit 4054eee9290248bf66c5eacb58879c9aaad37f71 ]
    
    vcpu_fp uses the riscv_isa_extension mechanism which gets
    defined in hwcap.h but doesn't include that head file.
    
    While it seems to work in most cases, in certain conditions
    this can lead to build failures like
    
    ../arch/riscv/kvm/vcpu_fp.c: In function ‘kvm_riscv_vcpu_fp_reset’:
    ../arch/riscv/kvm/vcpu_fp.c:22:13: error: implicit declaration of function ‘riscv_isa_extension_available’ [-Werror=implicit-function-declaration]
       22 |         if (riscv_isa_extension_available(&isa, f) ||
          |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ../arch/riscv/kvm/vcpu_fp.c:22:49: error: ‘f’ undeclared (first use in this function)
       22 |         if (riscv_isa_extension_available(&isa, f) ||
    
    Fix this by simply including the necessary header.
    
    Fixes: 0a86512dc113 ("RISC-V: KVM: Factor-out FP virtualization into separate
    sources")
    Signed-off-by: Heiko Stuebner <heiko@xxxxxxxxx>
    Signed-off-by: Anup Patel <anup@xxxxxxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/arch/riscv/kvm/vcpu_fp.c b/arch/riscv/kvm/vcpu_fp.c
index 4449a976e5a6..d4308c512007 100644
--- a/arch/riscv/kvm/vcpu_fp.c
+++ b/arch/riscv/kvm/vcpu_fp.c
@@ -11,6 +11,7 @@
 #include <linux/err.h>
 #include <linux/kvm_host.h>
 #include <linux/uaccess.h>
+#include <asm/hwcap.h>
 
 #ifdef CONFIG_FPU
 void kvm_riscv_vcpu_fp_reset(struct kvm_vcpu *vcpu)



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux