From: Adrian Bunk On Sat, Aug 19, 2006 at 10:00:08PM -0700, Andrew Morton wrote: >... > Changes since 2.6.18-rc4-mm1: >... > +hdaps-add-explicit-hardware-configuration-functions-fix.patch > > Fix hdaps-add-explicit-hardware-configuration-functions.patch >... Both sparce and SVN gcc complained about this non-ANSI function declaration. Signed-off-by: Adrian Bunk Signed-off-by: Andrew Morton --- drivers/hwmon/hdaps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN drivers/hwmon/hdaps.c~hdaps-add-explicit-hardware-configuration-functions-fix-fix drivers/hwmon/hdaps.c --- a/drivers/hwmon/hdaps.c~hdaps-add-explicit-hardware-configuration-functions-fix-fix +++ a/drivers/hwmon/hdaps.c @@ -305,7 +305,7 @@ static int hdaps_get_ec_mode(u8 *mode) * Follows the clean-room spec for HDAPS; we don't know what it means. * Returns zero on success and negative error code on failure. Can sleep. */ -static int hdaps_check_ec() +static int hdaps_check_ec(void) { const struct thinkpad_ec_row args = { .mask=0x0003, .val={0x17, 0x81} }; _