From: Matti Vaittinen Date: Wed, 16 Nov 2022 19:08:19 +0000 (-0800) Subject: fixp-arith: do not require users to include bug.h X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=5e7a0af793ce7ed528117145f856224deb81b7a7;p=linux.git fixp-arith: do not require users to include bug.h The fixp_sin32_rad() contains a call to BUG_ON(). If users of fixp-arith.h have not included the bug.h prior including the fixp-arith.h the compiler will not find the BUG_ON. Thus every user of fixp-arith.h must also include bug.h (or roll own variant of BUG_ON()). Include bug.h from fixp-arith.h so every user of fixp-arith.h does not need to include the bug.h prior inclusion of fixp-arith.h Fixes: 559addc25b00 ("[media] fixp-arith: replace sin/cos table by a better precision one") Signed-off-by: Matti Vaittinen Link: https://lore.kernel.org/r/Y3SgVdVey9legtX+@dc75zzyyyyyyyyyyyyydt-3.rev.dnainternet.fi Signed-off-by: Dmitry Torokhov --- diff --git a/include/linux/fixp-arith.h b/include/linux/fixp-arith.h index 281cb4f83dbeb..e485fb0c1201e 100644 --- a/include/linux/fixp-arith.h +++ b/include/linux/fixp-arith.h @@ -2,6 +2,7 @@ #ifndef _FIXP_ARITH_H #define _FIXP_ARITH_H +#include #include /*