android_kernel_samsung_msm8976/include/asm-generic
Mark Rutland db81922415 asm-generic: Fix local variable shadow in __set_fixmap_offset
[ Upstream commit 3694bd76781b76c4f8d2ecd85018feeb1609f0e5 ]

Currently __set_fixmap_offset is a macro function which has a local
variable called 'addr'. If a caller passes a 'phys' parameter which is
derived from a variable also called 'addr', the local variable will
shadow this, and the compiler will complain about the use of an
uninitialized variable. To avoid the issue with namespace clashes,
'addr' is prefixed with a liberal sprinkling of underscores.

Turning __set_fixmap_offset into a static inline breaks the build for
several architectures. Fixing this properly requires updates to a number
of architectures to make them agree on the prototype of __set_fixmap (it
could be done as a subsequent patch series).

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Cc: Arnd Bergmann <arnd@arndb.de>
[catalin.marinas@arm.com: squashed the original function patch and macro fixup]
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-07-27 22:08:56 +02:00
..
bitops arch: Mass conversion of smp_mb__*() 2014-08-15 11:45:28 -07:00
4level-fixup.h
Kbuild.asm
atomic-long.h
atomic.h arch: Prepare for smp_mb__{before,after}_atomic() 2014-08-15 11:45:27 -07:00
atomic64.h
audit_change_attr.h
audit_dir_write.h
audit_read.h
audit_signal.h
audit_write.h
barrier.h arch: Prepare for smp_mb__{before,after}_atomic() 2014-08-15 11:45:27 -07:00
bitops.h arch: Prepare for smp_mb__{before,after}_atomic() 2014-08-15 11:45:27 -07:00
bitsperlong.h
bug.h
bugs.h
cache.h
cacheflush.h
checksum.h
clkdev.h
cmpxchg-local.h
cmpxchg.h
cputime.h
cputime_jiffies.h
cputime_nsecs.h
current.h
delay.h
device.h
div64.h
dma-coherent.h bludgeon the flounder kernel until it builds on i386 for qemu testing 2015-09-16 18:20:19 +05:30
dma-contiguous.h
dma-mapping-broken.h scsi: dma-mapping: always provide dma_get_cache_alignment 2019-07-27 21:46:11 +02:00
dma-mapping-common.h arm64: dma-mapping: make dma_ops const 2014-09-30 15:18:57 -07:00
dma.h
early_ioremap.h mm: create generic early_ioremap() support 2014-08-15 11:45:23 -07:00
emergency-restart.h
exec.h
fb.h
fixmap.h asm-generic: Fix local variable shadow in __set_fixmap_offset 2019-07-27 22:08:56 +02:00
ftrace.h
futex.h
getorder.h
gpio.h
hardirq.h
hugetlb.h
hw_irq.h
ide_iops.h
int-l64.h
int-ll64.h
io-64-nonatomic-hi-lo.h
io-64-nonatomic-lo-hi.h
io.h Kconfig: rename HAS_IOPORT to HAS_IOPORT_MAP 2014-08-15 11:41:43 -07:00
ioctl.h
iomap.h Kconfig: rename HAS_IOPORT to HAS_IOPORT_MAP 2014-08-15 11:41:43 -07:00
irq.h
irq_regs.h
irqflags.h
kdebug.h
kmap_types.h
kvm_para.h
libata-portmap.h
linkage.h
local.h
local64.h
mcs_spinlock.h
memory_model.h
mm_hooks.h
mmu.h
mmu_context.h
module.h
mutex-dec.h
mutex-null.h
mutex-xchg.h
mutex.h
page.h
param.h
parport.h
pci-bridge.h
pci-dma-compat.h
pci.h
pci_iomap.h
percpu.h
pgalloc.h
pgtable-nopmd.h
pgtable-nopud.h
pgtable.h Import latest Samsung release 2017-04-18 03:43:52 +02:00
ptrace.h
qspinlock.h Import latest Samsung release 2017-04-18 03:43:52 +02:00
qspinlock_types.h Import latest Samsung release 2017-04-18 03:43:52 +02:00
resource.h
rtc.h
rwsem.h
scatterlist.h
seccomp.h asm-generic: add generic seccomp.h for secure computing mode 1 2015-03-19 14:52:40 -07:00
sections.h nosave: consolidate __nosave_{begin,end} in <asm/sections.h> 2015-05-06 21:56:28 +02:00
segment.h
serial.h
siginfo.h
signal.h
simd.h crypto: create generic version of ablk_helper 2014-08-15 17:22:16 -07:00
sizes.h
spinlock.h
statfs.h
string.h
switch_to.h
syscall.h syscall_get_arch: remove useless function arguments 2015-03-19 14:52:43 -07:00
syscalls.h
termios-base.h
termios.h
timex.h
tlb.h
tlbflush.h
topology.h cpumask: fix spurious cpumask_of_node() on non-NUMA multi-node configs 2019-07-27 21:45:10 +02:00
trace_clock.h
uaccess-unaligned.h
uaccess.h asm-generic: make copy_from_user() zero the destination properly 2019-07-27 21:42:13 +02:00
unaligned.h
unistd.h
user.h
vga.h
vmlinux.lds.h Import latest Samsung release 2017-04-18 03:43:52 +02:00
word-at-a-time.h
xor.h