Skip to contentSkip to conversation

Fix various build errors

PATCH RESEND Applied Guenter Roeck 6 participants 20 messages May 4, 2015 – May 25, 2015

Subsystems (3)
lore
Share & tools
lore
#1 lore raw

PATCH RESEND 1/5 spi: bcm2835: Add GPIOLIB dependency

In reply to Guenter Roeck

Fix:

drivers/spi/spi-bcm2835.c: In function 'chip_match_name':
drivers/spi/spi-bcm2835.c:356:21: error:
dereferencing pointer to incomplete type
drivers/spi/spi-bcm2835.c: In function 'bcm2835_spi_setup':
drivers/spi/spi-bcm2835.c:382:2: error:
` implicit declaration of function 'gpiochip_find'
drivers/spi/spi-bcm2835.c:387:21: error:
dereferencing pointer to incomplete type

by adding the now mandatory GPIOLIB dependency.

Fixes a30a555d7435 ("spi: bcm2835: transform native-cs to gpio-cs

on first spi_setup")

---
Yes, I know, this patch is in -next. Please see this e-mail as gentle reminder to consider pushing it (or one of the other patches fixing the same problem) into mainline.

 drivers/spi/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/spi/Kconfig +1 -0
index 198f96b7fb45..a132180a9251 100644
@@ -78,6 +78,7 @@ config SPI_ATMEL
 config SPI_BCM2835
 	tristate "BCM2835 SPI controller"
 	depends on ARCH_BCM2835 || COMPILE_TEST
+	depends on GPIOLIB
 	help
 	  This selects a driver for the Broadcom BCM2835 SPI master.
 
Signature · 1 line
2.1.0
#0 lore raw

cover Fix various build errors

The following series of patches fix various mainline build errors. All have been submitted some time ago. Please see this series as reminder to either consider sending pull requests to Linus, or to find a better solution.

#9 lore raw

PATCH RESEND 2/5 mips: Fix SMP builds

Mips SMP builds fail with error messages similar to the following.

arch/mips/kernel/smp.c:211:2: error:
passing argument 2 of 'cpumask_set_cpu' discards 'volatile' qualifier from pointer target type
arch/mips/kernel/process.c:52:2: error:
passing argument 2 of 'cpumask_test_cpu' discards 'volatile' qualifier from pointer target type
arch/mips/cavium-octeon/smp.c:242:2: error:
passing argument 2 of 'cpumask_clear_cpu' discards 'volatile' qualifier from pointer target type

cpu_callin_map is declared as volatile variable, but passed to various functions with non-volatile arguments. Make it non-volatile and add a memory barrier at the one location where volatile might be needed.

Fixes 8dd928915a73 ("mips: fix up obsolete cpu function usage")
Cc Rusty Russell <[email protected]>

---
Please consider pushing this patch into mainline, or provide feedback on how to improve it to be acceptable.

 arch/mips/include/asm/smp.h | 2 +-
 arch/mips/kernel/smp.c      | 6 ++++--
 2 files changed, 5 insertions(+), 3 deletions(-)
arch/mips/include/asm/smp.h +1 -1
index bb02fac9b4fa..2b25d1ba1ea0 100644
@@ -45,7 +45,7 @@ extern int __cpu_logical_map[NR_CPUS];
 #define SMP_DUMP		0x8
 #define SMP_ASK_C0COUNT		0x10
 
-extern volatile cpumask_t cpu_callin_map;
+extern cpumask_t cpu_callin_map;
 
 /* Mask of CPUs which are currently definitely operating coherently */
 extern cpumask_t cpu_coherent_mask;
arch/mips/kernel/smp.c +4 -2
index 193ace7955fb..158191394770 100644
@@ -43,7 +43,7 @@
 #include <asm/time.h>
 #include <asm/setup.h>
 
-volatile cpumask_t cpu_callin_map;	/* Bitmask of started secondaries */
+cpumask_t cpu_callin_map;		/* Bitmask of started secondaries */
 
 int __cpu_number_map[NR_CPUS];		/* Map physical to logical */
 EXPORT_SYMBOL(__cpu_number_map);
@@ -218,8 +218,10 @@ int __cpu_up(unsigned int cpu, struct task_struct *tidle)
 	/*
 	 * Trust is futile.  We should really have timeouts ...
 	 */
-	while (!cpumask_test_cpu(cpu, &cpu_callin_map))
+	while (!cpumask_test_cpu(cpu, &cpu_callin_map)) {
 		udelay(100);
+		mb();
+	}
 
 	synchronise_count_master(cpu);
 	return 0;
Signature · 1 line
2.1.0
#10 lore raw

PATCH RESEND 3/5 xtensa: Provide dummy dma_alloc_attrs() and dma_free_attrs()

In reply to Guenter Roeck

xtensa:allmodconfig fails to build with the following errors.

drivers/gpu/drm/nouveau/nvkm/subdev/instmem/gk20a.c:
In function ‘gk20a_instobj_dtor_dma’:
drivers/gpu/drm/nouveau/nvkm/subdev/instmem/gk20a.c:154:2: error:
implicit declaration of function ‘dma_free_attrs’
drivers/gpu/drm/nouveau/nvkm/subdev/instmem/gk20a.c:
In function ‘gk20a_instobj_ctor_dma’:
drivers/gpu/drm/nouveau/nvkm/subdev/instmem/gk20a.c:218:2: error:
implicit declaration of function ‘dma_alloc_attrs’

Xtensa does not provide those functions at this time. Provide dummy implementations to avoid build errors.

---
Please consider pushing this patch into mainline, or provide feedback on how to improve it to be acceptable.

 arch/xtensa/include/asm/dma-mapping.h | 13 +++++++++++++
 1 file changed, 13 insertions(+)
arch/xtensa/include/asm/dma-mapping.h +13 -0
index 172a02a6ad14..ba78ccf651e7 100644
@@ -185,4 +185,17 @@ static inline int dma_get_sgtable(struct device *dev, struct sg_table *sgt,
 	return -EINVAL;
 }
 
+static inline void *dma_alloc_attrs(struct device *dev, size_t size,
+				    dma_addr_t *dma_handle, gfp_t flag,
+				    struct dma_attrs *attrs)
+{
+	return NULL;
+}
+
+static inline void dma_free_attrs(struct device *dev, size_t size,
+				  void *vaddr, dma_addr_t dma_handle,
+				  struct dma_attrs *attrs)
+{
+}
+
 #endif	/* _XTENSA_DMA_MAPPING_H */
Signature · 1 line
2.1.0
#13 lore raw

PATCH RESEND 4/5 score: Fix exception handler label

In reply to Guenter Roeck

The latest version of modinfo fails to compile score architecture targets with the following error.

FATAL: The relocation at __ex_table+0x634 references section "__ex_table" which is not executable, IOW the kernel will fault if it ever tries to jump to it. Something is seriously wrong and should be fixed.

The probem is caused by a bad label in an __ex_table entry.

Cc Quentin Casasnovas <[email protected]>

---
Please consider pushing this patch into mainline, or provide feedback on how to improve it to be acceptable.

 arch/score/lib/string.S | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/score/lib/string.S +1 -1
index 00b7d3a2fc60..16efa3ad037f 100644
@@ -175,10 +175,10 @@ ENTRY(__clear_user)
 	br	r3
 
 	.section .fixup, "ax"
+99:
 	br	r3
 	.previous
 	.section __ex_table, "a"
 	.align	2
-99:
 	.word	0b, 99b
 	.previous
Signature · 1 line
2.1.0
#17 lore raw

PATCH RESEND 5/5 blackfin: Fix build error

In reply to Guenter Roeck

Fix

include/asm-generic/io.h: In function 'readb':
include/asm-generic/io.h:113:2: error:
implicit declaration of function 'bfin_read8'
include/asm-generic/io.h: In function 'readw':
include/asm-generic/io.h:121:2: error:
implicit declaration of function 'bfin_read16'
include/asm-generic/io.h: In function 'readl':
include/asm-generic/io.h:129:2: error:
implicit declaration of function 'bfin_read32'
include/asm-generic/io.h: In function 'writeb':
include/asm-generic/io.h:147:2: error:
implicit declaration of function 'bfin_write8'
include/asm-generic/io.h: In function 'writew':
include/asm-generic/io.h:155:2: error:
implicit declaration of function 'bfin_write16'
include/asm-generic/io.h: In function 'writel':
include/asm-generic/io.h:163:2: error:
implicit declaration of function 'bfin_write32'

Fixes 1a3372bc522ef ("blackfin: io: define __raw_readx/writex with

bfin_readx/writex")

---
Please consider pushing this patch into mainline, or provide feedback on how to improve it to be acceptable.

 arch/blackfin/include/asm/io.h | 1 +
 1 file changed, 1 insertion(+)
arch/blackfin/include/asm/io.h +1 -0
index 4e8ad0523118..6abebe82d4e9 100644
@@ -10,6 +10,7 @@
 #include <linux/compiler.h>
 #include <linux/types.h>
 #include <asm/byteorder.h>
+#include <asm/def_LPBlackfin.h>
 
 #define __raw_readb bfin_read8
 #define __raw_readw bfin_read16
Signature · 1 line
2.1.0
maintainer
#11 lore raw

Re: [PATCH resend 3/5] xtensa: Provide dummy dma_alloc_attrs() and dma_free_attrs()

In reply to Guenter Roeck

Hi Guenter,

Sorry for the delay. Will work on it later today or tomorrow.

Thanks,
-Chris

Quoted 48 lines · Guenter Roeck

xtensa:allmodconfig fails to build with the following errors.

drivers/gpu/drm/nouveau/nvkm/subdev/instmem/gk20a.c:
In function ‘gk20a_instobj_dtor_dma’:
drivers/gpu/drm/nouveau/nvkm/subdev/instmem/gk20a.c:154:2: error:
implicit declaration of function ‘dma_free_attrs’
drivers/gpu/drm/nouveau/nvkm/subdev/instmem/gk20a.c:
In function ‘gk20a_instobj_ctor_dma’:
drivers/gpu/drm/nouveau/nvkm/subdev/instmem/gk20a.c:218:2: error:
implicit declaration of function ‘dma_alloc_attrs’

Xtensa does not provide those functions at this time. Provide dummy implementations to avoid build errors.

---
Please consider pushing this patch into mainline, or provide feedback on how to improve it to be acceptable.

 arch/xtensa/include/asm/dma-mapping.h | 13 +++++++++++++
 1 file changed, 13 insertions(+)
arch/xtensa/include/asm/dma-mapping.h +13 -1
index 172a02a6ad14..ba78ccf651e7 100644
@@ -185,4 +185,17 @@ static inline int dma_get_sgtable(struct device *dev, struct sg_table *sgt,
        return -EINVAL;
 }
 
+static inline void *dma_alloc_attrs(struct device *dev, size_t size,
+                                   dma_addr_t *dma_handle, gfp_t flag,
+                                   struct dma_attrs *attrs)
+{
+       return NULL;
+}
+
+static inline void dma_free_attrs(struct device *dev, size_t size,
+                                 void *vaddr, dma_addr_t dma_handle,
+                                 struct dma_attrs *attrs)
+{
+}
+
 #endif /* _XTENSA_DMA_MAPPING_H */
--

2.1.0

maintainer
#2 lore raw

Re: [PATCH resend 1/5] spi: bcm2835: Add GPIOLIB dependency

In reply to Guenter Roeck
Quoted 4 lines · Guenter Roeck

Fix:

drivers/spi/spi-bcm2835.c: In function 'chip_match_name':
drivers/spi/spi-bcm2835.c:356:21: error:

This duplicates a patch someone else sent.

#3 lore raw

Re: [PATCH resend 1/5] spi: bcm2835: Add GPIOLIB dependency

Quoted 8 lines · Mark Brown
Quoted 4 lines · Guenter Roeck

Fix:

drivers/spi/spi-bcm2835.c: In function 'chip_match_name':
drivers/spi/spi-bcm2835.c:356:21: error:

This duplicates a patch someone else sent.

Hi Mark,

not that it matters, but this is the patch in linux-next.

I am aware that several other patches have been submitted to fix the problem (I think I have seen at least two); after all, I submitted the patch some three weeks ago, and many others are affected by it. I don't really care which one of the submitted patches is applied to mainline, as long as the problem is getting fixed.

Repeating my comment from the patch,

"Yes, I know, this patch is in -next. Please see this e-mail as gentle reminder to consider pushing it (or one of the other patches fixing the same problem) into mainline."

Thanks,
Guenter

--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

#4 lore raw

Re: [PATCH resend 1/5] spi: bcm2835: Add GPIOLIB dependency

Quoted 20 lines · Guenter Roeck
Quoted 8 lines · Mark Brown
Quoted 4 lines · Guenter Roeck

Fix:

drivers/spi/spi-bcm2835.c: In function 'chip_match_name':
drivers/spi/spi-bcm2835.c:356:21: error:

This duplicates a patch someone else sent.

Hi Mark,

not that it matters, but this is the patch in linux-next.

I am aware that several other patches have been submitted to fix the problem (I think I have seen at least two); after all, I submitted the patch some three weeks ago, and many others are affected by it. I don't really care which one of the submitted patches is applied to mainline, as long as the problem is getting fixed.

Quoted 6 lines

Repeating my comment from the patch,

"Yes, I know, this patch is in -next. Please see this e-mail as gentle reminder to consider pushing it (or one of the other patches fixing the same problem) into mainline."

Follow-up: Since you accepted one of the other patches, please make sure to remove my patch from your -next branch; otherwise we might end up with dual "depends on GPIOLIB".

Thanks,
Guenter

--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

maintainer
#8 lore raw

Re: [PATCH resend 1/5] spi: bcm2835: Add GPIOLIB dependency

In reply to Guenter Roeck
Quoted 5 lines · Guenter Roeck

I am aware that several other patches have been submitted to fix the problem (I think I have seen at least two); after all, I submitted the patch some three weeks ago, and many others are affected by it. I don't really care which one of the submitted patches is applied to mainline, as long as the problem is getting fixed.

So, the way to do this is to follow up on one of the existing patches.

Quoted 5 lines

Repeating my comment from the patch,

"Yes, I know, this patch is in -next. Please see this e-mail as gentle reminder to consider pushing it (or one of the other patches fixing the same problem) into mainline."

Why would I even read that far into the patch? It's patch 1 of a series, it looks like someone's just blindly sending old stuff.

maintainer
#5 lore raw

Re: [PATCH resend 1/5] spi: bcm2835: Add GPIOLIB dependency

In reply to Guenter Roeck
Quoted 10 lines · Guenter Roeck
Quoted 4 lines · Guenter Roeck

not that it matters, but this is the patch in linux-next.

I am aware that several other patches have been submitted to fix the problem (I think I have seen at least two); after all, I submitted the

Follow-up: Since you accepted one of the other patches, please make sure to remove my patch from your -next branch; otherwise we might end up with dual "depends on GPIOLIB".

*sigh* So, what you're asking me to do here is remove the one that's actually been applied as a bugfix for Linus. Are you *sure* that's what you think that's a good idea?

#6 lore raw

Re: [PATCH resend 1/5] spi: bcm2835: Add GPIOLIB dependency

Hi Mark,

Quoted 8 lines · Mark Brown
Quoted 6 lines · Guenter Roeck
Quoted 4 lines · Guenter Roeck

not that it matters, but this is the patch in linux-next.

I am aware that several other patches have been submitted to fix the problem (I think I have seen at least two); after all, I submitted the

Quoted 7 lines
Quoted 3 lines

Follow-up: Since you accepted one of the other patches, please make sure to remove my patch from your -next branch; otherwise we might end up with dual "depends on GPIOLIB".

*sigh* So, what you're asking me to do here is remove the one that's actually been applied as a bugfix for Linus. Are you *sure* that's what you think that's a good idea?

spi.git/for-next now has two fixes for the same issue, from him (April 13), and from Sato-san (May 4):
- 8844d0f1cb921f70c ("spi: bcm2835: Add GPIOLIB dependency")
- e0d58cdcaedd90e4 ("spi: bcm2835: depends GPIOLIB")

Git merged them "nicely" when you merged 'spi/topic/bcm2835' into 'spi-next', leading to this chunk in drivers/spi/Kconfig:

config SPI_BCM2835
tristate "BCM2835 SPI controller" depends on GPIOLIB
depends on ARCH_BCM2835 || COMPILE_TEST depends on GPIOLIB

I think Günter wants you to keep only the commit you will send to Linus for v4.1-rc3, and remove the other commit.

Thanks!

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

maintainer
#7 lore raw

Re: [PATCH resend 1/5] spi: bcm2835: Add GPIOLIB dependency

Quoted 2 lines · Geert Uytterhoeven

I think Günter wants you to keep only the commit you will send to Linus for v4.1-rc3, and remove the other commit.

Yes, I know that's the *sensible* thing to do (hence why I was asking if he really meant what he asked for).

Acked-by on v1 4/5
#14 lore raw

Re: [PATCH resend 4/5] score: Fix exception handler label

In reply to Guenter Roeck

Hi Roeck,
You are right! I will push the patch.
Thank you.

2015-05-05 6:30 GMT+08:00 Guenter Roeck <[email protected]>:

Quoted 39 lines

The latest version of modinfo fails to compile score architecture targets with the following error.

FATAL: The relocation at __ex_table+0x634 references section "__ex_table" which is not executable, IOW the kernel will fault if it ever tries to jump to it. Something is seriously wrong and should be fixed.

The probem is caused by a bad label in an __ex_table entry.

Cc Quentin Casasnovas <[email protected]>

---
Please consider pushing this patch into mainline, or provide feedback on how to improve it to be acceptable.

 arch/score/lib/string.S | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/score/lib/string.S +1 -2
index 00b7d3a2fc60..16efa3ad037f 100644
@@ -175,10 +175,10 @@ ENTRY(__clear_user)
        br      r3
 
        .section .fixup, "ax"
+99:
        br      r3
        .previous
        .section __ex_table, "a"
        .align  2
-99:
        .word   0b, 99b
        .previous
--

2.1.0

Applied
#18 lore raw

Re: [PATCH resend 5/5] blackfin: Fix build error

In reply to Guenter Roeck

Applied. Thanks!

Quoted 48 lines · Guenter Roeck

Fix

include/asm-generic/io.h: In function 'readb':
include/asm-generic/io.h:113:2: error:
implicit declaration of function 'bfin_read8'
include/asm-generic/io.h: In function 'readw':
include/asm-generic/io.h:121:2: error:
implicit declaration of function 'bfin_read16'
include/asm-generic/io.h: In function 'readl':
include/asm-generic/io.h:129:2: error:
implicit declaration of function 'bfin_read32'
include/asm-generic/io.h: In function 'writeb':
include/asm-generic/io.h:147:2: error:
implicit declaration of function 'bfin_write8'
include/asm-generic/io.h: In function 'writew':
include/asm-generic/io.h:155:2: error:
implicit declaration of function 'bfin_write16'
include/asm-generic/io.h: In function 'writel':
include/asm-generic/io.h:163:2: error:
implicit declaration of function 'bfin_write32'

Fixes 1a3372bc522ef ("blackfin: io: define __raw_readx/writex with

bfin_readx/writex")

---
Please consider pushing this patch into mainline, or provide feedback on how to improve it to be acceptable.

 arch/blackfin/include/asm/io.h | 1 +
 1 file changed, 1 insertion(+)
arch/blackfin/include/asm/io.h +1 -1
index 4e8ad0523118..6abebe82d4e9 100644
@@ -10,6 +10,7 @@
 #include <linux/compiler.h>
 #include <linux/types.h>
 #include <asm/byteorder.h>
+#include <asm/def_LPBlackfin.h>
 
 #define __raw_readb bfin_read8
 #define __raw_readw bfin_read16
--

2.1.0

#12 lore raw

Re: [PATCH resend 3/5] xtensa: Provide dummy dma_alloc_attrs() and dma_free_attrs()

In reply to Chris Zankel
Quoted 4 lines · Chris Zankel

Hi Guenter,

Sorry for the delay. Will work on it later today or tomorrow.

Hi Chris,

I see this patch in -next, but still not in mainline. Are you planning to send it to Linus anytime soon ?

Thanks,
Guenter

Quoted 54 lines

Thanks,
-Chris

Quoted 48 lines · Guenter Roeck

xtensa:allmodconfig fails to build with the following errors.

drivers/gpu/drm/nouveau/nvkm/subdev/instmem/gk20a.c:
In function ‘gk20a_instobj_dtor_dma’:
drivers/gpu/drm/nouveau/nvkm/subdev/instmem/gk20a.c:154:2: error:
implicit declaration of function ‘dma_free_attrs’
drivers/gpu/drm/nouveau/nvkm/subdev/instmem/gk20a.c:
In function ‘gk20a_instobj_ctor_dma’:
drivers/gpu/drm/nouveau/nvkm/subdev/instmem/gk20a.c:218:2: error:
implicit declaration of function ‘dma_alloc_attrs’

Xtensa does not provide those functions at this time. Provide dummy implementations to avoid build errors.

---
Please consider pushing this patch into mainline, or provide feedback on how to improve it to be acceptable.

  arch/xtensa/include/asm/dma-mapping.h | 13 +++++++++++++
  1 file changed, 13 insertions(+)
arch/xtensa/include/asm/dma-mapping.h +13 -1
index 172a02a6ad14..ba78ccf651e7 100644
@@ -185,4 +185,17 @@ static inline int dma_get_sgtable(struct device *dev, struct sg_table *sgt,
         return -EINVAL;
  }
 
+static inline void *dma_alloc_attrs(struct device *dev, size_t size,
+                                   dma_addr_t *dma_handle, gfp_t flag,
+                                   struct dma_attrs *attrs)
+{
+       return NULL;
+}
+
+static inline void dma_free_attrs(struct device *dev, size_t size,
+                                 void *vaddr, dma_addr_t dma_handle,
+                                 struct dma_attrs *attrs)
+{
+}
+
  #endif /* _XTENSA_DMA_MAPPING_H */
--

2.1.0

#15 lore raw

Re: [PATCH resend 4/5] score: Fix exception handler label

In reply to Guenter Roeck
Quoted 9 lines · Guenter Roeck

The latest version of modinfo fails to compile score architecture targets with the following error.

FATAL: The relocation at __ex_table+0x634 references section "__ex_table" which is not executable, IOW the kernel will fault if it ever tries to jump to it. Something is seriously wrong and should be fixed.

Quoted 8 lines

The probem is caused by a bad label in an __ex_table entry.

Cc Quentin Casasnovas <[email protected]>

---
Please consider pushing this patch into mainline, or provide feedback on how to improve it to be acceptable.

ping ... still not in mainline.

Thanks,
Guenter

Quoted 20 lines
  arch/score/lib/string.S | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
arch/score/lib/string.S +1 -1
index 00b7d3a2fc60..16efa3ad037f 100644
@@ -175,10 +175,10 @@ ENTRY(__clear_user)
  	br	r3
 
  	.section .fixup, "ax"
+99:
  	br	r3
  	.previous
  	.section __ex_table, "a"
  	.align	2
-99:
  	.word	0b, 99b
  	.previous
#19 lore raw

Re: [PATCH resend 5/5] blackfin: Fix build error

In reply to Guenter Roeck

ping ....

Quoted 46 lines · Guenter Roeck

Fix

include/asm-generic/io.h: In function 'readb':
include/asm-generic/io.h:113:2: error:
implicit declaration of function 'bfin_read8'
include/asm-generic/io.h: In function 'readw':
include/asm-generic/io.h:121:2: error:
implicit declaration of function 'bfin_read16'
include/asm-generic/io.h: In function 'readl':
include/asm-generic/io.h:129:2: error:
implicit declaration of function 'bfin_read32'
include/asm-generic/io.h: In function 'writeb':
include/asm-generic/io.h:147:2: error:
implicit declaration of function 'bfin_write8'
include/asm-generic/io.h: In function 'writew':
include/asm-generic/io.h:155:2: error:
implicit declaration of function 'bfin_write16'
include/asm-generic/io.h: In function 'writel':
include/asm-generic/io.h:163:2: error:
implicit declaration of function 'bfin_write32'

Fixes 1a3372bc522ef ("blackfin: io: define __raw_readx/writex with

bfin_readx/writex")

---
Please consider pushing this patch into mainline, or provide feedback on how to improve it to be acceptable.

  arch/blackfin/include/asm/io.h | 1 +
  1 file changed, 1 insertion(+)
arch/blackfin/include/asm/io.h +1 -0
index 4e8ad0523118..6abebe82d4e9 100644
@@ -10,6 +10,7 @@
  #include <linux/compiler.h>
  #include <linux/types.h>
  #include <asm/byteorder.h>
+#include <asm/def_LPBlackfin.h>
 
  #define __raw_readb bfin_read8
  #define __raw_readw bfin_read16
#16 lore raw

Re: [PATCH resend 4/5] score: Fix exception handler label

In reply to Guenter Roeck

I will issue a pull request in this week.

Best,
Lennox

2015-05-23 12:24 GMT+08:00 Guenter Roeck <[email protected]>:

Quoted 46 lines · Guenter Roeck
Quoted 10 lines

The latest version of modinfo fails to compile score architecture targets with the following error.

FATAL: The relocation at __ex_table+0x634 references section "__ex_table" which is not executable, IOW the kernel will fault if it ever tries to jump to it. Something is seriously wrong and should be fixed.

Quoted 8 lines

The probem is caused by a bad label in an __ex_table entry.

Cc Quentin Casasnovas <[email protected]>

---
Please consider pushing this patch into mainline, or provide feedback on how to improve it to be acceptable.

ping ... still not in mainline.

Thanks,
Guenter

Quoted 20 lines
  arch/score/lib/string.S | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
arch/score/lib/string.S +1 -1
index 00b7d3a2fc60..16efa3ad037f 100644
@@ -175,10 +175,10 @@ ENTRY(__clear_user)
        br      r3
 
        .section .fixup, "ax"
+99:
        br      r3
        .previous
        .section __ex_table, "a"
        .align  2
-99:
        .word   0b, 99b
        .previous