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>] [day] [month] [year] [list]
Message-ID: <1657.192.168.1.10.1178711970.squirrel@eggplant.ddo.jp>
Date:	Wed, 9 May 2007 20:59:30 +0900 (JST)
From:	"kogiidena" <kogiidena@...plant.ddo.jp>
To:	linux-kernel@...r.kernel.org
Subject: [PATCH 1/3] rtc:rtc-rs5c313.c : error and warning are fixed.

The following patch is a patch that corrects the compile error and warning.
Please apply.

Signed-off-by: kogiidena <kogiidena@...plant.ddo.jp>
---
diff -urpN OLD/drivers/rtc/Kconfig NEW/drivers/rtc/Kconfig
--- OLD/drivers/rtc/Kconfig	2007-05-07 12:12:02.000000000 +0900
+++ NEW/drivers/rtc/Kconfig	2007-05-08 19:30:53.000000000 +0900
@@ -396,7 +396,7 @@ config RTC_DRV_BFIN

 config RTC_DRV_RS5C313
 	tristate "Ricoh RS5C313"
-	depends on RTC_CLASS && BROKEN
+	depends on RTC_CLASS && SH_LANDISK
 	help
 	  If you say yes here you get support for the Ricoh RS5C313 RTC chips.

diff -urpN OLD/drivers/rtc/rtc-rs5c313.c NEW/drivers/rtc/rtc-rs5c313.c
--- OLD/drivers/rtc/rtc-rs5c313.c	2007-05-07 12:12:02.000000000 +0900
+++ NEW/drivers/rtc/rtc-rs5c313.c	2007-05-08 19:36:51.000000000 +0900
@@ -126,7 +126,7 @@ static void rs5c313_write_data(unsigned
 static unsigned char rs5c313_read_data(void)
 {
 	int i;
-	unsigned char data;
+	unsigned char data = 0;

 	for (i = 0; i < 8; i++) {
 		ndelay(700);
@@ -194,7 +194,7 @@ static void rs5c313_write_reg(unsigned c
 	return;
 }

-static inline unsigned char rs5c313_read_cntreg(unsigned char addr)
+static inline unsigned char rs5c313_read_cntreg(void)
 {
 	return rs5c313_read_reg(RS5C313_ADDR_CNTREG);
 }
@@ -356,7 +356,7 @@ static int rs5c313_rtc_probe(struct plat

 	platform_set_drvdata(pdev, rtc);

-	return err;
+	return 0;
 }

 static int __devexit rs5c313_rtc_remove(struct platform_device *pdev)




-
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