soc: qcom: ramp_controller: Include linux/bitfield.h
authorBjorn Andersson <andersson@kernel.org>
Wed, 28 Dec 2022 17:32:58 +0000 (11:32 -0600)
committerBjorn Andersson <andersson@kernel.org>
Wed, 28 Dec 2022 17:32:58 +0000 (11:32 -0600)
Building ramp_controller under x86_64 results in the following build
error:

error: implicit declaration of function 'FIELD_PREP' is invalid in C99

Include linux/bitfield.h to ensure FIELD_PREP() is declared.

Signed-off-by: Bjorn Andersson <andersson@kernel.org>
drivers/soc/qcom/ramp_controller.c

index 8f8c514b72882b8d22c60a908a4b478d5e017948..93652b07e812d0c0507376db00a1e1676a2cba1d 100644 (file)
@@ -5,6 +5,7 @@
  *                     <angelogioacchino.delregno@collabora.com>
  */
 
+#include <linux/bitfield.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/of.h>