mirror of https://github.com/torvalds/linux.git
In response to compile breakage introduced by a series that added the
pud_write helper to x86, Stephen notes:
did you consider using the other paradigm:
In arch include files:
#define pud_write pud_write
static inline int pud_write(pud_t pud)
.....
Then in include/asm-generic/pgtable.h:
#ifndef pud_write
tatic inline int pud_write(pud_t pud)
{
....
}
#endif
If you had, then the powerpc code would have worked ... ;-) and many
of the other interfaces in include/asm-generic/pgtable.h are
protected that way ...
Given that some architecture already define pmd_write() as a macro, it's
a net reduction to drop the definition of __HAVE_ARCH_PMD_WRITE.
Link: http://lkml.kernel.org/r/151129126721.37405.13339850900081557813.stgit@dwillia2-desk3.amr.corp.intel.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Suggested-by: Stephen Rothwell <sfr@canb.auug.org.au>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: "Aneesh Kumar K.V" <aneesh.kumar@linux.vnet.ibm.com>
Cc: Oliver OHalloran <oliveroh@au1.ibm.com>
Cc: Chris Metcalf <cmetcalf@mellanox.com>
Cc: Russell King <linux@armlinux.org.uk>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
|
||
|---|---|---|
| .. | ||
| Kbuild | ||
| asm-offsets.h | ||
| atomic.h | ||
| atomic_32.h | ||
| atomic_64.h | ||
| backtrace.h | ||
| barrier.h | ||
| bitops.h | ||
| bitops_32.h | ||
| bitops_64.h | ||
| cache.h | ||
| cacheflush.h | ||
| checksum.h | ||
| cmpxchg.h | ||
| compat.h | ||
| current.h | ||
| delay.h | ||
| device.h | ||
| div64.h | ||
| dma-mapping.h | ||
| dma.h | ||
| elf.h | ||
| fixmap.h | ||
| ftrace.h | ||
| futex.h | ||
| hardirq.h | ||
| hardwall.h | ||
| highmem.h | ||
| homecache.h | ||
| hugetlb.h | ||
| hv_driver.h | ||
| ide.h | ||
| insn.h | ||
| io.h | ||
| irq.h | ||
| irq_work.h | ||
| irqflags.h | ||
| jump_label.h | ||
| kdebug.h | ||
| kexec.h | ||
| kgdb.h | ||
| kmap_types.h | ||
| kprobes.h | ||
| linkage.h | ||
| mmu.h | ||
| mmu_context.h | ||
| mmzone.h | ||
| module.h | ||
| page.h | ||
| pci.h | ||
| percpu.h | ||
| perf_event.h | ||
| pgalloc.h | ||
| pgtable.h | ||
| pgtable_32.h | ||
| pgtable_64.h | ||
| pmc.h | ||
| processor.h | ||
| ptrace.h | ||
| sections.h | ||
| setup.h | ||
| sigframe.h | ||
| signal.h | ||
| smp.h | ||
| spinlock.h | ||
| spinlock_32.h | ||
| spinlock_64.h | ||
| spinlock_types.h | ||
| stack.h | ||
| string.h | ||
| switch_to.h | ||
| syscall.h | ||
| syscalls.h | ||
| thread_info.h | ||
| tile-desc.h | ||
| tile-desc_32.h | ||
| tile-desc_64.h | ||
| timex.h | ||
| tlb.h | ||
| tlbflush.h | ||
| topology.h | ||
| traps.h | ||
| uaccess.h | ||
| unaligned.h | ||
| unistd.h | ||
| user.h | ||
| vdso.h | ||
| vga.h | ||
| word-at-a-time.h | ||