The file has references to DIV_ROUND_CLOSEST_ULL and struct device_node, which so far only worked because of headers previously included. Fix this to make the header self-contained. Signed-off-by: Ahmad Fatoum <a.fatoum@xxxxxxxxxxxxxx> --- include/pwm.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/pwm.h b/include/pwm.h index b90ac1de4220..e3a432b85252 100644 --- a/include/pwm.h +++ b/include/pwm.h @@ -3,8 +3,10 @@ #define __PWM_H #include <dt-bindings/pwm/pwm.h> +#include <linux/math.h> #include <errno.h> +struct device_node; struct pwm_device; struct device; -- 2.39.2