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: <20250318163358.2524-1-sensor1010@163.com>
Date: Tue, 18 Mar 2025 09:33:58 -0700
From: 李哲 <sensor1010@....com>
To: alexandre.belloni@...tlin.com
Cc: linux-rtc@...r.kernel.org,
	linux-kernel@...r.kernel.org,
	李哲 <sensor1010@....com>
Subject: [PATCH] rtc: Remove unused parameters

The second and third parameters are not used, which could
mislead the upper-leevel caller into passing these two
parameters

Signed-off-by: 李哲 <sensor1010@....com>
---
 drivers/rtc/interface.c | 6 +-----
 include/linux/rtc.h     | 3 +--
 2 files changed, 2 insertions(+), 7 deletions(-)

diff --git a/drivers/rtc/interface.c b/drivers/rtc/interface.c
index aaf76406cd7d..fa36d3b00308 100644
--- a/drivers/rtc/interface.c
+++ b/drivers/rtc/interface.c
@@ -677,12 +677,8 @@ enum hrtimer_restart rtc_pie_update_irq(struct hrtimer *timer)
 /**
  * rtc_update_irq - Triggered when a RTC interrupt occurs.
  * @rtc: the rtc device
- * @num: how many irqs are being reported (usually one)
- * @events: mask of RTC_IRQF with one or more of RTC_PF, RTC_AF, RTC_UF
- * Context: any
  */
-void rtc_update_irq(struct rtc_device *rtc,
-		    unsigned long num, unsigned long events)
+void rtc_update_irq(struct rtc_device *rtc)
 {
 	if (IS_ERR_OR_NULL(rtc))
 		return;
diff --git a/include/linux/rtc.h b/include/linux/rtc.h
index 3f4d315aaec9..e7a53295fb24 100644
--- a/include/linux/rtc.h
+++ b/include/linux/rtc.h
@@ -193,8 +193,7 @@ extern int rtc_set_alarm(struct rtc_device *rtc,
 				struct rtc_wkalrm *alrm);
 extern int rtc_initialize_alarm(struct rtc_device *rtc,
 				struct rtc_wkalrm *alrm);
-extern void rtc_update_irq(struct rtc_device *rtc,
-			unsigned long num, unsigned long events);
+extern void rtc_update_irq(struct rtc_device *rtc);
 
 extern struct rtc_device *rtc_class_open(const char *name);
 extern void rtc_class_close(struct rtc_device *rtc);
-- 
2.17.1


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ