Skip to contentSkip to conversation

alarmtimer: Export symbols of alarmtimer_get_rtcdev

PATCH In review [email protected] 2 participants 3 messages Jun 13, 2014 – Jun 20, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/2 alarmtimer: Export symbols of alarmtimer_get_rtcdev

From: Pramod Gurav <[email protected]>

Export symbol of alarmtimer_get_rtcdev so that it is used by any driver when built as module like, drivers/staging/android/alarm-dev.c.

CC John Stultz <[email protected]>
CC Marcus Gelderie <[email protected]>
CC Greg Kroah-Hartman <[email protected]>

---

This Export was missing in Marcus's below patch:

https://lkml.org/lkml/2013/6/1/144

Changes since v1:
-Removed trivial list from CC

 kernel/time/alarmtimer.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/time/alarmtimer.c +1 -1
index 88c9c65..a53ba0b 100644
@@ -71,7 +71,7 @@ struct rtc_device *alarmtimer_get_rtcdev(void)
 
 	return ret;
 }
-
+EXPORT_SYMBOL_GPL(alarmtimer_get_rtcdev);
 
 static int alarmtimer_rtc_add_device(struct device *dev,
 				struct class_interface *class_intf)
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH v2 2/2 staging: alarm-dev: Support to Compile as Module

From: Pramod Gurav <[email protected]>

Currently this alarm-dev can be compiles only as built in driver. This adds support to compile it as module as well which is in planned activity (See drivers/staging/android/TODO)

CC Greg Kroah-Hartman <[email protected]>
CC Brian Swetland <[email protected]>
---
 drivers/staging/android/Kconfig |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/android/Kconfig +1 -1
index 99e484f..c359317 100644
@@ -76,7 +76,7 @@ config ANDROID_LOW_MEMORY_KILLER
 	  Registers processes to be killed when memory is low
 
 config ANDROID_INTF_ALARM_DEV
-	bool "Android alarm driver"
+	tristate "Android alarm driver"
 	depends on RTC_CLASS
 	default n
 	---help---
Signature · 1 line
1.7.9.5
#2 lore raw

Re: [PATCH v2 2/2] staging: alarm-dev: Support to Compile as Module

Quoted 19 lines · On Fri, Jun 13, 2014 at 11:49:43AM +0530, [email protected] wrote:

From: Pramod Gurav <[email protected]>

Currently this alarm-dev can be compiles only as built in driver. This adds support to compile it as module as well which is in planned activity (See drivers/staging/android/TODO)

CC Greg Kroah-Hartman <[email protected]>
CC Brian Swetland <[email protected]>
---
 drivers/staging/android/Kconfig |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/android/Kconfig +0 -0
index 99e484f..c359317 100644

drivers/staging/android/Kconfig config ANDROID_LOW_MEMORY_KILLER · line 82

Quoted 8 lines
drivers/staging/android/Kconfig +1 -1
@@ -76,7 +76,7 @@ config ANDROID_LOW_MEMORY_KILLER
 	  Registers processes to be killed when memory is low
 
 config ANDROID_INTF_ALARM_DEV
-	bool "Android alarm driver"
+	tristate "Android alarm driver"
 	depends on RTC_CLASS
 	default n
 	---help---

With this change you will get a warning about a missing MODULE_LICENSE(), can you please send a follow-on patch to fix that?

thanks,

greg k-h