Add a catch-all for PCPU_MD_FIELDS. While we expect this to be
used in the kernel only (by virtue of checking for _KERNEL), ports like lsof (part of gtop) cheat. It sets _KERNEL, but does not set either AIM or E500. As such, PCPU_MD_FIELDS didn't get defined and the build broke. The catch-all is to define PCPU_MD_FIELDS with a dummy integer when at the end of line we ended up without a definition for it.
This commit is contained in:
parent
f2e7477d21
commit
d5bbdb25b5
@ -104,6 +104,13 @@ struct pmap;
|
||||
PCPU_MD_AIM_FIELDS \
|
||||
PCPU_MD_BOOKE_FIELDS
|
||||
#endif
|
||||
/*
|
||||
* Catch-all for ports (e.g. lsof, used by gtop)
|
||||
*/
|
||||
#ifndef PCPU_MD_FIELDS
|
||||
#define PCPU_MD_FIELDS \
|
||||
int pc_md_placeholder
|
||||
#endif
|
||||
|
||||
#define PCPUP ((struct pcpu *) powerpc_get_pcpup())
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user