Skip to contentSkip to conversation

UAPI: Fix up empty files in arch/cris/

PATCH In review David Howells 2 participants 2 messages Oct 22, 2012 – Oct 24, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 UAPI: Fix up empty files in arch/cris/

Fix up three empty files in arch/cris/ by sticking placeholder comments in there to prevent the patch program from deleting them.

I decided not to delete the arch-v*/Kbuild files as it's possibly someone might want to use them for genhdr-y lines in the future, but they could be deleted and the pointer lines removed from asm/Kbuild. The uapi/arch-v*/Kbuild files ought to be uneffected by such a change.

asm/swab.h didn't have anything outside of __KERNEL__ so nothing appeared in uapi/asm/swab.h. The latter, however, is exported by Kbuild.asm.

This needs to be applied after the CRIS UAPI disintegration patch.

---

 arch/cris/include/arch-v10/arch/Kbuild |    1 +
 arch/cris/include/arch-v32/arch/Kbuild |    1 +
 arch/cris/include/uapi/asm/swab.h      |    3 +++
 3 files changed, 5 insertions(+)
arch/cris/include/arch-v10/arch/Kbuild +1 -0
index e69de29..a286906 100644
@@ -0,0 +1 @@
+# Cris arch V10
arch/cris/include/arch-v32/arch/Kbuild +1 -0
index e69de29..17d19f7 100644
@@ -0,0 +1 @@
+# Cris arch V32
arch/cris/include/uapi/asm/swab.h +3 -0
index e69de29..4adf1e9 100644
@@ -0,0 +1,3 @@
+/*
+ * CRIS byte swapping.
+ */
#1 lore raw
Quoted 8 lines · David Howells

Fix up three empty files in arch/cris/ by sticking placeholder comments in there to prevent the patch program from deleting them.

I decided not to delete the arch-v*/Kbuild files as it's possibly someone might want to use them for genhdr-y lines in the future, but they could be deleted and the pointer lines removed from asm/Kbuild. The uapi/arch-v*/Kbuild files ought to be uneffected by such a change.

Quoted 6 lines

asm/swab.h didn't have anything outside of __KERNEL__ so nothing appeared in uapi/asm/swab.h. The latter, however, is exported by Kbuild.asm.

This needs to be applied after the CRIS UAPI disintegration patch.

Thanks, I've rewritten the comments to match the canonical name of the architectures, and applied the following patch to the CRIS-tree (with the same comment as above).

---
 arch/cris/include/arch-v10/arch/Kbuild | 1 +
 arch/cris/include/arch-v32/arch/Kbuild | 1 +
 arch/cris/include/uapi/asm/swab.h      | 3 +++
 3 files changed, 5 insertions(+)
arch/cris/include/arch-v10/arch/Kbuild +1 -0
index e69de29..1f0fc7a 100644
@@ -0,0 +1 @@
+# CRISv10 arch
arch/cris/include/arch-v32/arch/Kbuild +1 -0
index e69de29..2fd65c7 100644
@@ -0,0 +1 @@
+# CRISv32 arch
arch/cris/include/uapi/asm/swab.h +3 -0
index e69de29..4adf1e9 100644
@@ -0,0 +1,3 @@
+/*
+ * CRIS byte swapping.
+ */

/^JN - Jesper Nilsson

Signature · 1 line
               Jesper Nilsson -- [email protected]