Skip to contentSkip to conversation

fix arch/frv/mm/unaligned.o build error

PATCH In review Adrian Bunk 3 participants 4 messages Apr 29, 2008 – Apr 30, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix arch/frv/mm/unaligned.o build error

This patch fixes the following build error caused by commit 6510d41954dc6a9c8b1dbca7eaca0f23195ca727 (kernel: Move arches to use common unaligned access):

<-- snip -->

...
make[2]: *** No rule to make target arch/frv/mm/unaligned.o', needed by arch/frv/mm/built-in.o'. Stop. make[1]: *** [arch/frv/mm] Error 2

<-- snip -->

---
e3dae1fd99455187e952928f53f43b3bde6d0a08 diff --git a/arch/frv/mm/Makefile b/arch/frv/mm/Makefile index fb8b1d8..1bca5ab 100644

arch/frv/mm/Makefile +1 -1
@@ -6,4 +6,4 @@ obj-y := init.o kmap.o
 
 obj-$(CONFIG_MMU) += \
 	pgalloc.o highmem.o fault.o extable.o cache-page.o tlb-flush.o tlb-miss.o \
-	mmu-context.o dma-alloc.o unaligned.o elf-fdpic.o
+	mmu-context.o dma-alloc.o elf-fdpic.o
Reviewed-by on v1 1/1
#1 lore raw
Quoted 6 lines · Adrian Bunk

This patch fixes the following build error caused by commit 6510d41954dc6a9c8b1dbca7eaca0f23195ca727 (kernel: Move arches to use common unaligned access):

<-- snip -->

Quoted 7 lines

...
make[2]: *** No rule to make target arch/frv/mm/unaligned.o', needed by arch/frv/mm/built-in.o'. Stop. make[1]: *** [arch/frv/mm] Error 2

<-- snip -->

Thanks Adrian, I must have missed a git add during some of the revisions this patchset went through.

#2 lore raw

Please use this patch instead. I believe I sent it to you previously.

David
---
[PATCH] FRV: Unbreak misalignment handling changes

From: David Howells <[email protected]>

Fix a reference in a arch/frv/mm/Makefile to unaligned.c which has now been deleted.

Also revert the change to the guard macro name in include/asm-frv/unaligned.h.

---

 arch/frv/mm/Makefile        |    2 +-
 include/asm-frv/unaligned.h |    6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)
arch/frv/mm/Makefile +1 -1
index fb8b1d8..1bca5ab 100644
@@ -6,4 +6,4 @@ obj-y := init.o kmap.o
 
 obj-$(CONFIG_MMU) += \
 	pgalloc.o highmem.o fault.o extable.o cache-page.o tlb-flush.o tlb-miss.o \
-	mmu-context.o dma-alloc.o unaligned.o elf-fdpic.o
+	mmu-context.o dma-alloc.o elf-fdpic.o
include/asm-frv/unaligned.h +3 -3
index 64ccc73..839a2fb 100644
@@ -9,8 +9,8 @@
  * 2 of the License, or (at your option) any later version.
  */
 
-#ifndef _ASM_FRV_UNALIGNED_H
-#define _ASM_FRV_UNALIGNED_H
+#ifndef _ASM_UNALIGNED_H
+#define _ASM_UNALIGNED_H
 
 #include <linux/unaligned/le_byteshift.h>
 #include <linux/unaligned/be_byteshift.h>
@@ -19,4 +19,4 @@
 #define get_unaligned	__get_unaligned_be
 #define put_unaligned	__put_unaligned_be
 
-#endif /* _ASM_FRV_UNALIGNED_H */
+#endif /* _ASM_UNALIGNED_H */
#3 lore raw
Quoted 2 lines · David Howells

Please use this patch instead. I believe I sent it to you previously.

You sent it to Harvey (from whom the unaligned patches are) two weeks ago.

Sorry, I didn't search for that old patches before making my patch.

Quoted 45 lines

David
---
[PATCH] FRV: Unbreak misalignment handling changes

From: David Howells <[email protected]>

Fix a reference in a arch/frv/mm/Makefile to unaligned.c which has now been deleted.

Also revert the change to the guard macro name in include/asm-frv/unaligned.h.

---

 arch/frv/mm/Makefile        |    2 +-
 include/asm-frv/unaligned.h |    6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)
arch/frv/mm/Makefile +1 -1
index fb8b1d8..1bca5ab 100644
@@ -6,4 +6,4 @@ obj-y := init.o kmap.o
 
 obj-$(CONFIG_MMU) += \
 	pgalloc.o highmem.o fault.o extable.o cache-page.o tlb-flush.o tlb-miss.o \
-	mmu-context.o dma-alloc.o unaligned.o elf-fdpic.o
+	mmu-context.o dma-alloc.o elf-fdpic.o
include/asm-frv/unaligned.h +2 -2
index 64ccc73..839a2fb 100644
@@ -9,8 +9,8 @@
  * 2 of the License, or (at your option) any later version.
  */
 
-#ifndef _ASM_FRV_UNALIGNED_H
-#define _ASM_FRV_UNALIGNED_H
+#ifndef _ASM_UNALIGNED_H
+#define _ASM_UNALIGNED_H
 
 #include <linux/unaligned/le_byteshift.h>
 #include <linux/unaligned/be_byteshift.h>

include/asm-frv/unaligned.h line 22

Quoted 5 lines
include/asm-frv/unaligned.h +1 -1
@@ -19,4 +19,4 @@
 #define get_unaligned	__get_unaligned_be
 #define put_unaligned	__put_unaligned_be
 
-#endif /* _ASM_FRV_UNALIGNED_H */
+#endif /* _ASM_UNALIGNED_H */

cu
Adrian

Signature · 4 lines
       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed