From fb9b53026d33a35ba6180b415e6e2aa87c75203e Mon Sep 17 00:00:00 2001 From: Avimitin Date: Wed, 23 Mar 2022 03:36:59 +0000 Subject: [PATCH] Add riscv64 support (#14601) In riscv64, the `syscall.Uname` function will return a uint8 slice. func main() { var buf syscall.Utsname fmt.Printf("Buffer Type: %T\n", buf.Release) } output: Buffer Type: [65]uint8 This is tested in the Arch Linux RISC-V 64 QEMU environment. Signed-off-by: Avimitin --- internal/kernel/kernel_utsname_uint8.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/kernel/kernel_utsname_uint8.go b/internal/kernel/kernel_utsname_uint8.go index 848e7769b..49e5d672d 100644 --- a/internal/kernel/kernel_utsname_uint8.go +++ b/internal/kernel/kernel_utsname_uint8.go @@ -15,8 +15,8 @@ // You should have received a copy of the GNU Affero General Public License // along with this program. If not, see . -//go:build (linux && arm) || (linux && ppc64) || (linux && ppc64le) || (linux && s390x) -// +build linux,arm linux,ppc64 linux,ppc64le linux,s390x +//go:build (linux && arm) || (linux && ppc64) || (linux && ppc64le) || (linux && s390x)|| (linux && riscv64) +// +build linux,arm linux,ppc64 linux,ppc64le linux,s390x linux,riscv64 package kernel