4b7775870b
One common problem with 32 bit system call and ioctl emulation is the different alignment rules between i386 and 64 bit machines. A number of drivers work around this by marking the compat structures as 'attribute((packed))', which is not the right solution because it breaks all the non-x86 architectures that want to use the same compat code. Hopefully, this patch improves the situation, it introduces two new types, compat_u64 and compat_s64. These are defined on all architectures to have the same size and alignment as the 32 bit version of u64 and s64. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Acked-by: David S. Miller <davem@davemloft.net> Cc: David Woodhouse <dwmw2@infradead.org> Cc: Andi Kleen <ak@suse.de> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Cc: Vasily Tarasov <vtaras@openvz.org> Cc: <linux-arch@vger.kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> |
||
---|---|---|
.. | ||
iseries | ||
8253pit.h | ||
a.out.h | ||
abs_addr.h | ||
agp.h | ||
asm-compat.h | ||
atomic.h | ||
auxvec.h | ||
backlight.h | ||
bitops.h | ||
bootx.h | ||
btext.h | ||
bug.h | ||
bugs.h | ||
byteorder.h | ||
cache.h | ||
cacheflush.h | ||
cell-pmu.h | ||
checksum.h | ||
compat.h | ||
cputable.h | ||
cputime.h | ||
current.h | ||
dbdma.h | ||
dcr-mmio.h | ||
dcr-native.h | ||
dcr.h | ||
delay.h | ||
device.h | ||
div64.h | ||
dma-mapping.h | ||
dma.h | ||
edac.h | ||
eeh_event.h | ||
eeh.h | ||
elf.h | ||
emergency-restart.h | ||
errno.h | ||
fcntl.h | ||
firmware.h | ||
floppy.h | ||
fs_pd.h | ||
futex.h | ||
grackle.h | ||
hardirq.h | ||
heathrow.h | ||
hvcall.h | ||
hvconsole.h | ||
hvcserver.h | ||
hw_irq.h | ||
i8259.h | ||
ibmebus.h | ||
ide.h | ||
immap_86xx.h | ||
immap_qe.h | ||
io-defs.h | ||
io.h | ||
ioctl.h | ||
ioctls.h | ||
iommu.h | ||
ipc.h | ||
ipcbuf.h | ||
ipic.h | ||
irq_regs.h | ||
irq.h | ||
irqflags.h | ||
Kbuild | ||
kdebug.h | ||
kdump.h | ||
kexec.h | ||
keylargo.h | ||
kmap_types.h | ||
kprobes.h | ||
libata-portmap.h | ||
linkage.h | ||
lmb.h | ||
local.h | ||
lppaca.h | ||
lv1call.h | ||
machdep.h | ||
macio.h | ||
mc146818rtc.h | ||
mediabay.h | ||
mman.h | ||
mmu_context.h | ||
mmu-44x.h | ||
mmu-hash64.h | ||
mmu.h | ||
mmzone.h | ||
module.h | ||
mpc8xx.h | ||
mpc52xx.h | ||
mpc85xx.h | ||
mpc86xx.h | ||
mpc8260.h | ||
mpic.h | ||
msgbuf.h | ||
mutex.h | ||
namei.h | ||
nvram.h | ||
of_device.h | ||
of_platform.h | ||
ohare.h | ||
oprofile_impl.h | ||
paca.h | ||
page_32.h | ||
page_64.h | ||
page.h | ||
param.h | ||
parport.h | ||
pci-bridge.h | ||
pci.h | ||
percpu.h | ||
pgalloc-32.h | ||
pgalloc-64.h | ||
pgalloc.h | ||
pgtable-4k.h | ||
pgtable-64k.h | ||
pgtable-ppc32.h | ||
pgtable-ppc64.h | ||
pgtable.h | ||
pmac_feature.h | ||
pmac_low_i2c.h | ||
pmac_pfunc.h | ||
pmc.h | ||
pmi.h | ||
poll.h | ||
posix_types.h | ||
ppc_asm.h | ||
ppc-pci.h | ||
processor.h | ||
prom.h | ||
ps3.h | ||
ps3av.h | ||
ps3fb.h | ||
pSeries_reconfig.h | ||
ptrace.h | ||
qe_ic.h | ||
qe.h | ||
reg_8xx.h | ||
reg_booke.h | ||
reg.h | ||
resource.h | ||
rheap.h | ||
rtas.h | ||
rtc.h | ||
rwsem.h | ||
scatterlist.h | ||
seccomp.h | ||
sections.h | ||
semaphore.h | ||
sembuf.h | ||
serial.h | ||
setup.h | ||
shmbuf.h | ||
shmparam.h | ||
sigcontext.h | ||
siginfo.h | ||
signal.h | ||
smp.h | ||
smu.h | ||
socket.h | ||
sockios.h | ||
sparsemem.h | ||
spinlock_types.h | ||
spinlock.h | ||
spu_csa.h | ||
spu_info.h | ||
spu_priv1.h | ||
spu.h | ||
sstep.h | ||
stat.h | ||
statfs.h | ||
string.h | ||
suspend.h | ||
synch.h | ||
syscalls.h | ||
systbl.h | ||
system.h | ||
tce.h | ||
termbits.h | ||
termios.h | ||
thread_info.h | ||
time.h | ||
timex.h | ||
tlb.h | ||
tlbflush.h | ||
topology.h | ||
tsi108_irq.h | ||
tsi108_pci.h | ||
tsi108.h | ||
types.h | ||
uaccess.h | ||
ucc_fast.h | ||
ucc_slow.h | ||
ucc.h | ||
ucontext.h | ||
udbg.h | ||
uic.h | ||
unaligned.h | ||
uninorth.h | ||
unistd.h | ||
user.h | ||
vdso_datapage.h | ||
vdso.h | ||
vga.h | ||
vio.h | ||
xmon.h | ||
xor.h |