From: Wolfgang Denk Date: Fri, 17 Dec 2010 21:07:52 +0100 Subject: [U-Boot] [RFC PATCH 1/2] hashtable: drop all non-reentrant versions In-Reply-To: <1291807565-4831-1-git-send-email-vapier@gentoo.org> References: <1291807565-4831-1-git-send-email-vapier@gentoo.org> Message-ID: <20101217200752.1770DB19C@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 <1291807565-4831-1-git-send-email-vapier@gentoo.org> you wrote: > The non-reentrant versions of the hashtable functions operate on a single > shared hashtable. So if two different people try using these funcs for > two different purposes, they'll cause problems for the other. > > Avoid this by converting all existing hashtable consumers over to the > reentrant versions and then punting the non-reentrant ones. > > Signed-off-by: Mike Frysinger > --- > common/cmd_nvedit.c | 18 +++++++++--------- > common/env_common.c | 6 ++++-- > common/env_dataflash.c | 2 +- > common/env_eeprom.c | 2 +- > common/env_flash.c | 4 ++-- > common/env_mmc.c | 2 +- > common/env_nand.c | 4 ++-- > common/env_nvram.c | 2 +- > common/env_onenand.c | 2 +- > common/env_sf.c | 4 ++-- > include/environment.h | 8 ++++++++ > include/search.h | 18 +----------------- > lib/hashtable.c | 40 ++-------------------------------------- > 13 files changed, 35 insertions(+), 77 deletions(-) Apllied to "next", 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 I still miss my ex-wife, but my aim is getting better.