From: Arnd Bergmann Date: Mon, 30 Apr 2012 16:53:11 +0000 (+0000) Subject: ARM: pxa: Wunused-result warning in viper board file X-Git-Tag: v3.7-rc1~38^2~5^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5f0cc6d16c0572bf5e9e65b6133ac415268c0720;p=pandora-kernel.git 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 Acked-by: Marc Zyngier Cc: Haojian Zhuang Cc: Eric Miao --- Reading git-diff-tree failed