2 and 3 looks good too, I only found two more typos:
+ return pg_comp_crc32c(crc, data, len);+};
That semicolon is not needed
And in the commit message:
"it has been intialized and if"
That should be initialized