mfd: qnap-mcu: include linux/types.h in qnap-mcu.h shared

A patch from »mfd: qnap-mcu: Some fixes / improvements« in state Mainline for linux-kernel

From: Heiko Stuebner <heiko@...> Date: Wed, 23 Jul 2025 09:59:44 +0200

Commit-Message

Relying on other components to include those basic types is unrelyable 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@...>

Patch-Comment

include/linux/mfd/qnap-mcu.h | 2 ++ 1 file changed, 2 insertions(+)

Statistics

  • 2 lines added
  • 0 lines removed

Changes

------------------------- include/linux/mfd/qnap-mcu.h -------------------------
index 8d48c212fd44..42bf523f9a5b 100644
@@ -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 {
 
 

Recent Patches

About Us

Sed lacus. Donec lectus. Nullam pretium nibh ut turpis. Nam bibendum. In nulla tortor, elementum vel, tempor at, varius non, purus. Mauris vitae nisl nec metus placerat consectetuer.

Read More...