linux-spi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] spi-bfin: Add missing gpio.h include
@ 2014-04-24  2:40 Steven Rostedt
  2014-04-24 10:33 ` Mark Brown
  0 siblings, 1 reply; 5+ messages in thread
From: Steven Rostedt @ 2014-04-24  2:40 UTC (permalink / raw)
  To: Steven Miao, LKML, adi-buildroot-devel; +Cc: Mark Brown, linux-spi

Running my ktest.pl tests on all the archs, I stumbled over this for
3.15-rc2:

drivers/spi/spi-bfin5xx.c: In function 'bfin_spi_cs_active':
drivers/spi/spi-bfin5xx.c:169:3: error: implicit declaration of function 'gpio_set_value' [-Werror=implicit-function-declaration]
drivers/spi/spi-bfin5xx.c: In function 'bfin_spi_setup':
drivers/spi/spi-bfin5xx.c:1097:4: error: implicit declaration of function 'gpio_request' [-Werror=implicit-function-declaration]
drivers/spi/spi-bfin5xx.c:1102:4: error: implicit declaration of function 'gpio_direction_output' [-Werror=implicit-function-declaration]
drivers/spi/spi-bfin5xx.c:1130:3: error: implicit declaration of function 'gpio_free' [-Werror=implicit-function-declaration]

The problem is that the spi-bfin5xx driver is missing an include for
the gpio.h file.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
---
diff --git a/drivers/spi/spi-bfin5xx.c b/drivers/spi/spi-bfin5xx.c
index 55e57c3..da8baa5 100644
--- a/drivers/spi/spi-bfin5xx.c
+++ b/drivers/spi/spi-bfin5xx.c
@@ -15,6 +15,7 @@
 #include <linux/slab.h>
 #include <linux/io.h>
 #include <linux/ioport.h>
+#include <linux/gpio.h>
 #include <linux/irq.h>
 #include <linux/errno.h>
 #include <linux/interrupt.h>

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

* Re: [PATCH] spi-bfin: Add missing gpio.h include
  2014-04-24  2:40 [PATCH] spi-bfin: Add missing gpio.h include Steven Rostedt
@ 2014-04-24 10:33 ` Mark Brown
  2014-04-24 11:33   ` Mark Brown
  0 siblings, 1 reply; 5+ messages in thread
From: Mark Brown @ 2014-04-24 10:33 UTC (permalink / raw)
  To: Steven Rostedt; +Cc: Steven Miao, LKML, adi-buildroot-devel, linux-spi

[-- Attachment #1: Type: text/plain, Size: 165 bytes --]

On Wed, Apr 23, 2014 at 10:40:35PM -0400, Steven Rostedt wrote:
> Running my ktest.pl tests on all the archs, I stumbled over this for
> 3.15-rc2:

Applied, thanks.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

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

* Re: [PATCH] spi-bfin: Add missing gpio.h include
  2014-04-24 10:33 ` Mark Brown
@ 2014-04-24 11:33   ` Mark Brown
       [not found]     ` <20140424113346.GM12304-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Mark Brown @ 2014-04-24 11:33 UTC (permalink / raw)
  To: Steven Rostedt; +Cc: Steven Miao, LKML, adi-buildroot-devel, linux-spi

[-- Attachment #1: Type: text/plain, Size: 384 bytes --]

On Thu, Apr 24, 2014 at 11:33:29AM +0100, Mark Brown wrote:
> On Wed, Apr 23, 2014 at 10:40:35PM -0400, Steven Rostedt wrote:
> > Running my ktest.pl tests on all the archs, I stumbled over this for
> > 3.15-rc2:
> 
> Applied, thanks.

Actually not - I already have a fix for this in -next (on a slightly
different branch to the one I looked for it on).  Anyway, it's fixed.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

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

* Re: [PATCH] spi-bfin: Add missing gpio.h include
       [not found]     ` <20140424113346.GM12304-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
@ 2014-04-24 12:34       ` Steven Rostedt
  2014-04-24 12:36         ` Mark Brown
  0 siblings, 1 reply; 5+ messages in thread
From: Steven Rostedt @ 2014-04-24 12:34 UTC (permalink / raw)
  To: Mark Brown
  Cc: Steven Miao, LKML,
	adi-buildroot-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f,
	linux-spi-u79uwXL29TY76Z2rM5mHXA

On Thu, 24 Apr 2014 12:33:46 +0100
Mark Brown <broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> wrote:

> On Thu, Apr 24, 2014 at 11:33:29AM +0100, Mark Brown wrote:
> > On Wed, Apr 23, 2014 at 10:40:35PM -0400, Steven Rostedt wrote:
> > > Running my ktest.pl tests on all the archs, I stumbled over this for
> > > 3.15-rc2:
> > 
> > Applied, thanks.
> 
> Actually not - I already have a fix for this in -next (on a slightly
> different branch to the one I looked for it on).  Anyway, it's fixed.

Heh, OK, I figured someone may have already fixed it, but still wanted
to let people know it was broken. It's amazing how long something like
this can take.

It's just annoying when my tests break on something that I'm not
testing ;-)

-- Steve
--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: [PATCH] spi-bfin: Add missing gpio.h include
  2014-04-24 12:34       ` Steven Rostedt
@ 2014-04-24 12:36         ` Mark Brown
  0 siblings, 0 replies; 5+ messages in thread
From: Mark Brown @ 2014-04-24 12:36 UTC (permalink / raw)
  To: Steven Rostedt; +Cc: Steven Miao, LKML, adi-buildroot-devel, linux-spi

[-- Attachment #1: Type: text/plain, Size: 228 bytes --]

On Thu, Apr 24, 2014 at 08:34:32AM -0400, Steven Rostedt wrote:

> It's just annoying when my tests break on something that I'm not
> testing ;-)

With something like this clearly you are testing it, even if you didn't
mean to!

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

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

end of thread, other threads:[~2014-04-24 12:36 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-24  2:40 [PATCH] spi-bfin: Add missing gpio.h include Steven Rostedt
2014-04-24 10:33 ` Mark Brown
2014-04-24 11:33   ` Mark Brown
     [not found]     ` <20140424113346.GM12304-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2014-04-24 12:34       ` Steven Rostedt
2014-04-24 12:36         ` Mark Brown

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).