* [PATCH] gpiolib: add missing declarations
@ 2013-11-23 5:54 Alexandre Courbot
2013-11-25 8:58 ` Mika Westerberg
0 siblings, 1 reply; 7+ messages in thread
From: Alexandre Courbot @ 2013-11-23 5:54 UTC (permalink / raw)
To: Linus Walleij
Cc: Stephen Warren, Mika Westerberg, linux-gpio, linux-kernel,
Alexandre Courbot
Add missing declarations and include files to avoid warnings during
compilation of include/gpio/driver.h.
Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Reported-by: Stephen Warren <swarren@wwwdotorg.org>
---
include/linux/gpio/driver.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/include/linux/gpio/driver.h b/include/linux/gpio/driver.h
index 82eac61..3ea2cf6 100644
--- a/include/linux/gpio/driver.h
+++ b/include/linux/gpio/driver.h
@@ -2,9 +2,12 @@
#define __LINUX_GPIO_DRIVER_H
#include <linux/types.h>
+#include <linux/module.h>
struct device;
struct gpio_desc;
+struct of_phandle_args;
+struct device_node;
struct seq_file;
/**
--
1.8.4.2
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH] gpiolib: add missing declarations
2013-11-23 5:54 [PATCH] gpiolib: add missing declarations Alexandre Courbot
@ 2013-11-25 8:58 ` Mika Westerberg
2013-11-25 9:07 ` Alexandre Courbot
0 siblings, 1 reply; 7+ messages in thread
From: Mika Westerberg @ 2013-11-25 8:58 UTC (permalink / raw)
To: Alexandre Courbot; +Cc: Linus Walleij, Stephen Warren, linux-gpio, linux-kernel
On Sat, Nov 23, 2013 at 02:54:29PM +0900, Alexandre Courbot wrote:
> Add missing declarations and include files to avoid warnings during
> compilation of include/gpio/driver.h.
It would be good to have those warnings included in the changelog as well.
>
> Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
> Reported-by: Stephen Warren <swarren@wwwdotorg.org>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] gpiolib: add missing declarations
2013-11-25 8:58 ` Mika Westerberg
@ 2013-11-25 9:07 ` Alexandre Courbot
2013-11-25 9:28 ` Mika Westerberg
0 siblings, 1 reply; 7+ messages in thread
From: Alexandre Courbot @ 2013-11-25 9:07 UTC (permalink / raw)
To: Mika Westerberg
Cc: Alexandre Courbot, Linus Walleij, Stephen Warren,
linux-gpio@vger.kernel.org, Linux Kernel Mailing List
On Mon, Nov 25, 2013 at 5:58 PM, Mika Westerberg
<mika.westerberg@linux.intel.com> wrote:
> On Sat, Nov 23, 2013 at 02:54:29PM +0900, Alexandre Courbot wrote:
>> Add missing declarations and include files to avoid warnings during
>> compilation of include/gpio/driver.h.
>
> It would be good to have those warnings included in the changelog as well.
As in, copy-pasting the compiler's output? Isn't the change explicit enough?
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] gpiolib: add missing declarations
2013-11-25 9:28 ` Mika Westerberg
@ 2013-11-25 9:26 ` Alex Courbot
2013-11-25 9:34 ` [PATCH v2] " Alexandre Courbot
0 siblings, 1 reply; 7+ messages in thread
From: Alex Courbot @ 2013-11-25 9:26 UTC (permalink / raw)
To: Mika Westerberg, Alexandre Courbot
Cc: Linus Walleij, Stephen Warren, linux-gpio@vger.kernel.org,
Linux Kernel Mailing List
On 11/25/2013 06:28 PM, Mika Westerberg wrote:
> On Mon, Nov 25, 2013 at 06:07:10PM +0900, Alexandre Courbot wrote:
>> On Mon, Nov 25, 2013 at 5:58 PM, Mika Westerberg
>> <mika.westerberg@linux.intel.com> wrote:
>>> On Sat, Nov 23, 2013 at 02:54:29PM +0900, Alexandre Courbot wrote:
>>>> Add missing declarations and include files to avoid warnings during
>>>> compilation of include/gpio/driver.h.
>>>
>>> It would be good to have those warnings included in the changelog as well.
>>
>> As in, copy-pasting the compiler's output? Isn't the change explicit enough?
>
> If you just do 'git log' you can't see the change itself and that's where
> the changelog should help. If I see some warnings when I build the kernel,
> the first thing I usually do is to check 'git log' against linux-next and
> see if someone has already fixed that warning (grepping the warning message
> from changelog).
Ah, I can see several examples of what you mention indeed. Will add
these and send a v2.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] gpiolib: add missing declarations
2013-11-25 9:07 ` Alexandre Courbot
@ 2013-11-25 9:28 ` Mika Westerberg
2013-11-25 9:26 ` Alex Courbot
0 siblings, 1 reply; 7+ messages in thread
From: Mika Westerberg @ 2013-11-25 9:28 UTC (permalink / raw)
To: Alexandre Courbot
Cc: Alexandre Courbot, Linus Walleij, Stephen Warren,
linux-gpio@vger.kernel.org, Linux Kernel Mailing List
On Mon, Nov 25, 2013 at 06:07:10PM +0900, Alexandre Courbot wrote:
> On Mon, Nov 25, 2013 at 5:58 PM, Mika Westerberg
> <mika.westerberg@linux.intel.com> wrote:
> > On Sat, Nov 23, 2013 at 02:54:29PM +0900, Alexandre Courbot wrote:
> >> Add missing declarations and include files to avoid warnings during
> >> compilation of include/gpio/driver.h.
> >
> > It would be good to have those warnings included in the changelog as well.
>
> As in, copy-pasting the compiler's output? Isn't the change explicit enough?
If you just do 'git log' you can't see the change itself and that's where
the changelog should help. If I see some warnings when I build the kernel,
the first thing I usually do is to check 'git log' against linux-next and
see if someone has already fixed that warning (grepping the warning message
from changelog).
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH v2] gpiolib: add missing declarations
2013-11-25 9:26 ` Alex Courbot
@ 2013-11-25 9:34 ` Alexandre Courbot
2013-11-28 14:32 ` Linus Walleij
0 siblings, 1 reply; 7+ messages in thread
From: Alexandre Courbot @ 2013-11-25 9:34 UTC (permalink / raw)
To: Linus Walleij
Cc: Stephen Warren, Mika Westerberg, linux-gpio, linux-kernel,
Alexandre Courbot
Add declaration of 'struct of_phandle_args' to avoid the following
warning:
In file included from arch/arm/mach-tegra/board-paz00.c:21:0:
include/linux/gpio/driver.h:102:17: warning: 'struct of_phandle_args' declared inside parameter list
include/linux/gpio/driver.h:102:17: warning: its scope is only this definition or declaration, which is probably not what you want
Also proactively add other definitions/includes that could be missing
in other contexts.
Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Reported-by: Stephen Warren <swarren@wwwdotorg.org>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
---
include/linux/gpio/driver.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/include/linux/gpio/driver.h b/include/linux/gpio/driver.h
index 82eac610ce1a..3ea2cf6b0e6c 100644
--- a/include/linux/gpio/driver.h
+++ b/include/linux/gpio/driver.h
@@ -2,9 +2,12 @@
#define __LINUX_GPIO_DRIVER_H
#include <linux/types.h>
+#include <linux/module.h>
struct device;
struct gpio_desc;
+struct of_phandle_args;
+struct device_node;
struct seq_file;
/**
--
1.8.4.2
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH v2] gpiolib: add missing declarations
2013-11-25 9:34 ` [PATCH v2] " Alexandre Courbot
@ 2013-11-28 14:32 ` Linus Walleij
0 siblings, 0 replies; 7+ messages in thread
From: Linus Walleij @ 2013-11-28 14:32 UTC (permalink / raw)
To: Alexandre Courbot
Cc: Stephen Warren, Mika Westerberg, linux-gpio@vger.kernel.org,
linux-kernel@vger.kernel.org
On Mon, Nov 25, 2013 at 10:34 AM, Alexandre Courbot <acourbot@nvidia.com> wrote:
> Add declaration of 'struct of_phandle_args' to avoid the following
> warning:
>
> In file included from arch/arm/mach-tegra/board-paz00.c:21:0:
> include/linux/gpio/driver.h:102:17: warning: 'struct of_phandle_args' declared inside parameter list
> include/linux/gpio/driver.h:102:17: warning: its scope is only this definition or declaration, which is probably not what you want
>
> Also proactively add other definitions/includes that could be missing
> in other contexts.
>
> Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
> Reported-by: Stephen Warren <swarren@wwwdotorg.org>
> Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Patch applied for fixes.
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2013-11-28 14:32 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-23 5:54 [PATCH] gpiolib: add missing declarations Alexandre Courbot
2013-11-25 8:58 ` Mika Westerberg
2013-11-25 9:07 ` Alexandre Courbot
2013-11-25 9:28 ` Mika Westerberg
2013-11-25 9:26 ` Alex Courbot
2013-11-25 9:34 ` [PATCH v2] " Alexandre Courbot
2013-11-28 14:32 ` Linus Walleij
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).