Author: hselasky
Date: Fri Dec  9 15:01:37 2016
New Revision: 309736
URL: https://svnweb.freebsd.org/changeset/base/309736

Log:
  Prefer function macros over regular macros in the LinuxKPI.
  
  MFC after:    1 week
  Sponsored by: Mellanox Technologies

Modified:
  head/sys/compat/linuxkpi/common/include/linux/pci.h

Modified: head/sys/compat/linuxkpi/common/include/linux/pci.h
==============================================================================
--- head/sys/compat/linuxkpi/common/include/linux/pci.h Fri Dec  9 14:51:05 
2016        (r309735)
+++ head/sys/compat/linuxkpi/common/include/linux/pci.h Fri Dec  9 15:01:37 
2016        (r309736)
@@ -537,9 +537,9 @@ static inline void pci_disable_sriov(str
 #define        PCI_DMA_NONE            3
 
 #define        pci_pool                dma_pool
-#define pci_pool_destroy       dma_pool_destroy
-#define pci_pool_alloc         dma_pool_alloc
-#define pci_pool_free          dma_pool_free
+#define        pci_pool_destroy(...)   dma_pool_destroy(__VA_ARGS__)
+#define        pci_pool_alloc(...)     dma_pool_alloc(__VA_ARGS__)
+#define        pci_pool_free(...)      dma_pool_free(__VA_ARGS__)
 #define        pci_pool_create(_name, _pdev, _size, _align, _alloc)            
\
            dma_pool_create(_name, &(_pdev)->dev, _size, _align, _alloc)
 #define        pci_free_consistent(_hwdev, _size, _vaddr, _dma_handle)         
\
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to