Bug 247132

Summary: Fix build error: use of undeclared identifier 'cpu_model'
Product: Base System Reporter: mans0n
Component: miscAssignee: freebsd-bugs (Nobody) <bugs>
Status: Open ---    
Severity: Affects Some People CC: mips, sgalabov
Priority: --- Keywords: easy, needs-qa
Version: CURRENTFlags: koobs: maintainer-feedback? (sgalabov)
koobs: mfc-stable12?
koobs: mfc-stable11?
Hardware: mips   
OS: Any   
Attachments:
Description Flags
patch to fix mips kernel build none

Description mans0n 2020-06-10 03:13:37 UTC
Created attachment 215414 [details]
patch to fix mips kernel build

This patch fixes the following compile errors:

/build/freebsd/sys/mips/mediatek/mtk_soc.c:415:3: error: use of undeclared identifier 'cpu_model'
                cpu_model[idx] = chipid0_3[idx];
                ^
/build/freebsd/sys/mips/mediatek/mtk_clock.c:126:39: error: variable 'mask' is uninitialized when used here [-Werror,-Wuninitialized]
        if (mtk_sysctl_get(SYSCTL_CLKCFG1) & mask)
                                             ^~~~
/build/freebsd/sys/dev/rt/if_rt.c:314:54: error: cast from 'char **' to 'const char **' must have all intermediate pointers const qualified to be safe [-Werror,-Wcast-qual]
            device_get_unit(dev), "macaddr", (const char **)&var)) {