[Bug 251615] Mediatek MT7628 buildkernel failed
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sat Dec 5 19:55:56 UTC 2020
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=251615
Bug ID: 251615
Summary: Mediatek MT7628 buildkernel failed
Product: Base System
Version: CURRENT
Hardware: mips
OS: Any
Status: New
Severity: Affects Some People
Priority: ---
Component: kern
Assignee: bugs at FreeBSD.org
Reporter: trees at neti.ee
Created attachment 220290
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=220290&action=edit
My patch for medatek mt76x8
I compile Medaitek MT7688 kernel. I get three errors.
First error:
/src/sys/mips/mediatek/mtk_soc.c:415:3: error: use of undeclared identifier
'cpu_model'
cpu_model[idx] = chipid0_3[idx];
^
/src/sys/mips/mediatek/mtk_soc.c:416:3: error: use of undeclared identifier
'cpu_model'
cpu_model[idx + offset] = chipid4_7[idx];
^
/src/sys/mips/mediatek/mtk_soc.c:420:2: error: use of undeclared identifier
'cpu_model'
cpu_model[2 * offset] = 0;
^
Second error:
/src/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)
^~~~
/src/sys/mips/mediatek/mtk_clock.c:121:15: note: initialize the variable 'mask'
to silence this warning
uint32_t mask;
^
= 0
Third error:
/src/sys/dev/rt/if_rt.c:315: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)) {
^
I patch the problems for me. Can somebody look the patch over and add it or
make better solution.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list