linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/1] kernel:time Export symbols of functions declared in linux/alarmtimer.h
@ 2013-06-01 16:39 Marcus Gelderie
  2013-06-03 19:21 ` John Stultz
  0 siblings, 1 reply; 4+ messages in thread
From: Marcus Gelderie @ 2013-06-01 16:39 UTC (permalink / raw)
  To: john.stultz; +Cc: linux-kernel, Marcus Gelderie

Export symbols so they can be used by
drivers/staging/android/alarm-dev.c. So far this is built-in but LKM
support is planned (see drivers/staging/android/TODO).

Signed-off-by: Marcus Gelderie <redmnic@gmail.com>
---
 kernel/time/alarmtimer.c | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/kernel/time/alarmtimer.c b/kernel/time/alarmtimer.c
index f11d83b..90eca2f 100644
--- a/kernel/time/alarmtimer.c
+++ b/kernel/time/alarmtimer.c
@@ -303,6 +303,7 @@ void alarm_init(struct alarm *alarm, enum alarmtimer_type type,
 	alarm->type = type;
 	alarm->state = ALARMTIMER_STATE_INACTIVE;
 }
+EXPORT_SYMBOL(alarm_init);
 
 /**
  * alarm_start - Sets an alarm to fire
@@ -323,6 +324,7 @@ int alarm_start(struct alarm *alarm, ktime_t start)
 	spin_unlock_irqrestore(&base->lock, flags);
 	return ret;
 }
+EXPORT_SYMBOL(alarm_start);
 
 /**
  * alarm_try_to_cancel - Tries to cancel an alarm timer
@@ -344,7 +346,7 @@ int alarm_try_to_cancel(struct alarm *alarm)
 	spin_unlock_irqrestore(&base->lock, flags);
 	return ret;
 }
-
+EXPORT_SYMBOL(alarm_try_to_cancel);
 
 /**
  * alarm_cancel - Spins trying to cancel an alarm timer until it is done
@@ -361,7 +363,7 @@ int alarm_cancel(struct alarm *alarm)
 		cpu_relax();
 	}
 }
-
+EXPORT_SYMBOL(alarm_cancel);
 
 u64 alarm_forward(struct alarm *alarm, ktime_t now, ktime_t interval)
 {
@@ -393,8 +395,7 @@ u64 alarm_forward(struct alarm *alarm, ktime_t now, ktime_t interval)
 	alarm->node.expires = ktime_add(alarm->node.expires, interval);
 	return overrun;
 }
-
-
+EXPORT_SYMBOL(alarm_forward);
 
 
 /**
-- 
1.8.1.5


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/1] kernel:time Export symbols of functions declared in linux/alarmtimer.h
  2013-06-01 16:39 [PATCH 1/1] kernel:time Export symbols of functions declared in linux/alarmtimer.h Marcus Gelderie
@ 2013-06-03 19:21 ` John Stultz
       [not found]   ` <20130604072455.GA4096@cantor.Speedport_W_503V_Typ_C>
  0 siblings, 1 reply; 4+ messages in thread
From: John Stultz @ 2013-06-03 19:21 UTC (permalink / raw)
  To: Marcus Gelderie; +Cc: linux-kernel

On 06/01/2013 09:39 AM, Marcus Gelderie wrote:
> Export symbols so they can be used by
> drivers/staging/android/alarm-dev.c. So far this is built-in but LKM
> support is planned (see drivers/staging/android/TODO).
>
> Signed-off-by: Marcus Gelderie <redmnic@gmail.com>

These probably should be EXPORT_SYMBOL_GPL, no? Also there's a bunch of 
new alarm functions that Todd Poynor that I have queued, which will 
probably need similar.

thanks
-john


> ---
>   kernel/time/alarmtimer.c | 9 +++++----
>   1 file changed, 5 insertions(+), 4 deletions(-)
>
> diff --git a/kernel/time/alarmtimer.c b/kernel/time/alarmtimer.c
> index f11d83b..90eca2f 100644
> --- a/kernel/time/alarmtimer.c
> +++ b/kernel/time/alarmtimer.c
> @@ -303,6 +303,7 @@ void alarm_init(struct alarm *alarm, enum alarmtimer_type type,
>   	alarm->type = type;
>   	alarm->state = ALARMTIMER_STATE_INACTIVE;
>   }
> +EXPORT_SYMBOL(alarm_init);
>   
>   /**
>    * alarm_start - Sets an alarm to fire
> @@ -323,6 +324,7 @@ int alarm_start(struct alarm *alarm, ktime_t start)
>   	spin_unlock_irqrestore(&base->lock, flags);
>   	return ret;
>   }
> +EXPORT_SYMBOL(alarm_start);
>   
>   /**
>    * alarm_try_to_cancel - Tries to cancel an alarm timer
> @@ -344,7 +346,7 @@ int alarm_try_to_cancel(struct alarm *alarm)
>   	spin_unlock_irqrestore(&base->lock, flags);
>   	return ret;
>   }
> -
> +EXPORT_SYMBOL(alarm_try_to_cancel);
>   
>   /**
>    * alarm_cancel - Spins trying to cancel an alarm timer until it is done
> @@ -361,7 +363,7 @@ int alarm_cancel(struct alarm *alarm)
>   		cpu_relax();
>   	}
>   }
> -
> +EXPORT_SYMBOL(alarm_cancel);
>   
>   u64 alarm_forward(struct alarm *alarm, ktime_t now, ktime_t interval)
>   {
> @@ -393,8 +395,7 @@ u64 alarm_forward(struct alarm *alarm, ktime_t now, ktime_t interval)
>   	alarm->node.expires = ktime_add(alarm->node.expires, interval);
>   	return overrun;
>   }
> -
> -
> +EXPORT_SYMBOL(alarm_forward);
>   
>   
>   /**


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/1] kernel:time Export symbols of functions declared in linux/alarmtimer.h
       [not found]   ` <20130604072455.GA4096@cantor.Speedport_W_503V_Typ_C>
@ 2013-06-04  7:32     ` Marcus Gelderie
  2013-06-04 16:15       ` John Stultz
  0 siblings, 1 reply; 4+ messages in thread
From: Marcus Gelderie @ 2013-06-04  7:32 UTC (permalink / raw)
  To: john.stultz; +Cc: linux-kernel, redmnic

On Mon, Jun 03, 2013 at 12:21:22PM -0700, John Stultz wrote:
> These probably should be EXPORT_SYMBOL_GPL, no? Also there's a bunch of 
> new alarm functions that Todd Poynor that I have queued, which will 
> probably need similar.
> 
> thanks
> -john
Opps, yes they should, thanks. I've corrected that. 

Your new alarm functions are not in the tree yet, are they? At least I didn't
find them.

cheers
Marcus

New patch below
-----------------

Export symbols so they can be used by
drivers/staging/android/alarm-dev.c. So far this is built-in but LKM
support is planned (see drivers/staging/android/TODO).

Signed-off-by: Marcus Gelderie <redmnic@gmail.com>
---
 kernel/time/alarmtimer.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/kernel/time/alarmtimer.c b/kernel/time/alarmtimer.c
index f11d83b..1e7d514 100644
--- a/kernel/time/alarmtimer.c
+++ b/kernel/time/alarmtimer.c
@@ -303,6 +303,7 @@ void alarm_init(struct alarm *alarm, enum alarmtimer_type type,
 	alarm->type = type;
 	alarm->state = ALARMTIMER_STATE_INACTIVE;
 }
+EXPORT_SYMBOL_GPL(alarm_init);
 
 /**
  * alarm_start - Sets an alarm to fire
@@ -323,6 +324,7 @@ int alarm_start(struct alarm *alarm, ktime_t start)
 	spin_unlock_irqrestore(&base->lock, flags);
 	return ret;
 }
+EXPORT_SYMBOL_GPL(alarm_start);
 
 /**
  * alarm_try_to_cancel - Tries to cancel an alarm timer
@@ -344,6 +346,7 @@ int alarm_try_to_cancel(struct alarm *alarm)
 	spin_unlock_irqrestore(&base->lock, flags);
 	return ret;
 }
+EXPORT_SYMBOL_GPL(alarm_try_to_cancel);
 
 
 /**
@@ -361,6 +364,7 @@ int alarm_cancel(struct alarm *alarm)
 		cpu_relax();
 	}
 }
+EXPORT_SYMBOL_GPL(alarm_cancel);
 
 
 u64 alarm_forward(struct alarm *alarm, ktime_t now, ktime_t interval)
@@ -393,6 +397,7 @@ u64 alarm_forward(struct alarm *alarm, ktime_t now, ktime_t interval)
 	alarm->node.expires = ktime_add(alarm->node.expires, interval);
 	return overrun;
 }
+EXPORT_SYMBOL_GPL(alarm_forward);
 
 
 
-- 
1.8.1.5



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/1] kernel:time Export symbols of functions declared in linux/alarmtimer.h
  2013-06-04  7:32     ` Marcus Gelderie
@ 2013-06-04 16:15       ` John Stultz
  0 siblings, 0 replies; 4+ messages in thread
From: John Stultz @ 2013-06-04 16:15 UTC (permalink / raw)
  To: Marcus Gelderie; +Cc: linux-kernel

On 06/04/2013 12:32 AM, Marcus Gelderie wrote:
> On Mon, Jun 03, 2013 at 12:21:22PM -0700, John Stultz wrote:
>> These probably should be EXPORT_SYMBOL_GPL, no? Also there's a bunch of
>> new alarm functions that Todd Poynor that I have queued, which will
>> probably need similar.
>>
>> thanks
>> -john
> Opps, yes they should, thanks. I've corrected that.
>
> Your new alarm functions are not in the tree yet, are they? At least I didn't
> find them.
No, not yet.

Anyway, I went ahead and queued your patch and added the other exports.

thanks for the patch!
-john


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-06-04 16:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-01 16:39 [PATCH 1/1] kernel:time Export symbols of functions declared in linux/alarmtimer.h Marcus Gelderie
2013-06-03 19:21 ` John Stultz
     [not found]   ` <20130604072455.GA4096@cantor.Speedport_W_503V_Typ_C>
2013-06-04  7:32     ` Marcus Gelderie
2013-06-04 16:15       ` John Stultz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).