From 18c99d3e630d8392a85328ae10bcecb21f75b6c8 Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Sun, 25 Dec 2022 13:31:38 +0100 Subject: [PATCH] Update dynamic_arm64.c --- driver/others/dynamic_arm64.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/driver/others/dynamic_arm64.c b/driver/others/dynamic_arm64.c index 55e507796..13d5d3731 100644 --- a/driver/others/dynamic_arm64.c +++ b/driver/others/dynamic_arm64.c @@ -128,6 +128,9 @@ extern gotoblas_t gotoblas_NEOVERSEN1; #ifndef NO_SVE extern gotoblas_t gotoblas_NEOVERSEV1; extern gotoblas_t gotoblas_NEOVERSEN2; +#else +#define gotoblas_NEOVERSEV1 gotoblas_ARMV8; +#define gotoblas_NEOVERSEN2 gotoblas_ARMV8; #endif extern gotoblas_t gotoblas_THUNDERX3T110; extern gotoblas_t gotoblas_CORTEXA55; @@ -239,7 +242,7 @@ static gotoblas_t *get_coretype(void) { p = (char *) NULL ; infile = fopen("/sys/devices/system/cpu/cpu0/regs/identification/midr_el1","r"); if (!infile) return NULL; - fgets(buffer, sizeof(buffer), infile); + (void)fgets(buffer, sizeof(buffer), infile); midr_el1=strtoul(buffer,NULL,16); fclose(infile); #else