Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1736833 > unrolled thread
| Started by | Randy Dunlap <rdunlap@infradead.org> |
|---|---|
| First post | 2017-09-21 18:20 +0200 |
| Last post | 2017-09-21 20:10 +0200 |
| Articles | 3 — 2 participants |
Back to article view | Back to linux.kernel
[PATCH -next] spi: fix spi-sprd-adi build errors when COMPILE_TEST=y Randy Dunlap <rdunlap@infradead.org> - 2017-09-21 18:20 +0200
Re: [PATCH -next] spi: fix spi-sprd-adi build errors when COMPILE_TEST=y Mark Brown <broonie@kernel.org> - 2017-09-21 18:50 +0200
Re: [PATCH -next] spi: fix spi-sprd-adi build errors when COMPILE_TEST=y Randy Dunlap <rdunlap@infradead.org> - 2017-09-21 20:10 +0200
| From | Randy Dunlap <rdunlap@infradead.org> |
|---|---|
| Date | 2017-09-21 18:20 +0200 |
| Subject | [PATCH -next] spi: fix spi-sprd-adi build errors when COMPILE_TEST=y |
| Message-ID | <uscmL-3iX-45@gated-at.bofh.it> |
From: Randy Dunlap <rdunlap@infradead.org> Fix build errors when CONFIG_HWSPINLOCK=m. This patch fixes the build errors when COMPILE_TEST=y, but I expect that this driver also wants HWSPINLOCK_SPRD=y (or =m when SPI_SPRD_ADI=m). drivers/spi/spi-sprd-adi.o: In function `sprd_adi_remove': spi-sprd-adi.c:(.text+0x13): undefined reference to `hwspin_lock_free' drivers/spi/spi-sprd-adi.o: In function `sprd_adi_probe': spi-sprd-adi.c:(.text+0xf5): undefined reference to `of_hwspin_lock_get_id' spi-sprd-adi.c:(.text+0x107): undefined reference to `hwspin_lock_request_specific' spi-sprd-adi.c:(.text+0x22e): undefined reference to `hwspin_lock_free' drivers/spi/spi-sprd-adi.o: In function `sprd_adi_transfer_one': spi-sprd-adi.c:(.text+0x2eb): undefined reference to `__hwspin_lock_timeout' spi-sprd-adi.c:(.text+0x349): undefined reference to `__hwspin_unlock' spi-sprd-adi.c:(.text+0x389): undefined reference to `__hwspin_lock_timeout' spi-sprd-adi.c:(.text+0x3ee): undefined reference to `__hwspin_unlock' Signed-off-by: Randy Dunlap <rdunlap@infradead.org> Cc: Baolin Wang <Baolin.Wang@spreadtrum.com> Cc: Mark Brown <broonie@kernel.org> Cc: linux-spi@vger.kernel.org --- drivers/spi/Kconfig | 1 + 1 file changed, 1 insertion(+) --- linux-next-20170921.orig/drivers/spi/Kconfig +++ linux-next-20170921/drivers/spi/Kconfig @@ -625,6 +625,7 @@ config SPI_SIRF config SPI_SPRD_ADI tristate "Spreadtrum ADI controller" depends on ARCH_SPRD || COMPILE_TEST + depends on HWSPINLOCK help ADI driver based on SPI for Spreadtrum SoCs.
[toc] | [next] | [standalone]
| From | Mark Brown <broonie@kernel.org> |
|---|---|
| Date | 2017-09-21 18:50 +0200 |
| Subject | Re: [PATCH -next] spi: fix spi-sprd-adi build errors when COMPILE_TEST=y |
| Message-ID | <uscPM-3sF-19@gated-at.bofh.it> |
| In reply to | #1736833 |
[Multipart message — attachments visible in raw view] — view raw
On Thu, Sep 21, 2017 at 09:10:04AM -0700, Randy Dunlap wrote: > +++ linux-next-20170921/drivers/spi/Kconfig > @@ -625,6 +625,7 @@ config SPI_SIRF > config SPI_SPRD_ADI > tristate "Spreadtrum ADI controller" > depends on ARCH_SPRD || COMPILE_TEST > + depends on HWSPINLOCK > help > ADI driver based on SPI for Spreadtrum SoCs. Why is this a more sensible fix than providing stubs for HWSPINLOCK?
[toc] | [prev] | [next] | [standalone]
| From | Randy Dunlap <rdunlap@infradead.org> |
|---|---|
| Date | 2017-09-21 20:10 +0200 |
| Subject | Re: [PATCH -next] spi: fix spi-sprd-adi build errors when COMPILE_TEST=y |
| Message-ID | <use5c-4l9-19@gated-at.bofh.it> |
| In reply to | #1736849 |
On 09/21/17 09:49, Mark Brown wrote: > On Thu, Sep 21, 2017 at 09:10:04AM -0700, Randy Dunlap wrote: > >> +++ linux-next-20170921/drivers/spi/Kconfig >> @@ -625,6 +625,7 @@ config SPI_SIRF >> config SPI_SPRD_ADI >> tristate "Spreadtrum ADI controller" >> depends on ARCH_SPRD || COMPILE_TEST >> + depends on HWSPINLOCK >> help >> ADI driver based on SPI for Spreadtrum SoCs. > > Why is this a more sensible fix than providing stubs for HWSPINLOCK? > There are already stubs there. I'll send an updated patch. -- ~Randy
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web