ARM: pxa: Wunused-result warning in viper board file
authorArnd Bergmann <arnd@arndb.de>
Mon, 30 Apr 2012 16:53:11 +0000 (16:53 +0000)
committerArnd Bergmann <arnd@arndb.de>
Thu, 4 Oct 2012 08:19:51 +0000 (10:19 +0200)
commit5f0cc6d16c0572bf5e9e65b6133ac415268c0720
tree2ae73652306c95eea1c7c328fff2452dd52201cd
parent9c7f4f5ce6523af6b6e103a991b2ca71b962acb7
ARM: pxa: Wunused-result warning in viper board file

Calling kstrtoul requires checking the result. In case of
the viper_tpm_setup function, let's fail the __setup function
if the number was invalid.

Without this patch, building viper_defconfig results in:

arch/arm/mach-pxa/viper.c: In function 'viper_tpm_setup':
arch/arm/mach-pxa/viper.c:771:10: warning: ignoring return value of 'kstrtoul', declared with attribute warn_unused_result [-Wunused-result]

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Marc Zyngier <maz@misterjones.org>
Cc: Haojian Zhuang <haojian.zhuang@marvell.com>
Cc: Eric Miao <eric.y.miao@gmail.com>
arch/arm/mach-pxa/viper.c