]> git.baikalelectronics.ru Git - kernel.git/commit
xtensa: fix str[n]cmp return value
authorMax Filippov <jcmvbkbc@gmail.com>
Sun, 20 Jan 2013 11:41:44 +0000 (15:41 +0400)
committerChris Zankel <chris@zankel.net>
Sun, 24 Feb 2013 03:22:31 +0000 (19:22 -0800)
commit1f932247c078d734ad66d0fff9e6698bc54dccaf
treec42131a0c16dda921d68c625083b830eb9958ca8
parent2e1418dcbb87bf5615d75e7d9ecd490ff1a173ea
xtensa: fix str[n]cmp return value

str[n]cmp functions return negative value if the first string is less
than the second, positive value if the first string is greater than the
second and zero if they are equal. This is important when these
functions are used for sorting/binary search.

With incorrect strcmp return value bsearch was always failing in the
find_symbol_in_section making it impossible to load any module.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Chris Zankel <chris@zankel.net>
arch/xtensa/include/asm/string.h