CV-Bowen opened a new pull request, #22346:
URL: https://github.com/apache/nuttx/pull/22346
## Summary
`drivers/pci/pci_epc: create the DMA heap with mm_initialize()`:
`mm_initialize_pool()` now takes a `struct mm_heap_config_s` and a mempool
configuration, but `pci_epc_create()` still calls the old four-argument
form, so any configuration with `CONFIG_PCI_ENDPOINT=y` fails to build:
```
drivers/pci/pci_epc.c:1002:75: error: macro "mm_initialize_pool" passed 4
arguments, but takes just 2
drivers/pci/pci_epc.c:1002:22: error: 'mm_initialize_pool' undeclared (first
use in this function); did you mean 'mm_initialize_heap'?
```
The call passed no mempool configuration (`NULL`), so `mm_initialize()`,
which creates the same plain heap, is the equivalent.
## Impact
Build fix only; the DMA heap is created as before. No in-tree defconfig
enables `PCI_ENDPOINT`, which is why CI did not catch it.
## Testing
qemu-armv8a:netnsh with `PCI_ENDPOINT`, `PCI_QEMU_EPC`, `PCI_EPF_TEST`
and the other PCI drivers enabled:
- master: fails with the errors above.
- this PR: builds and links with 0 warnings (with `PCI_MSIX` disabled;
with it enabled arm64 fails to link on `up_connect_irq`, before and
after this change).
Not run: the endpoint path at runtime (QEMU has no PCI endpoint
controller).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]