kernel_optimize_test/arch/mips
Paul Burton f229454d34 MIPS: Fix protected_cache(e)_op() for microMIPS
When building for microMIPS we need to ensure that the assembler always
knows that there is code at the target of a branch or jump. Commit
7170bdc777 ("MIPS: Add return errors to protected cache ops")
introduced a fixup path to protected_cache(e)_op() which does not meet
this requirement. The fixup path jumps to the "2" label but the .section
pseudo-op immediately following it causes the label to be marked as
data. Linking then fails with:

  mips-img-linux-gnu-ld: arch/mips/mm/c-r4k.o: .fixup+0x0: Unsupported
  jump between ISA modes; consider recompiling with interlinking
  enabled.

Fix this by declaring that "2" labels code using the .insn directive.

Fixes: 7170bdc777 ("MIPS: Add return errors to protected cache ops")
Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Signed-off-by: James Hogan <james.hogan@imgtec.com>
Reviewed-by: Maciej W. Rozycki <macro@imgtec.com>
Cc: linux-mips@linux-mips.org
Cc: Ralf Baechle <ralf@linux-mips.org>
Patchwork: https://patchwork.linux-mips.org/patch/15274/
Signed-off-by: James Hogan <james.hogan@imgtec.com>
2017-02-13 18:57:33 +00:00
..
alchemy MIPS: Alchemy: Remove duplicate initializer 2017-01-25 02:51:10 +01:00
ar7
ath25
ath79 mips: ath79: clock:- Unmap region obtained by of_iomap 2017-01-25 02:51:12 +01:00
bcm47xx MIPS: BCM47XX: Add Luxul devices to the database 2017-01-25 02:51:12 +01:00
bcm63xx
bmips
boot MIPS: BMIPS: Add support SPI device nodes 2017-01-24 18:30:34 +01:00
cavium-octeon MIPS: Octeon: Avoid empty-body warning 2017-01-25 02:51:11 +01:00
cobalt
configs MIPS: Update ip27_defconfig for SCSI_DH change 2017-01-24 18:30:35 +01:00
dec Replace <asm/uaccess.h> with <linux/uaccess.h> globally 2016-12-24 11:46:01 -08:00
emma MIPS: Avoid old-style declaration 2017-01-25 02:51:11 +01:00
fw
generic MIPS: generic/kexec: add support for a DTB passed in a separate buffer 2017-01-03 16:34:46 +01:00
include MIPS: Fix protected_cache(e)_op() for microMIPS 2017-02-13 18:57:33 +00:00
jazz Replace <asm/uaccess.h> with <linux/uaccess.h> globally 2016-12-24 11:46:01 -08:00
jz4740 clocksource: Use a plain u64 instead of cycle_t 2016-12-25 11:04:12 +01:00
kernel MIPS: syscall: Return directly in mips_mmap() 2017-01-25 02:51:11 +01:00
kvm
lantiq MIPS: Lantiq: Lock DMA register accesses for SMP 2017-01-25 02:51:12 +01:00
lasat
lib MIPS: Fix modversions 2017-01-24 18:30:35 +01:00
loongson32 MIPS: Loongson1B: Change the OSC clock name 2017-01-03 16:48:40 +01:00
loongson64 MIPS: Loongson64: Fix empty-body warning in dma_alloc 2017-01-25 02:51:11 +01:00
math-emu Replace <asm/uaccess.h> with <linux/uaccess.h> globally 2016-12-24 11:46:01 -08:00
mm Merge tag 'mips_kvm_4.11_1' into mips-for-linux-next 2017-02-13 18:57:31 +00:00
mti-malta clocksource: Use a plain u64 instead of cycle_t 2016-12-25 11:04:12 +01:00
net
netlogic MIPS: Avoid old-style declaration 2017-01-25 02:51:11 +01:00
oprofile Merge branch 'smp-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2016-12-25 14:05:56 -08:00
paravirt
pci MIPS: TXx9: Modernize printing of kernel messages 2017-01-03 16:34:32 +01:00
pic32
pistachio
pmcs-msp71xx
pnx833x
power
ralink MIPS: ralink: Remove unused rt*_wdt_reset functions 2017-01-25 02:51:10 +01:00
rb532
sgi-ip22 MIPS: ip22: Fix ip28 build for modern gcc 2017-01-25 02:51:11 +01:00
sgi-ip27 MIPS: Avoid old-style declaration 2017-01-25 02:51:11 +01:00
sgi-ip32 MIPS: Avoid old-style declaration 2017-01-25 02:51:11 +01:00
sibyte Replace <asm/uaccess.h> with <linux/uaccess.h> globally 2016-12-24 11:46:01 -08:00
sni
txx9 MIPS: TXx9: Modernize printing of kernel messages 2017-01-03 16:34:32 +01:00
vdso MIPS: Fix modversions 2017-01-24 18:30:35 +01:00
vr41xx
xilfpga MIPS: xilfpga: Use irqchip instead of the legacy way 2017-01-03 16:34:39 +01:00
Kbuild
Kbuild.platforms
Kconfig MIPS: Generic: Fix big endian CPUs on generic machine 2017-01-25 02:51:12 +01:00
Kconfig.debug
Makefile MIPS: 'make -s' should be silent 2017-01-25 02:51:09 +01:00
Makefile.postlink MIPS: Use Makefile.postlink to insert relocations into vmlinux 2017-01-03 16:34:37 +01:00