[dpdk-test-report] |WARNING| pw51088 [PATCH 04/15] bus/pci: factor out various ifdefs in pci_uio_ioport_{read, write}

checkpatch at dpdk.org checkpatch at dpdk.org
Mon Mar 11 18:38:48 CET 2019


Test-Label: checkpatch
Test-Status: WARNING
http://dpdk.org/patch/51088

_coding style issues_


ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parentheses
#63: FILE: drivers/bus/pci/linux/pci_uio.c:53:
+#define pci_uio_inl(reg) *(volatile uint32_t *)(reg)

ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parentheses
#64: FILE: drivers/bus/pci/linux/pci_uio.c:54:
+#define pci_uio_inw(reg) *(volatile uint16_t *)(reg)

ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parentheses
#65: FILE: drivers/bus/pci/linux/pci_uio.c:55:
+#define pci_uio_inb(reg) *(volatile uint8_t *)(reg)

ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parentheses
#67: FILE: drivers/bus/pci/linux/pci_uio.c:57:
+#define pci_uio_outl_p(value, reg) *(volatile uint32_t *)(reg) = (value)

ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parentheses
#68: FILE: drivers/bus/pci/linux/pci_uio.c:58:
+#define pci_uio_outw_p(value, reg) *(volatile uint16_t *)(reg) = (value)

ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parentheses
#69: FILE: drivers/bus/pci/linux/pci_uio.c:59:
+#define pci_uio_outb_p(value, reg) *(volatile uint8_t *)(reg) = (value)

total: 6 errors, 0 warnings, 93 lines checked


More information about the test-report mailing list