On Wed, Aug 28, 2019 at 11:28:59AM +0100, Rui Miguel Silva wrote:
> More headers needed to be fixed when moving greybus out of staging and
> enabling the COMPILE_TEST option.
> 
> Reported-by: kbuild test robot <l...@intel.com>
> Signed-off-by: Rui Miguel Silva <rui.si...@linaro.org>
> ---
>  include/linux/greybus/operation.h | 1 +
>  include/linux/greybus/svc.h       | 2 ++
>  2 files changed, 3 insertions(+)
> 
> diff --git a/include/linux/greybus/operation.h 
> b/include/linux/greybus/operation.h
> index 8ca864bba23e..bfbc56d8d863 100644
> --- a/include/linux/greybus/operation.h
> +++ b/include/linux/greybus/operation.h
> @@ -15,6 +15,7 @@
>  #include <linux/types.h>
>  #include <linux/workqueue.h>
>  
> +#include "hd.h"

No need to include hd.h, you only need a forward declaration of struct
gb_host_device.

>  struct gb_operation;
>  
> diff --git a/include/linux/greybus/svc.h b/include/linux/greybus/svc.h
> index 507f8bd4e4c8..11a86504c429 100644
> --- a/include/linux/greybus/svc.h
> +++ b/include/linux/greybus/svc.h
> @@ -12,6 +12,8 @@
>  #include <linux/types.h>
>  #include <linux/device.h>
>  
> +#include "greybus_protocols.h"

Same here, no need to include all the protocol definitions for struct
gb_svc_l2_timer_cfg.

> +
>  #define GB_SVC_CPORT_FLAG_E2EFC              BIT(0)
>  #define GB_SVC_CPORT_FLAG_CSD_N              BIT(1)
>  #define GB_SVC_CPORT_FLAG_CSV_N              BIT(2)

Johan
_______________________________________________
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Reply via email to