common: cmd_ide: use __weak and add prototypes
authorJeroen Hofstee <jeroen@myspectrum.nl>
Sat, 12 Jul 2014 13:07:19 +0000 (15:07 +0200)
committerTom Rini <trini@ti.com>
Tue, 22 Jul 2014 11:44:26 +0000 (07:44 -0400)
commit288afdc9b97f00fa8422ea065e135f8423441cd7
tree595015f2b4330d3284125308a37b6d6fbdd588c2
parent2bb8eb8ec61026ed371481ac8490c3a1fcf82131
common: cmd_ide: use __weak and add prototypes

clang chokes about the concept of having an alias to an
always_inlined function. gcc likely just ignores the always
inlined since binary sizes are equal before and after this
patch. Convert the aliases to weak functions and provide
missing prototypes.

cc: Pavel Herrmann <morpheus.ibis@gmail.com>
Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl>
common/cmd_ide.c
include/ide.h