Skip to content

Commit 331c584

Browse files
committed
Merge branch 'stable' of git://git.kernel.org/pub/scm/linux/kernel/git/cmetcalf/linux-tile
Pull arch/tile fix from Chris Metcalf: "This fix eliminates a "section mismatch" warning caused by the new __ex_table checking code in modpost" * 'stable' of git://git.kernel.org/pub/scm/linux/kernel/git/cmetcalf/linux-tile: modpost: work correctly with tile coldtext sections
2 parents 9d993cc + 673c2c3 commit 331c584

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

arch/tile/lib/memcpy_user_64.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
#define _ST(p, inst, v) \
2929
({ \
3030
asm("1: " #inst " %0, %1;" \
31-
".pushsection .coldtext.memcpy,\"ax\";" \
31+
".pushsection .coldtext,\"ax\";" \
3232
"2: { move r0, %2; jrp lr };" \
3333
".section __ex_table,\"a\";" \
3434
".align 8;" \
@@ -41,7 +41,7 @@
4141
({ \
4242
unsigned long __v; \
4343
asm("1: " #inst " %0, %1;" \
44-
".pushsection .coldtext.memcpy,\"ax\";" \
44+
".pushsection .coldtext,\"ax\";" \
4545
"2: { move r0, %2; jrp lr };" \
4646
".section __ex_table,\"a\";" \
4747
".align 8;" \

scripts/mod/modpost.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -886,7 +886,8 @@ static void check_section(const char *modname, struct elf_info *elf,
886886
#define TEXT_SECTIONS ".text", ".text.unlikely", ".sched.text", \
887887
".kprobes.text"
888888
#define OTHER_TEXT_SECTIONS ".ref.text", ".head.text", ".spinlock.text", \
889-
".fixup", ".entry.text", ".exception.text", ".text.*"
889+
".fixup", ".entry.text", ".exception.text", ".text.*", \
890+
".coldtext"
890891

891892
#define INIT_SECTIONS ".init.*"
892893
#define MEM_INIT_SECTIONS ".meminit.*"

0 commit comments

Comments
 (0)