Bug 247132 - Fix build error: use of undeclared identifier 'cpu_model'
Summary: Fix build error: use of undeclared identifier 'cpu_model'
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: misc (show other bugs)
Version: CURRENT
Hardware: mips Any
: --- Affects Some People
Assignee: freebsd-bugs (Nobody)
URL:
Keywords: easy, needs-qa
Depends on:
Blocks:
 
Reported: 2020-06-10 03:13 UTC by mans0n
Modified: 2020-06-10 03:48 UTC (History)
2 users (show)

See Also:
koobs: maintainer-feedback? (sgalabov)
koobs: mfc-stable12?
koobs: mfc-stable11?


Attachments
patch to fix mips kernel build (854 bytes, patch)
2020-06-10 03:13 UTC, mans0n
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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)) {