From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wolfgang Denk Date: Fri, 17 Jul 2009 22:16:15 +0200 Subject: [U-Boot] [PATCH] cmd_mmc: make curr_device static In-Reply-To: <200907151109.06151.vapier@gentoo.org> References: <1245029722-14514-1-git-send-email-vapier@gentoo.org> <200907151109.06151.vapier@gentoo.org> Message-ID: <20090717201615.3F980832E416@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Mike Frysinger, In message <200907151109.06151.vapier@gentoo.org> you wrote: > --nextPart4747607.DNTvaE3gLs > Content-Type: text/plain; > charset="iso-8859-1" > Content-Transfer-Encoding: quoted-printable > Content-Disposition: inline > > On Sunday 14 June 2009 21:35:21 Mike Frysinger 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 > > Wolfgang: were you waiting on some thing/one with this and the similar sata > cmd change ? or was it lost in the shuffle ? It was not lost. I was waiting for a few hours to work on patches... 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 When all is said and done, more is said than done.