These patches enhance kernel style usage, and make use of the resource_size() function instead of explicit computation. The semantic patch at scripts/coccinelle/api/resource_size.cocci was used to detect and edit this situation.