On Mon, Apr 29, 2024 at 05:04:30PM +0530, Kanchan Joshi wrote: > >> + return (struct bio_vec){0}; > > > > No need for the 0 here. > Um, I did not follow. Need that to keep the compiler happy. > Do you suggest to change the prototype. Just removing the NULL as in: return (struct bio_vec){ }; compiles just fine here, and at least for non-anonymous struct initializers we use it all the time.