lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20100520140835.b06ece52.randy.dunlap@oracle.com>
Date:	Thu, 20 May 2010 14:08:35 -0700
From:	Randy Dunlap <randy.dunlap@...cle.com>
To:	akpm@...ux-foundation.org
Cc:	linux-kernel@...r.kernel.org, InKi Dae <inki.dae@...sung.com>,
	Richard Purdie <rpurdie@...ys.net>
Subject: [PATCH -mmotm] backlight: fix s6e63m0 device attr function return
 types

From: Randy Dunlap <randy.dunlap@...cle.com>

Fix device attribute functions return types.

drivers/video/backlight/s6e63m0.c:718: warning: initialization from incompatible pointer type
drivers/video/backlight/s6e63m0.c:718: warning: initialization from incompatible pointer type
drivers/video/backlight/s6e63m0.c:732: warning: initialization from incompatible pointer type

Signed-off-by: Randy Dunlap <randy.dunlap@...cle.com>
Cc: InKi Dae  <inki.dae@...sung.com>
Cc: Richard Purdie <rpurdie@...ys.net>
---
 drivers/video/backlight/s6e63m0.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

--- mmotm-2010-0519-1612.orig/drivers/video/backlight/s6e63m0.c
+++ mmotm-2010-0519-1612/drivers/video/backlight/s6e63m0.c
@@ -654,7 +654,7 @@ static const struct backlight_ops s6e63m
 	.update_status = s6e63m0_set_brightness,
 };
 
-static int s6e63m0_sysfs_show_gamma_mode(struct device *dev,
+static ssize_t s6e63m0_sysfs_show_gamma_mode(struct device *dev,
 				      struct device_attribute *attr, char *buf)
 {
 	struct s6e63m0 *lcd = dev_get_drvdata(dev);
@@ -681,7 +681,7 @@ static int s6e63m0_sysfs_show_gamma_mode
 	return strlen(buf);
 }
 
-static int s6e63m0_sysfs_store_gamma_mode(struct device *dev,
+static ssize_t s6e63m0_sysfs_store_gamma_mode(struct device *dev,
 				       struct device_attribute *attr,
 				       const char *buf, size_t len)
 {
@@ -718,7 +718,7 @@ static int s6e63m0_sysfs_store_gamma_mod
 static DEVICE_ATTR(gamma_mode, 0644,
 		s6e63m0_sysfs_show_gamma_mode, s6e63m0_sysfs_store_gamma_mode);
 
-static int s6e63m0_sysfs_show_gamma_table(struct device *dev,
+static ssize_t s6e63m0_sysfs_show_gamma_table(struct device *dev,
 				      struct device_attribute *attr, char *buf)
 {
 	struct s6e63m0 *lcd = dev_get_drvdata(dev);
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ