mirror-linux/arch/frv/include/asm
Matthias Kaehlcke 60b0a8c3d2 frv: declare jiffies to be located in the .data section
Commit 7c30f352c8 ("jiffies.h: declare jiffies and jiffies_64 with
____cacheline_aligned_in_smp") removed a section specification from the
jiffies declaration that caused conflicts on some platforms.

Unfortunately this change broke the build for frv:

  kernel/built-in.o: In function `__do_softirq': (.text+0x6460): relocation truncated to fit: R_FRV_GPREL12 against symbol
      `jiffies' defined in *ABS* section in .tmp_vmlinux1
  kernel/built-in.o: In function `__do_softirq': (.text+0x6574): relocation truncated to fit: R_FRV_GPREL12 against symbol
      `jiffies' defined in *ABS* section in .tmp_vmlinux1
  kernel/built-in.o: In function `pwq_activate_delayed_work': workqueue.c:(.text+0x15b9c): relocation truncated to fit: R_FRV_GPREL12 against
      symbol `jiffies' defined in *ABS* section in .tmp_vmlinux1
  ...

Add __jiffy_arch_data to the declaration of jiffies and use it on frv to
include the section specification.  For all other platforms
__jiffy_arch_data (currently) has no effect.

Fixes: 7c30f352c8 ("jiffies.h: declare jiffies and jiffies_64 with ____cacheline_aligned_in_smp")
Link: http://lkml.kernel.org/r/20170516221333.177280-1-mka@chromium.org
Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
Reported-by: Guenter Roeck <linux@roeck-us.net>
Tested-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: David Howells <dhowells@redhat.com>
Cc: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2017-06-02 15:07:37 -07:00
..
Kbuild frv: switch to use of fixup_exception() 2017-03-28 18:23:32 -04:00
asm-offsets.h
atomic.h frv: add missing atomic64 operations 2017-01-24 16:26:14 -08:00
atomic_defs.h locking/atomic, arch/frv: Implement atomic{,64}_fetch_{add,sub,and,or,xor}() 2016-06-16 10:48:24 +02:00
ax88796.h
barrier.h arch: Clean up asm/barrier.h implementations using asm-generic/barrier.h 2014-01-12 10:37:15 +01:00
bitops.h frv: Rewrite atomic implementation 2015-07-27 14:06:23 +02:00
bug.h
bugs.h
busctl-regs.h
cache.h
cacheflush.h
checksum.h ipv6: Pass proto to csum_ipv6_magic as __u8 instead of unsigned short 2016-03-13 23:55:13 -04:00
cmpxchg.h locking/cmpxchg, arch: Remove tas() definitions 2015-12-04 11:39:51 +01:00
cpu-irqs.h
current.h
delay.h
device.h
div64.h
dm9000.h
dma-mapping.h treewide: Consolidate get_dma_ops() implementations 2017-01-24 12:23:35 -05:00
dma.h
elf.h default SET_PERSONALITY() in linux/elf.h 2013-02-26 02:46:08 -05:00
emergency-restart.h
fb.h
fpu.h
ftrace.h
futex.h Replace <asm/uaccess.h> with <linux/uaccess.h> globally 2016-12-24 11:46:01 -08:00
gdb-stub.h
gpio-regs.h
hardirq.h
highmem.h kmap_atomic_to_page() has no users, remove it 2015-11-09 15:11:24 -08:00
hw_irq.h
io.h arch/frv/include/asm/io.h: accept const void pointers for read{b,w,l}() 2016-01-20 17:09:18 -08:00
irc-regs.h
irq.h
irq_regs.h
irqflags.h
kdebug.h
kmap_types.h
linkage.h
local.h
local64.h
math-emu.h
mb-regs.h
mb86943a.h
mb93091-fpga-irqs.h
mb93093-fpga-irqs.h
mb93493-irqs.h
mb93493-regs.h
mem-layout.h
mmu.h
mmu_context.h
module.h
page.h asm-generic: page.h: Remove useless get_user_page and free_user_page 2016-02-26 15:24:55 +01:00
pci.h PCI: Move pci_dma_* helpers to common code 2016-03-07 10:40:02 -06:00
percpu.h
perf_event.h
pgalloc.h
pgtable.h arch, mm: convert all architectures to use 5level-fixup.h 2017-03-09 11:48:47 -08:00
processor.h locking/core: Provide common cpu_relax_yield() definition 2016-11-17 08:17:36 +01:00
ptrace.h
sections.h frv: remove unused inline function is_in_rom() 2015-06-25 17:00:37 -07:00
segment.h kill __kernel_ds_p off 2016-09-27 21:15:20 -04:00
serial-regs.h
serial.h tty: frv, remove unused serial macros 2016-06-25 08:56:30 -07:00
setup.h
shmparam.h
signal.h frv: switch to generic old sigaction() 2013-02-03 18:15:55 -05:00
smp.h
spinlock.h
spr-regs.h
string.h lib/string.c: remove strnicmp() 2015-02-12 18:54:14 -08:00
switch_to.h
syscall.h
termios.h
thread_info.h frv: Remove signal translation and exec_domain 2015-04-12 20:58:24 +02:00
timer-regs.h
timex.h frv: declare jiffies to be located in the .data section 2017-06-02 15:07:37 -07:00
tlb.h
tlbflush.h
topology.h
types.h
uaccess.h frv: switch to RAW_COPY_USER 2017-03-28 18:23:32 -04:00
ucontext.h
unaligned.h
unistd.h sys_sgetmask/sys_ssetmask: add CONFIG_SGETMASK_SYSCALL 2014-06-04 16:54:14 -07:00
user.h
vga.h
virtconvert.h
xor.h