FreeBSD Bugzilla – Attachment 215414 Details for
Bug 247132
Fix build error: use of undeclared identifier 'cpu_model'
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch to fix mips kernel build
new.diff (text/plain), 854 bytes, created by
mans0n
on 2020-06-10 03:13:37 UTC
(
hide
)
Description:
patch to fix mips kernel build
Filename:
MIME Type:
Creator:
mans0n
Created:
2020-06-10 03:13:37 UTC
Size:
854 bytes
patch
obsolete
>--- a/sys/dev/rt/if_rt.c >+++ b/sys/dev/rt/if_rt.c >@@ -286,7 +286,7 @@ generate_mac(uint8_t *mac) > static int > ether_request_mac(device_t dev, uint8_t *mac) > { >- char *var; >+ const char *var; > > /* > * "ethaddr" is passed via envp on RedBoot platforms >--- a/sys/mips/mediatek/mtk_clock.c >+++ b/sys/mips/mediatek/mtk_clock.c >@@ -123,6 +123,8 @@ mtk_clock_get_info(device_t dev, int index, struct fdt_clock_info *info) > if (index < 0 || index > 31 || info == NULL) > return (EINVAL); > >+ mask = (1u << index); >+ > if (mtk_sysctl_get(SYSCTL_CLKCFG1) & mask) > info->flags = FDT_CIFLAG_RUNNING; > else >--- a/sys/mips/mediatek/mtk_soc.c >+++ b/sys/mips/mediatek/mtk_soc.c >@@ -35,6 +35,7 @@ __FBSDID("$FreeBSD$"); > #include <sys/rman.h> > > #include <machine/fdt.h> >+#include <machine/md_var.h> > > #include <dev/ofw/openfirm.h> > #include <dev/ofw/ofw_bus.h>
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 247132
: 215414