Messages in this thread | | | Date | Thu, 26 Jan 2023 16:57:18 -0800 | Subject | Re: [RFC] mm: Allow ZONE_DMA32 to be disabled via kernel command line | From | Randy Dunlap <> |
| |
On 1/26/23 10:51, Dave Hansen wrote: > On 1/26/23 08:43, Georgi Djakov wrote: >> From: Chris Goldsworthy <quic_cgoldswo@quicinc.com>
>> +static int __init early_disable_dma32(char *buf) >> +{ >> + if (!buf) >> + return -EINVAL; >> + >> + if (!strcmp(buf, "on")) >> + disable_dma32 = true; >> + >> + return 0; >> +} >> +early_param("disable_dma32", early_disable_dma32); > > Ick. Is there no way to do this other than a cross-arch copy/paste?
I think that using __setup() instead of early_param() would allow that.
-- ~Randy
| |