[PATCH] mtd-utils: make hashtable_iterator functions static inline

Brian Norris computersforpeace at gmail.com
Thu May 28 16:36:51 PDT 2015


On Thu, Apr 16, 2015 at 05:32:56PM +0100, James Cowgill wrote:
> GCC 5 changed the default C standard to gnu11 which changed the behavior of the
> inline keyword. This causes mtd-utils to fail to build with duplicate
> definition errors involving hashtable_iterator_key and
> hashtable_iterator_value.
> 
> This patch fixes the build by making the functions static inline and removing
> the extra definitions in hashtable_itr.c.
> 
> Signed-off-by: James Cowgill <james410 at cowgill.org.uk>

Applied an identical patch from another contributor. Thanks!

Brian



More information about the linux-mtd mailing list