[PATCH 4.18 099/197] powerpc: Fix size calculation using resource_size()