Skip to contentSkip to conversation

staging: alarm-dev: Support to Compile as Module

PATCH In review [email protected] 2 participants 3 messages Jun 12, 2014 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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. This has dependancy on:
https://lkml.org/lkml/2014/6/12/180

which exports symbol of alarmtimer function.

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
#1 lore raw
Quoted 21 lines · On Thu, Jun 12, 2014 at 04:08:15PM +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. This has dependancy on:
https://lkml.org/lkml/2014/6/12/180

which exports symbol of alarmtimer function.

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---

Please resend the first patch (it's not a "trivial one") as part of this patch series.

And do you ever really want this code as a module? What will auto-load it if needed?

thanks,

greg k-h

#2 lore raw
Quoted 24 lines · Greg Kroah-Hartman
Quoted 23 lines · On Thu, Jun 12, 2014 at 04:08:15PM +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. This has dependancy on:
https://lkml.org/lkml/2014/6/12/180

which exports symbol of alarmtimer function.

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
@@ -76,7 +76,7 @@ config ANDROID_LOW_MEMORY_KILLER
        Registers processes to be killed when memory is low
 
Quoted 10 lines

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

Quoted 6 lines
drivers/staging/android/Kconfig +1 -1
 config ANDROID_INTF_ALARM_DEV
-     bool "Android alarm driver"
+     tristate "Android alarm driver"
      depends on RTC_CLASS
      default n
      ---help---

Please resend the first patch (it's not a "trivial one") as part of this patch series.

Sure, Greg. will resend it.

Quoted 3 lines

And do you ever really want this code as a module? What will auto-load it if needed?

The TODO of staging/android/ says 'make sure they all build well as modules'. So thought of build testing it. It failed and tried to fix it.

Quoted 3 lines

thanks,

greg k-h

Signature · 2 lines
Thanks and Regards
Pramod