kernel-ark/include/asm-powerpc
Olaf Hering dbc11f539d [POWERPC] Include stddef.h in asm-powerpc/current.h to get offsetof
On Tue, Oct 31, Hugh Dickins wrote:

> +++ linux/include/asm-powerpc/current.h	2006-10-30 19:27:05.000000000 +0000

> +static inline struct task_struct *get_current(void)
> +{
> +	struct task_struct *task;
> +
> +	__asm__ __volatile__("ld %0,%1(13)"
> +	: "=r" (task)
> +	: "i" (offsetof(struct paca_struct, __current)));

This breaks compile of 2.6.18.8:

  CC [M]  drivers/media/video/pwc/pwc-uncompress.o
In file included from /home/olaf/kernel/linux-2.6.18.8/drivers/media/video/pwc/pwc-uncompress.c:29:
include2/asm/current.h: In function 'get_current':
include2/asm/current.h:23: warning: implicit declaration of function 'offsetof'
include2/asm/current.h:23: error: expected expression before 'struct'
make[5]: *** [drivers/media/video/pwc/pwc-uncompress.o] Error 1

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Signed-off-by: Paul Mackerras <paulus@samba.org>
2007-03-09 15:03:24 +11:00
..
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 [POWERPC] Include stddef.h in asm-powerpc/current.h to get offsetof 2007-03-09 15:03:24 +11:00
dbdma.h
dcr-mmio.h
dcr-native.h
dcr.h
delay.h
device.h
div64.h
dma-mapping.h
dma.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.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.h
pgtable-4k.h
pgtable-64k.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.h
resource.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
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.h
types.h
uaccess.h
ucc_fast.h
ucc_slow.h
ucc.h
ucontext.h
udbg.h
unaligned.h
uninorth.h
unistd.h [POWERPC] Allocate syscall number for sys_getcpu 2007-03-08 15:43:47 +11:00
user.h
vdso_datapage.h
vdso.h
vga.h
vio.h
xmon.h
xor.h