From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by dpdk.org (Postfix, from userid 1017) id C0EB91BA6E; Thu, 26 Oct 2017 00:42:09 +0200 (CEST) In-Reply-To: References: To: test-report@dpdk.org Cc: Gaetan Rivet Message-Id: <20171025224209.C0EB91BA6E@dpdk.org> Date: Thu, 26 Oct 2017 00:42:09 +0200 (CEST) From: checkpatch@dpdk.org Subject: [dpdk-test-report] |WARNING| pw30927 [PATCH v7 23/25] pci: introduce PCI lib and bus X-BeenThere: test-report@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: automatic DPDK test reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Oct 2017 22:42:10 -0000 Test-Label: checkpatch Test-Status: WARNING http://dpdk.org/patch/30927 _coding style issues_ WARNING:LONG_LINE: line over 90 characters #476: FILE: drivers/bus/pci/bsd/pci.c:157: + "skipping ", loc->domain, loc->bus, loc->devid, loc->function); WARNING:UNSPECIFIED_INT: Prefer 'unsigned int' to bare use of 'unsigned' #567: FILE: drivers/bus/pci/bsd/pci.c:248: + unsigned i, max; WARNING:BRACES: braces {} are not necessary for single statement blocks #570: FILE: drivers/bus/pci/bsd/pci.c:251: + if (dev == NULL) { + return -1; + } WARNING:LONG_LINE: line over 90 characters #631: FILE: drivers/bus/pci/bsd/pci.c:312: + dev->mem_resource[i].addr = (void *)(bar.pbi_base & ~((uint64_t)0xf)); ERROR:ELSE_AFTER_BRACE: else should follow close brace '}' #641: FILE: drivers/bus/pci/bsd/pci.c:322: + } + else { WARNING:UNSPECIFIED_INT: Prefer 'unsigned int' to bare use of 'unsigned' #680: FILE: drivers/bus/pci/bsd/pci.c:361: + unsigned dev_count = 0; WARNING:UNSPECIFIED_INT: Prefer 'unsigned int' to bare use of 'unsigned' #701: FILE: drivers/bus/pci/bsd/pci.c:382: + unsigned i; ERROR:SPACING: space required before the open parenthesis '(' #713: FILE: drivers/bus/pci/bsd/pci.c:394: + } while(conf_io.status == PCI_GETCONF_MORE_DEVS); ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parentheses #1120: FILE: drivers/bus/pci/include/rte_bus_pci.h:114: +#define RTE_PCI_DEVICE(vend, dev) \ + RTE_CLASS_ANY_ID, \ + (vend), \ + (dev), \ + PCI_ANY_ID, \ + PCI_ANY_ID WARNING:UNSPECIFIED_INT: Prefer 'unsigned int' to bare use of 'unsigned' #1547: FILE: drivers/bus/pci/linux/pci.c:153: + unsigned i = 0; ERROR:SPACING: spaces required around that '<' (ctx:VxV) #1609: FILE: drivers/bus/pci/linux/pci.c:215: + for (i = 0; idomain, loc->bus, loc->devid, loc->function); WARNING:BLOCK_COMMENT_STYLE: Block comments use a trailing */ on a separate line #2729: FILE: drivers/bus/pci/linux/pci_uio.c:398: + * uin16_t */ WARNING:LONG_LINE: line over 90 characters #3036: FILE: drivers/bus/pci/linux/pci_vfio.c:131: + VFIO_GET_REGION_ADDR(VFIO_PCI_CONFIG_REGION_INDEX) + WARNING:LONG_LINE: line over 90 characters #3053: FILE: drivers/bus/pci/linux/pci_vfio.c:148: + VFIO_GET_REGION_ADDR(VFIO_PCI_CONFIG_REGION_INDEX) + WARNING:LONG_LINE: line over 90 characters #3062: FILE: drivers/bus/pci/linux/pci_vfio.c:157: + VFIO_GET_REGION_ADDR(VFIO_PCI_CONFIG_REGION_INDEX) + WARNING:BLOCK_COMMENT_STYLE: Block comments use a trailing */ on a separate line #3168: FILE: drivers/bus/pci/linux/pci_vfio.c:263: + * specified interrupt type, otherwise continue */ WARNING:UNNECESSARY_ELSE: else is not generally useful after a break or return #3174: FILE: drivers/bus/pci/linux/pci_vfio.c:269: + return -1; + } else WARNING:LONG_LINE: line over 90 characters #3407: FILE: drivers/bus/pci/linux/pci_vfio.c:502: + "error %i (%s) ", pci_addr, errno, strerror(errno)); total: 7 errors, 21 warnings, 5856 lines checked