c5d712433f
Fix the __pfn_to_page(pfn) macro so that it doesn't evaluate its argument twice in the CONFIG_DISCONTIGMEM=y case, because 'pfn' may be a result of a funtion call having side effects. For example, the hibernation code applies pfn_to_page(pfn) to the result of a function returning the pfn corresponding to the next set bit in a bitmap and the current bit position is modified on each call. This leads to "interesting" failures for CONFIG_DISCONTIGMEM=y due to the current behavior of __pfn_to_page(pfn). Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl> Acked-by: Pavel Machek <pavel@suse.cz> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> |
||
---|---|---|
.. | ||
bitops | ||
4level-fixup.h | ||
atomic.h | ||
audit_change_attr.h | ||
audit_dir_write.h | ||
audit_read.h | ||
audit_signal.h | ||
audit_write.h | ||
bitops.h | ||
bug.h | ||
cmpxchg-local.h | ||
cmpxchg.h | ||
cputime.h | ||
device.h | ||
div64.h | ||
dma-coherent.h | ||
dma-mapping-broken.h | ||
dma-mapping.h | ||
emergency-restart.h | ||
errno-base.h | ||
errno.h | ||
fcntl.h | ||
futex.h | ||
gpio.h | ||
ide_iops.h | ||
int-l64.h | ||
int-ll64.h | ||
ioctl.h | ||
iomap.h | ||
irq_regs.h | ||
Kbuild | ||
Kbuild.asm | ||
kdebug.h | ||
libata-portmap.h | ||
local.h | ||
memory_model.h | ||
mm_hooks.h | ||
mman.h | ||
mutex-dec.h | ||
mutex-null.h | ||
mutex-xchg.h | ||
page.h | ||
pci-dma-compat.h | ||
pci.h | ||
percpu.h | ||
pgtable-nopmd.h | ||
pgtable-nopud.h | ||
pgtable.h | ||
poll.h | ||
resource.h | ||
rtc.h | ||
sections.h | ||
siginfo.h | ||
signal.h | ||
statfs.h | ||
syscall.h | ||
termios.h | ||
tlb.h | ||
topology.h | ||
uaccess.h | ||
vmlinux.lds.h | ||
xor.h |