2007-09-04 07:24:16

by Yoichi Yuasa

[permalink] [raw]
Subject: [PATCH] leds: add #include <linux/spinlock_types.h> to include/linux/leds.h for rwlock_t


This patch has added #include <linux/spinlock_types.h> to include/linux/leds.h for rwlock_t.

Signed-off-by: Yoichi Yuasa <[email protected]>

diff -pruN -X generic/Documentation/dontdiff generic-orig/include/linux/leds.h generic/include/linux/leds.h
--- generic-orig/include/linux/leds.h 2007-09-04 14:59:51.334686250 +0900
+++ generic/include/linux/leds.h 2007-09-04 14:56:10.676896000 +0900
@@ -13,6 +13,7 @@
#define __LINUX_LEDS_H_INCLUDED

#include <linux/list.h>
+#include <linux/spinlock_types.h>

struct device;
/*


2007-09-11 05:04:47

by Andrew Morton

[permalink] [raw]
Subject: Re: [PATCH] leds: add #include <linux/spinlock_types.h> to include/linux/leds.h for rwlock_t

On Tue, 4 Sep 2007 16:23:45 +0900 Yoichi Yuasa <[email protected]> wrote:

>
> This patch has added #include <linux/spinlock_types.h> to include/linux/leds.h for rwlock_t.
>
> Signed-off-by: Yoichi Yuasa <[email protected]>
>
> diff -pruN -X generic/Documentation/dontdiff generic-orig/include/linux/leds.h generic/include/linux/leds.h
> --- generic-orig/include/linux/leds.h 2007-09-04 14:59:51.334686250 +0900
> +++ generic/include/linux/leds.h 2007-09-04 14:56:10.676896000 +0900
> @@ -13,6 +13,7 @@
> #define __LINUX_LEDS_H_INCLUDED
>
> #include <linux/list.h>
> +#include <linux/spinlock_types.h>
>
> struct device;
> /*

I think spinlock_types.h is more an internal implementation detail, and
that leds.h should be including plain old <linux/spinlock.h>. Does that
change also fix whatever build error you were seeing?

2007-09-11 08:48:31

by Yoichi Yuasa

[permalink] [raw]
Subject: Re: [PATCH] leds: add #include <linux/spinlock_types.h> to include/linux/leds.h for rwlock_t

On Mon, 10 Sep 2007 22:04:23 -0700
Andrew Morton <[email protected]> wrote:

> On Tue, 4 Sep 2007 16:23:45 +0900 Yoichi Yuasa <[email protected]> wrote:
>
> >
> > This patch has added #include <linux/spinlock_types.h> to include/linux/leds.h for rwlock_t.
> >
> > Signed-off-by: Yoichi Yuasa <[email protected]>
> >
> > diff -pruN -X generic/Documentation/dontdiff generic-orig/include/linux/leds.h generic/include/linux/leds.h
> > --- generic-orig/include/linux/leds.h 2007-09-04 14:59:51.334686250 +0900
> > +++ generic/include/linux/leds.h 2007-09-04 14:56:10.676896000 +0900
> > @@ -13,6 +13,7 @@
> > #define __LINUX_LEDS_H_INCLUDED
> >
> > #include <linux/list.h>
> > +#include <linux/spinlock_types.h>
> >
> > struct device;
> > /*
>
> I think spinlock_types.h is more an internal implementation detail, and
> that leds.h should be including plain old <linux/spinlock.h>. Does that
> change also fix whatever build error you were seeing?

Yes it does.

Yoichi

---

This patch has added #include <linux/spinlock.h> to include/linux/leds.h for rwlock_t.

Signed-off-by: Yoichi Yuasa <[email protected]>

diff -pruN -X generic/Documentation/dontdiff generic-orig/include/linux/leds.h generic/include/linux/leds.h
--- generic-orig/include/linux/leds.h 2007-09-11 15:32:22.723667750 +0900
+++ generic/include/linux/leds.h 2007-09-11 15:28:20.696542000 +0900
@@ -13,6 +13,7 @@
#define __LINUX_LEDS_H_INCLUDED

#include <linux/list.h>
+#include <linux/spinlock.h>

struct device;
/*

2007-09-11 21:50:40

by Richard Purdie

[permalink] [raw]
Subject: Re: [PATCH] leds: add #include <linux/spinlock_types.h> to include/linux/leds.h for rwlock_t

On Tue, 2007-09-11 at 17:48 +0900, Yoichi Yuasa wrote:
> This patch has added #include <linux/spinlock.h> to include/linux/leds.h for rwlock_t.
>
> Signed-off-by: Yoichi Yuasa <[email protected]>

Added to the leds tree[1], thanks.

http://git.o-hand.com/?p=linux-rpurdie-leds;a=shortlog;h=for-mm

Richard