ARM: boot: Add an implementation of strnlen for libfdt
authorRob Herring <robh@kernel.org>
Thu, 11 Feb 2016 22:59:12 +0000 (16:59 -0600)
committerRob Herring <robh@kernel.org>
Fri, 12 Feb 2016 01:43:47 +0000 (19:43 -0600)
commit76df69806b7fafea013e2f4f82b0bd54498f3406
tree4d65392973f6eeda1c65a0c746f84f5e270419d1
parent60c7f4cb1fa4df62b7ba07e9b087728ca7ce5bc8
ARM: boot: Add an implementation of strnlen for libfdt

Recent versions of libfdt add a dependency on strnlen. Copy the
implementation in lib/string.c here, so we can update libfdt.

Acked-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Rob Herring <robh@kernel.org>
arch/arm/boot/compressed/string.c