From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by dpdk.org (Postfix, from userid 1017) id 0B7051BA8D; Thu, 26 Oct 2017 12:10:10 +0200 (CEST) In-Reply-To: <558a8f90bdb675545978e78ff19e2b370d7008f1.1509012196.git.gaetan.rivet@6wind.com> References: <558a8f90bdb675545978e78ff19e2b370d7008f1.1509012196.git.gaetan.rivet@6wind.com> To: test-report@dpdk.org Cc: Gaetan Rivet Message-Id: <20171026101010.0B7051BA8D@dpdk.org> Date: Thu, 26 Oct 2017 12:10:10 +0200 (CEST) From: checkpatch@dpdk.org Subject: [dpdk-test-report] |WARNING| pw30961 [PATCH v8 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: Thu, 26 Oct 2017 10:10:10 -0000 Test-Label: checkpatch Test-Status: WARNING http://dpdk.org/patch/30961 _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 #2741: FILE: drivers/bus/pci/linux/pci_uio.c:398: + * uin16_t */ WARNING:LONG_LINE: line over 90 characters #3048: 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 #3065: 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 #3074: 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 #3180: 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 #3186: FILE: drivers/bus/pci/linux/pci_vfio.c:269: + return -1; + } else WARNING:LONG_LINE: line over 90 characters #3419: FILE: drivers/bus/pci/linux/pci_vfio.c:502: + "error %i (%s) ", pci_addr, errno, strerror(errno)); total: 7 errors, 22 warnings, 5874 lines checked