[dpdk-test-report] |WARNING| pw30016 [PATCH v3] kni: fix build on SLE12 SP3

checkpatch at dpdk.org checkpatch at dpdk.org
Tue Oct 10 00:05:12 CEST 2017


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

_coding style issues_


WARNING:CONSTANT_COMPARISON: Comparisons should place the constant on the right side of the test
#41: FILE: lib/librte_eal/linuxapp/kni/compat.h:16:
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 4, 57))

WARNING:CONSTANT_COMPARISON: Comparisons should place the constant on the right side of the test
#44: FILE: lib/librte_eal/linuxapp/kni/compat.h:19:
+#elif (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 12, 28))

WARNING:CONSTANT_COMPARISON: Comparisons should place the constant on the right side of the test
#47: FILE: lib/librte_eal/linuxapp/kni/compat.h:22:
+#elif ((LINUX_VERSION_CODE >= KERNEL_VERSION(3, 0, 61)) && \

WARNING:CONSTANT_COMPARISON: Comparisons should place the constant on the right side of the test
#48: FILE: lib/librte_eal/linuxapp/kni/compat.h:23:
+	(LINUX_VERSION_CODE < KERNEL_VERSION(3, 1, 0)))

WARNING:CONSTANT_COMPARISON: Comparisons should place the constant on the right side of the test
#51: FILE: lib/librte_eal/linuxapp/kni/compat.h:26:
+#elif (LINUX_VERSION_CODE == KERNEL_VERSION(2, 6, 32))

WARNING:CONSTANT_COMPARISON: Comparisons should place the constant on the right side of the test
#54: FILE: lib/librte_eal/linuxapp/kni/compat.h:29:
+#elif (LINUX_VERSION_CODE == KERNEL_VERSION(2, 6, 27))

WARNING:CONSTANT_COMPARISON: Comparisons should place the constant on the right side of the test
#72: FILE: lib/librte_eal/linuxapp/kni/compat.h:86:
+	 RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(7, 4)) || \

total: 0 errors, 7 warnings, 43 lines checked


More information about the test-report mailing list