riscv: fix kernel build

A more complete fix for this function is being worked on in D28054. Fix
the uninitialized variable error so that builds can at least proceed.

Reported by:	several
This commit is contained in:
Mitchell Horne 2021-01-15 11:41:51 -04:00
parent 510cc42126
commit 0b92d1dd18

View File

@ -122,6 +122,7 @@ dtrace_getustack_common(uint64_t *pcstack, int pcstack_limit, uintptr_t pc,
uintptr_t oldfp;
int ret;
oldfp = fp;
ret = 0;
flags = (volatile uint16_t *)&cpu_core[curcpu].cpuc_dtrace_flags;
@ -157,6 +158,7 @@ dtrace_getustack_common(uint64_t *pcstack, int pcstack_limit, uintptr_t pc,
cpu_core[curcpu].cpuc_dtrace_illval = fp;
break;
}
oldfp = fp;
}
return (ret);