Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 19afaa8c authored by Naitik Bharadiya's avatar Naitik Bharadiya
Browse files

block: Remove compiler built in function checks for bio_set_op_attrs



With the new optimization changes and new flag support makes SDLLVM 8.0
to behave different on few built in compiler functions than that of GCC.
This causing a compilation break with clang.

So, remove compiler built in function checks that don't have
any functional impact to fix this compilation errors.

Change-Id: I71ba68baeba7df905c6f05eeb39cbfa97f20e1bb
Signed-off-by: default avatarNaitik Bharadiya <bharad@codeaurora.org>
parent fa0ce189
Loading
Loading
Loading
Loading
+2 −8
Original line number Diff line number Diff line
@@ -109,13 +109,7 @@ struct bio {
#define bio_op(bio)	((bio)->bi_opf >> BIO_OP_SHIFT)

#define bio_set_op_attrs(bio, op, op_flags) do {			\
	if (__builtin_constant_p(op))					\
		BUILD_BUG_ON((op) + 0U >= (1U << REQ_OP_BITS));		\
	else								\
	WARN_ON_ONCE((op) + 0U >= (1U << REQ_OP_BITS));			\
	if (__builtin_constant_p(op_flags))				\
		BUILD_BUG_ON((op_flags) + 0U >= (1U << BIO_OP_SHIFT));	\
	else								\
	WARN_ON_ONCE((op_flags) + 0U >= (1U << BIO_OP_SHIFT));		\
	(bio)->bi_opf = bio_flags(bio);					\
	(bio)->bi_opf |= (((op) + 0U) << BIO_OP_SHIFT);			\