[U-Boot] [PATCH] cmd_mmc: make curr_device static
Wolfgang Denk
wd at denx.de
Fri Jul 17 22:14:54 CEST 2009
Dear Mike Frysinger,
In message <1245029722-14514-1-git-send-email-vapier at gentoo.org> you wrote:
> The curr_device variable isn't used outside of cmd_mmc, so mark it static
> to avoid conflicts with other pieces of code (like sata which also exports
> a curr_device). Otherwise we end up with stuff like:
> common/libcommon.a(cmd_sata.o):(.data.curr_device+0x0):
> multiple definition of `curr_device'
> common/libcommon.a(cmd_mmc.o):(.data.curr_device+0x0): first defined here
>
> Signed-off-by: Mike Frysinger <vapier at gentoo.org>
> ---
> common/cmd_mmc.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
Applied, thanks.
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
You're dead, Jim.
-- McCoy, "Amok Time", stardate 3372.7
More information about the U-Boot
mailing list