[PATCH openEuler-21.09 102/147] crypto: hisilicon/hpre - replace macro with inline function