On Thu, 25 Jan 2018 00:25:00 +0100 Adrien Mazarguil <adrien.mazarguil at 6wind.com> wrote: > +const struct mlx4_glue *mlx4_glue = &(const struct mlx4_glue){ > + .fork_init = mlx4_glue_fork_init, > + .get_async_event = mlx4_glue_get_async_event, The cast should not be necessary here.