Minor style changes
authorSitsofe Wheeler <sitsofe@yahoo.com>
Wed, 28 Mar 2018 15:09:22 +0000 (16:09 +0100)
committerSitsofe Wheeler <sitsofe@yahoo.com>
Fri, 30 Mar 2018 15:29:59 +0000 (16:29 +0100)
Change some #endif comments to exactly match the starting #ifdef and
in crc files and make the second posixaio configure test more
descriptive.

Signed-off-by: Sitsofe Wheeler <sitsofe@yahoo.com>
configure
crc/crc32c-intel.c
crc/crc32c.h

index 1d8c7f18bb0bbb2ad35b30735693519679a2cb6f..38706a9263d289d7ae06592fdb26bd176d72f690 100755 (executable)
--- a/configure
+++ b/configure
@@ -600,7 +600,7 @@ int main(void)
 EOF
 if compile_prog "" "" "posixaio" ; then
   posix_aio="yes"
-elif compile_prog "" "-lrt" "posixaio"; then
+elif compile_prog "" "-lrt" "posixaio -lrt"; then
   posix_aio="yes"
   posix_aio_lrt="yes"
   LIBS="-lrt $LIBS"
index 9a2cefdedcaf288fa5a302c952f21410353b88ea..6e810a28f93608dfafcaac4bb6dec03bea526554 100644 (file)
@@ -84,4 +84,4 @@ void crc32c_intel_probe(void)
        }
 }
 
-#endif /* ARCH_HAVE_SSE */
+#endif /* ARCH_HAVE_SSE4_2 */
index 08755cc8cfafc37f565b65de2a4677c8a5938a87..18f1161d0a7127cda69eb492574d7b4a8fd8fcb3 100644 (file)
@@ -45,7 +45,7 @@ extern void crc32c_intel_probe(void);
 static inline void crc32c_intel_probe(void)
 {
 }
-#endif
+#endif /* ARCH_HAVE_SSE4_2 */
 
 static inline uint32_t fio_crc32c(unsigned char const *buf, unsigned long len)
 {