usb: typec: include linux/device.h in ucsi.h
Subsystems (2)
PATCH 1/1 usb: typec: include linux/device.h in ucsi.h
The new driver causes a build failure in some configurations:
In file included from /git/arm-soc/drivers/usb/typec/ucsi/trace.h:9:0,
from /git/arm-soc/drivers/usb/typec/ucsi/trace.c:2:drivers/usb/typec/ucsi/ucsi.h:331:39: error: 'struct device' declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
This includes the required header file.
--- drivers/usb/typec/ucsi/ucsi.h | 1 + 1 file changed, 1 insertion(+)
drivers/usb/typec/ucsi/ucsi.h +1 -0
@@ -3,6 +3,7 @@#define __DRIVER_USB_TYPEC_UCSI_H#include <linux/bitops.h> +#include <linux/device.h> #include <linux/types.h> /* -------------------------------------------------------------------------- */
Signature · 1 line
2.9.0
Quoted 10 lines · Arnd Bergmann
The new driver causes a build failure in some configurations:
In file included from /git/arm-soc/drivers/usb/typec/ucsi/trace.h:9:0,
from /git/arm-soc/drivers/usb/typec/ucsi/trace.c:2:drivers/usb/typec/ucsi/ucsi.h:331:39: error: 'struct device' declared inside parameter list will not be visible outside of this definition or declaration [-Werror]This includes the required header file.
Fixes c1b0bc2dabfa ("usb: typec: Add support for UCSI interface")Signed-off-by Arnd Bergmann <[email protected]>
Quoted 17 lines
--- drivers/usb/typec/ucsi/ucsi.h | 1 + 1 file changed, 1 insertion(+)drivers/usb/typec/ucsi/ucsi.h +1
-0@@ -3,6 +3,7 @@#define __DRIVER_USB_TYPEC_UCSI_H#include <linux/bitops.h> +#include <linux/device.h> #include <linux/types.h> /* -------------------------------------------------------------------------- */
Quoted 10 lines · Arnd Bergmann
The new driver causes a build failure in some configurations:
In file included from /git/arm-soc/drivers/usb/typec/ucsi/trace.h:9:0,
from /git/arm-soc/drivers/usb/typec/ucsi/trace.c:2:drivers/usb/typec/ucsi/ucsi.h:331:39: error: 'struct device' declared inside parameter list will not be visible outside of this definition or declaration [-Werror]This includes the required header file.
Fixes c1b0bc2dabfa ("usb: typec: Add support for UCSI interface")Signed-off-by Arnd Bergmann <[email protected]>
Quoted 18 lines
--- drivers/usb/typec/ucsi/ucsi.h | 1 + 1 file changed, 1 insertion(+)drivers/usb/typec/ucsi/ucsi.h +1
-0@@ -3,6 +3,7 @@#define __DRIVER_USB_TYPEC_UCSI_H#include <linux/bitops.h> +#include <linux/device.h> #include <linux/types.h> /* -------------------------------------------------------------------------- */ Signature · 1 line
2.9.0
Signature · 1 line
heikki