]> granicus.if.org Git - zfs/commitdiff
Fix multi-line error messages in blkdev_compat.h
authorbunder2015 <omfgbunder@gmail.com>
Tue, 7 Mar 2017 17:54:55 +0000 (12:54 -0500)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 7 Mar 2017 17:54:55 +0000 (09:54 -0800)
Fix multi-line error messages in blkdev_compat.h by changing
error-generating multi-line error messages to single line errors.

Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed-by: Giuseppe Di Natale <dinatale2@llnl.gov>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: bunder2015 <omfgbunder@gmail.com>
Closes #5860

include/linux/blkdev_compat.h

index 8de0669ca3c54d6f3b8a8eda738c38fbfa255612..881c038a83b1e05692eb407bc1a0406895b4158b 100644 (file)
@@ -351,8 +351,6 @@ bio_set_flush(struct bio *bio)
        bio_set_op_attrs(bio, 0, REQ_PREFLUSH);
 #else
 #error "Allowing the build will cause bio_set_flush requests to be ignored."
-       "Please file an issue report at: "
-       "https://github.com/zfsonlinux/zfs/issues/new"
 #endif
 }
 
@@ -393,8 +391,7 @@ bio_is_flush(struct bio *bio)
 #elif defined(REQ_FLUSH)
        return (bio->bi_rw & REQ_FLUSH);
 #else
-#error "Allowing the build will cause flush requests to be ignored. Please "
-       "file an issue report at: https://github.com/zfsonlinux/zfs/issues/new"
+#error "Allowing the build will cause flush requests to be ignored."
 #endif
 }
 
@@ -413,8 +410,7 @@ bio_is_fua(struct bio *bio)
 #elif defined(REQ_FUA)
        return (bio->bi_rw & REQ_FUA);
 #else
-#error "Allowing the build will cause fua requests to be ignored. Please "
-       "file an issue report at: https://github.com/zfsonlinux/zfs/issues/new"
+#error "Allowing the build will cause fua requests to be ignored."
 #endif
 }
 
@@ -445,9 +441,8 @@ bio_is_discard(struct bio *bio)
 #elif defined(REQ_DISCARD)
        return (bio->bi_rw & REQ_DISCARD);
 #else
-#error "Allowing the build will cause discard requests to become writes "
-       "potentially triggering the DMU_MAX_ACCESS assertion. Please file "
-       "an issue report at: https://github.com/zfsonlinux/zfs/issues/new"
+/* potentially triggering the DMU_MAX_ACCESS assertion.  */
+#error "Allowing the build will cause discard requests to become writes."
 #endif
 }