diff options
| author | Heiko Stuebner <heiko@sntech.de> | 2025-08-04 16:07:23 +0300 |
|---|---|---|
| committer | Lee Jones <lee@kernel.org> | 2025-10-01 12:28:13 +0300 |
| commit | 5e1c88679174e4bfe5d152060b06d370bd85de80 (patch) | |
| tree | c58b214c29e64eba80184ff056b0f89e547b2549 | |
| parent | 309e65d151ab9be1e7b01d822880cd8c4e611dff (diff) | |
| download | linux-5e1c88679174e4bfe5d152060b06d370bd85de80.tar.xz | |
mfd: qnap-mcu: Include linux/types.h in qnap-mcu.h shared header
Relying on other components to include those basic types is unreliable
and may cause compile errors like:
../include/linux/mfd/qnap-mcu.h:13:9: error: unknown type name ‘u32’
13 | u32 baud_rate;
| ^~~
../include/linux/mfd/qnap-mcu.h:17:9: error: unknown type name ‘bool’
17 | bool usb_led;
| ^~~~
So make sure, the types used in the header are available.
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link: https://lore.kernel.org/r/20250804130726.3180806-2-heiko@sntech.de
Signed-off-by: Lee Jones <lee@kernel.org>
| -rw-r--r-- | include/linux/mfd/qnap-mcu.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/mfd/qnap-mcu.h b/include/linux/mfd/qnap-mcu.h index 8d48c212fd44..42bf523f9a5b 100644 --- a/include/linux/mfd/qnap-mcu.h +++ b/include/linux/mfd/qnap-mcu.h @@ -7,6 +7,8 @@ #ifndef _LINUX_QNAP_MCU_H_ #define _LINUX_QNAP_MCU_H_ +#include <linux/types.h> + struct qnap_mcu; struct qnap_mcu_variant { |
