[PATCH v2 03/35] common: Move flash_perror() to flash.h