lkml.org 
[lkml]   [2006]   [Aug]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[-mm patch] fix drivers/hwmon/hdaps.c:hdaps_check_ec() function declaration
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 <bunk@stusta.de>

--- 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 majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-08-26 17:31    [W:0.226 / U:0.100 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site