On Tue, 22 Sep 2020 08:50:58 -0700 David Awogbemila wrote: > + dev_opt = (struct gve_device_option *)((void *)descriptor + > + sizeof(*descriptor));
You don't need to cast void pointers to types. The idiomatic way to get end of structure in C is: &descriptor[1] or descriptor + 1.