[-mm patch] fix drivers/hwmon/hdaps.c:hdaps_check_ec() function declaration

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <[email protected]>

--- linux-2.6.18-rc4-mm2/drivers/hwmon/hdaps.c.old	2006-08-26 17:15:06.000000000 +0200
+++ linux-2.6.18-rc4-mm2/drivers/hwmon/hdaps.c	2006-08-26 17:15:17.000000000 +0200
@@ -305,7 +305,7 @@
  * 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} };

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux