mtd: add prototypes for weak function