2009-03-17 21:07:41

by Alessio Igor Bogani

[permalink] [raw]
Subject: [PATCH] radio-mr800.c: Missing mutex include

radio-mr800.c uses struct mutex, so while <linux/mutex.h> seems to be
pulled in indirectly by one of the headers it already includes, the
right thing is to include it directly.

Signed-off-by: Alessio Igor Bogani <[email protected]>
---
drivers/media/radio/radio-mr800.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/media/radio/radio-mr800.c b/drivers/media/radio/radio-mr800.c
index fdfc7bf..4d91148 100644
--- a/drivers/media/radio/radio-mr800.c
+++ b/drivers/media/radio/radio-mr800.c
@@ -58,6 +58,7 @@
#include <media/v4l2-ioctl.h>
#include <linux/usb.h>
#include <linux/version.h> /* for KERNEL_VERSION MACRO */
+#include <linux/mutex.h>

/* driver and module definitions */
#define DRIVER_AUTHOR "Alexey Klimov <[email protected]>"
--
1.6.0.4


2009-03-17 21:41:27

by Alexey Klimov

[permalink] [raw]
Subject: Re: [PATCH] radio-mr800.c: Missing mutex include

On Tue, 2009-03-17 at 22:00 +0100, Alessio Igor Bogani wrote:
> radio-mr800.c uses struct mutex, so while <linux/mutex.h> seems to be
> pulled in indirectly by one of the headers it already includes, the
> right thing is to include it directly.


Hello, Alessio

Patch looks okay for my eyes.
If it useful it should be applied.

Thank you!

Mauro, if patch is okay please apply it.
If you need my ack - here it is:
Acked-by: Alexey Klimov <[email protected]>

--
Best regards, Klimov Alexey

2009-03-27 10:12:09

by Mauro Carvalho Chehab

[permalink] [raw]
Subject: Re: [PATCH] radio-mr800.c: Missing mutex include

On Wed, 18 Mar 2009 00:42:08 +0300
Alexey Klimov <[email protected]> wrote:

> On Tue, 2009-03-17 at 22:00 +0100, Alessio Igor Bogani wrote:
> > radio-mr800.c uses struct mutex, so while <linux/mutex.h> seems to be
> > pulled in indirectly by one of the headers it already includes, the
> > right thing is to include it directly.
>
>
> Hello, Alessio
>
> Patch looks okay for my eyes.
> If it useful it should be applied.
>
> Thank you!
>
> Mauro, if patch is okay please apply it.
> If you need my ack - here it is:
> Acked-by: Alexey Klimov <[email protected]>

If the mutex.h were already included by another kernel header, I don't see why
to include it again. If a later patch remove the mutex.h from the header, then
the patch author should take care of this change anyway.

Cheers,
Mauro