All of lore.kernel.org
 help / color / mirror / Atom feed
* [cip-dev] [PATCH 4.4-cip] spi: pxa2xx: Fix build error because of missing header
@ 2019-06-20 12:37 Ben Hutchings
  2019-06-25  8:52 ` Pavel Machek
  0 siblings, 1 reply; 2+ messages in thread
From: Ben Hutchings @ 2019-06-20 12:37 UTC (permalink / raw)
  To: cip-dev

From: Mika Westerberg <mika.westerberg@linux.intel.com>

commit 089bd46d8bc1fe5a28351e82e4adcaa5a40121b5 upstream.

Kbuild test robot reports:

  drivers/spi/spi-pxa2xx.c: In function ?setup_cs?:
  drivers/spi/spi-pxa2xx.c:1190:20: error: implicit declaration of function ?desc_to_gpio?
  ...

Reason for this is the fact that those functions are declared in
linux/gpio/consumer.h which is not included in the driver. Fix this by
including it.

Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Ben Hutchings <ben.hutchings@codethink.co.uk>
---
This fixes a build regression for some configurations since I applied
the backport of commit 3d3bc50700ba "spi: pxa2xx: Add support for GPIO
descriptor chip selects".

Ben.

 drivers/spi/spi-pxa2xx.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/spi/spi-pxa2xx.c b/drivers/spi/spi-pxa2xx.c
index 9233a1cb4dee..02685ccaa97b 100644
--- a/drivers/spi/spi-pxa2xx.c
+++ b/drivers/spi/spi-pxa2xx.c
@@ -28,6 +28,7 @@
 #include <linux/spi/spi.h>
 #include <linux/delay.h>
 #include <linux/gpio.h>
+#include <linux/gpio/consumer.h>
 #include <linux/slab.h>
 #include <linux/clk.h>
 #include <linux/pm_runtime.h>
-- 
Ben Hutchings, Software Developer                         Codethink Ltd
https://www.codethink.co.uk/                 Dale House, 35 Dale Street
                                     Manchester, M1 2HF, United Kingdom

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

* [cip-dev] [PATCH 4.4-cip] spi: pxa2xx: Fix build error because of missing header
  2019-06-20 12:37 [cip-dev] [PATCH 4.4-cip] spi: pxa2xx: Fix build error because of missing header Ben Hutchings
@ 2019-06-25  8:52 ` Pavel Machek
  0 siblings, 0 replies; 2+ messages in thread
From: Pavel Machek @ 2019-06-25  8:52 UTC (permalink / raw)
  To: cip-dev

On Thu 2019-06-20 13:37:46, Ben Hutchings wrote:
> From: Mika Westerberg <mika.westerberg@linux.intel.com>
> 
> commit 089bd46d8bc1fe5a28351e82e4adcaa5a40121b5 upstream.
> 
> Kbuild test robot reports:
> 
>   drivers/spi/spi-pxa2xx.c: In function ?setup_cs?:
>   drivers/spi/spi-pxa2xx.c:1190:20: error: implicit declaration of function ?desc_to_gpio?
>   ...
> 
> Reason for this is the fact that those functions are declared in
> linux/gpio/consumer.h which is not included in the driver. Fix this by
> including it.

Thanks, applied.

								Pavel
								
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://lists.cip-project.org/pipermail/cip-dev/attachments/20190625/f1c95d57/attachment.sig>

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

end of thread, other threads:[~2019-06-25  8:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-20 12:37 [cip-dev] [PATCH 4.4-cip] spi: pxa2xx: Fix build error because of missing header Ben Hutchings
2019-06-25  8:52 ` Pavel Machek

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.