Date: Sat, 05 Dec 2020 19:55:56 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 251615] Mediatek MT7628 buildkernel failed Message-ID: <bug-251615-227@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D251615 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@FreeBSD.org Reporter: trees@neti.ee Created attachment 220290 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D220290&action= =3Dedit 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] =3D chipid0_3[idx]; ^ /src/sys/mips/mediatek/mtk_soc.c:416:3: error: use of undeclared identifier 'cpu_model' cpu_model[idx + offset] =3D chipid4_7[idx]; ^ /src/sys/mips/mediatek/mtk_soc.c:420:2: error: use of undeclared identifier 'cpu_model' cpu_model[2 * offset] =3D 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 'm= ask' to silence this warning uint32_t mask; ^ =3D 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. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-251615-227>