mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH][RT] spinlock: Add include for BUG() in spinlock_rt.h
@ 2012-06-21 13:37 Steven Rostedt
  2012-06-22  9:08 ` Thomas Gleixner
  0 siblings, 1 reply; 3+ messages in thread
From: Steven Rostedt @ 2012-06-21 13:37 UTC (permalink / raw)
  To: LKML, RT
  Cc: Thomas Gleixner, leroy christophe, Iratxo Pichel Ortiz, David Garcia

spinlock_rt.h references BUG(), but it does not include bug.h, and on
some architectures (powerpc) this can cause a build failure.

Reported-by: Iratxo Pichel Ortiz <ipichel@albentia.com>
Reported-by: leroy christophe <christophe.leroy@c-s.fr>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
----
[ Thomas, can you add this patch to your queue so that I can add it to
stable. Please, let me know when you have. Thanks! ]

diff --git a/include/linux/spinlock_rt.h b/include/linux/spinlock_rt.h
index 3b555b4..0618387 100644
--- a/include/linux/spinlock_rt.h
+++ b/include/linux/spinlock_rt.h
@@ -5,6 +5,8 @@
 #error Do not include directly. Use spinlock.h
 #endif
 
+#include <linux/bug.h>
+
 extern void
 __rt_spin_lock_init(spinlock_t *lock, char *name, struct lock_class_key *key);
 



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

* Re: [PATCH][RT] spinlock: Add include for BUG() in spinlock_rt.h
  2012-06-21 13:37 [PATCH][RT] spinlock: Add include for BUG() in spinlock_rt.h Steven Rostedt
@ 2012-06-22  9:08 ` Thomas Gleixner
  2012-06-22 10:49   ` Steven Rostedt
  0 siblings, 1 reply; 3+ messages in thread
From: Thomas Gleixner @ 2012-06-22  9:08 UTC (permalink / raw)
  To: Steven Rostedt
  Cc: LKML, RT, leroy christophe, Iratxo Pichel Ortiz, David Garcia

On Thu, 21 Jun 2012, Steven Rostedt wrote:

> spinlock_rt.h references BUG(), but it does not include bug.h, and on
> some architectures (powerpc) this can cause a build failure.
> 
> Reported-by: Iratxo Pichel Ortiz <ipichel@albentia.com>
> Reported-by: leroy christophe <christophe.leroy@c-s.fr>
> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
> ----
> [ Thomas, can you add this patch to your queue so that I can add it to
> stable. Please, let me know when you have. Thanks! ]

Picked it up, thanks. Please take it right away w/o waiting for my
release.

Thanks,

	Thomas

 
> diff --git a/include/linux/spinlock_rt.h b/include/linux/spinlock_rt.h
> index 3b555b4..0618387 100644
> --- a/include/linux/spinlock_rt.h
> +++ b/include/linux/spinlock_rt.h
> @@ -5,6 +5,8 @@
>  #error Do not include directly. Use spinlock.h
>  #endif
>  
> +#include <linux/bug.h>
> +
>  extern void
>  __rt_spin_lock_init(spinlock_t *lock, char *name, struct lock_class_key *key);
>  
> 
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

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

* Re: [PATCH][RT] spinlock: Add include for BUG() in spinlock_rt.h
  2012-06-22  9:08 ` Thomas Gleixner
@ 2012-06-22 10:49   ` Steven Rostedt
  0 siblings, 0 replies; 3+ messages in thread
From: Steven Rostedt @ 2012-06-22 10:49 UTC (permalink / raw)
  To: Thomas Gleixner
  Cc: LKML, RT, leroy christophe, Iratxo Pichel Ortiz, David Garcia

On Fri, 2012-06-22 at 11:08 +0200, Thomas Gleixner wrote:
> On Thu, 21 Jun 2012, Steven Rostedt wrote:
> 
> > spinlock_rt.h references BUG(), but it does not include bug.h, and on
> > some architectures (powerpc) this can cause a build failure.
> > 
> > Reported-by: Iratxo Pichel Ortiz <ipichel@albentia.com>
> > Reported-by: leroy christophe <christophe.leroy@c-s.fr>
> > Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
> > ----
> > [ Thomas, can you add this patch to your queue so that I can add it to
> > stable. Please, let me know when you have. Thanks! ]
> 
> Picked it up, thanks. Please take it right away w/o waiting for my
> release.
> 

I'll make a release today.

-- Steve



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

end of thread, other threads:[~2012-06-22 10:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-21 13:37 [PATCH][RT] spinlock: Add include for BUG() in spinlock_rt.h Steven Rostedt
2012-06-22  9:08 ` Thomas Gleixner
2012-06-22 10:49   ` Steven Rostedt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®