Skip to contentSkip to conversation

xtensa: enable sorting extable at build time

PATCH In review Max Filippov 2 participants 4 messages Feb 18, 2014 – Mar 7, 2014 Tensilica Xtensa port (xtensa)

lore
Share & tools
lore

Max Filippov

author maintainer
#0 lore raw

PATCH 1/1 xtensa: enable sorting extable at build time

---
 arch/xtensa/Kconfig   | 1 +
 scripts/sortextable.c | 5 +++++
 2 files changed, 6 insertions(+)
arch/xtensa/Kconfig +1 -0
index 1ccaf91..381370d 100644
@@ -14,6 +14,7 @@ config XTENSA
 	select GENERIC_PCI_IOMAP
 	select ARCH_WANT_IPC_PARSE_VERSION
 	select ARCH_WANT_OPTIONAL_GPIOLIB
+	select BUILDTIME_EXTABLE_SORT
 	select CLONE_BACKWARDS
 	select IRQ_DOMAIN
 	select HAVE_OPROFILE
scripts/sortextable.c +5 -0
index cc49062..1052d48 100644
@@ -35,6 +35,10 @@
 #define EM_ARCOMPACT	93
 #endif
 
+#ifndef EM_XTENSA
+#define EM_XTENSA	94
+#endif
+
 #ifndef EM_AARCH64
 #define EM_AARCH64	183
 #endif
@@ -281,6 +285,7 @@ do_file(char const *const fname)
 	case EM_AARCH64:
 	case EM_MICROBLAZE:
 	case EM_MIPS:
+	case EM_XTENSA:
 		break;
 	}  /* end switch */
 
Signature · 1 line
1.8.1.4
author maintainer
#1 lore raw
Quoted 5 lines · Max Filippov
---
 arch/xtensa/Kconfig   | 1 +
 scripts/sortextable.c | 5 +++++
 2 files changed, 6 insertions(+)

Ping?
David, is this OK for scripts/sortextable.c?

Quoted 37 lines
arch/xtensa/Kconfig +1 -0
index 1ccaf91..381370d 100644
@@ -14,6 +14,7 @@ config XTENSA
        select GENERIC_PCI_IOMAP
        select ARCH_WANT_IPC_PARSE_VERSION
        select ARCH_WANT_OPTIONAL_GPIOLIB
+       select BUILDTIME_EXTABLE_SORT
        select CLONE_BACKWARDS
        select IRQ_DOMAIN
        select HAVE_OPROFILE
scripts/sortextable.c +5 -1
index cc49062..1052d48 100644
@@ -35,6 +35,10 @@
 #define EM_ARCOMPACT   93
 #endif
 
+#ifndef EM_XTENSA
+#define EM_XTENSA      94
+#endif
+
 #ifndef EM_AARCH64
 #define EM_AARCH64     183
 #endif
@@ -281,6 +285,7 @@ do_file(char const *const fname)
        case EM_AARCH64:
        case EM_MICROBLAZE:
        case EM_MIPS:
+       case EM_XTENSA:
                break;
        }  /* end switch */
 
--

1.8.1.4

Signature · 2 lines
Thanks.
-- Max
#2 lore raw
Quoted 9 lines · Max Filippov
Quoted 5 lines · Max Filippov
---
  arch/xtensa/Kconfig   | 1 +
  scripts/sortextable.c | 5 +++++
  2 files changed, 6 insertions(+)

Ping?
David, is this OK for scripts/sortextable.c?

If you wish, you can add Acked-by: me.

But I am not the maintainer of the file, so you will have to get someone else to merge it.

David Daney

Quoted 39 lines
Quoted 38 lines
arch/xtensa/Kconfig +1 -0
index 1ccaf91..381370d 100644
@@ -14,6 +14,7 @@ config XTENSA
         select GENERIC_PCI_IOMAP
         select ARCH_WANT_IPC_PARSE_VERSION
         select ARCH_WANT_OPTIONAL_GPIOLIB
+       select BUILDTIME_EXTABLE_SORT
         select CLONE_BACKWARDS
         select IRQ_DOMAIN
         select HAVE_OPROFILE
scripts/sortextable.c +5 -1
index cc49062..1052d48 100644
@@ -35,6 +35,10 @@
  #define EM_ARCOMPACT   93
  #endif
 
+#ifndef EM_XTENSA
+#define EM_XTENSA      94
+#endif
+
  #ifndef EM_AARCH64
  #define EM_AARCH64     183
  #endif
@@ -281,6 +285,7 @@ do_file(char const *const fname)
         case EM_AARCH64:
         case EM_MICROBLAZE:
         case EM_MIPS:
+       case EM_XTENSA:
                 break;
         }  /* end switch */
 
--

1.8.1.4

author maintainer
#3 lore raw
Quoted 11 lines · David Daney
Quoted 10 lines · Max Filippov
Quoted 6 lines · Max Filippov
---
  arch/xtensa/Kconfig   | 1 +
  scripts/sortextable.c | 5 +++++
  2 files changed, 6 insertions(+)
Quoted 5 lines
Quoted 2 lines

Ping?
David, is this OK for scripts/sortextable.c?

If you wish, you can add Acked-by: me.

Thanks.

Quoted 2 lines

But I am not the maintainer of the file, so you will have to get someone else to merge it.

I guess we can merge this patch through the xtensa tree unless there are any objections.

--
Thanks.
-- Max