This is an automated email from the ASF dual-hosted git repository.

GUIDINGLI pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 815e22a7bf8 drivers/pci/pci_epc: create the DMA heap with 
mm_initialize()
815e22a7bf8 is described below

commit 815e22a7bf8e82036044a3b5109c2a175295784f
Author: Bowen Wang <[email protected]>
AuthorDate: Thu Nov 26 02:07:57 2026 +0800

    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 PCI_ENDPOINT does not build:
    
      drivers/pci/pci_epc.c:1002:75: error: macro "mm_initialize_pool"
      passed 4 arguments, but takes just 2
    
    The call passed no mempool configuration, so use mm_initialize(), which
    creates the same plain heap.
    
    Signed-off-by: Bowen Wang <[email protected]>
---
 drivers/pci/pci_epc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/pci/pci_epc.c b/drivers/pci/pci_epc.c
index 8034a4be6b5..532291b2a8a 100644
--- a/drivers/pci/pci_epc.c
+++ b/drivers/pci/pci_epc.c
@@ -999,7 +999,7 @@ pci_epc_create(FAR const char *name, FAR void *priv, FAR 
void *dma_addr,
 
   if (dma_addr != NULL && dma_len != 0)
     {
-      epc->dmaheap = mm_initialize_pool("pci_dma", dma_addr, dma_len, NULL);
+      epc->dmaheap = mm_initialize("pci_dma", dma_addr, dma_len);
       if (epc->dmaheap == NULL)
         {
           pcierr("Create DMA heap error \n");

Reply via email to