[LLVMbugs] [Bug 4131] New: clang: error: indirection requires pointer operand ('void' invalid)
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Sun May 3 02:20:50 PDT 2009
http://llvm.org/bugs/show_bug.cgi?id=4131
Summary: clang: error: indirection requires pointer operand
('void' invalid)
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: edwintorok at gmail.com
CC: llvmbugs at cs.uiuc.edu
Blocks: 4068
clang -MD -MF kernel/.smp.o.d -nostdinc -isystem include -Iinclude
-I/home/edwin/builds/linux-2.6/arch/x86/include -include
include/linux/autoconf.h -D__KERNEL__ -Wall -Wundef-Wstrict-prototypes
-Wno-trigraphs -fno-strict-aliasing -fno-common
-Werror-implicit-function-declaration -O2 -m64 -march=core2 -mno-red-zone
-mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -DCONFIG_AS_CFI=1
-DCONFIG_AS_CFI_SIGNAL_FRAME=1 -pipe -Wno-sign-compare
-fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow
-Iarch/x86/include/asm/mach-default -Wframe-larger-than=2048
-fno-stack-protector -fno-omit-frame-pointer -fno-optimize-sibling-calls
-Wdeclaration-after-statement -Wno-pointer-sign -fwrapv -fno-dwarf2-cfi-asm
-D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(smp)"
-D"KBUILD_MODNAME=KBUILD_STR(smp)" -c -o kernel/.tmp_smp.o kernel/smp.c
warning: unknown warning option: -Wframe-larger-than=2048
kernel/smp.c:14:8: error: variable has incomplete type 'typeof(struct
call_single_queue)' (aka 'struct call_single_queue')
static DEFINE_PER_CPU(struct call_single_queue, call_single_queue);
^
<scratch space>:201:1: note: instantiated from:
per_cpu__call_single_queue
^
kernel/smp.c:14:8: note: forward declaration of 'struct call_single_queue'
static DEFINE_PER_CPU(struct call_single_queue, call_single_queue);
^
kernel/smp.c:14:30: note: instantiated from:
static DEFINE_PER_CPU(struct call_single_queue, call_single_queue);
^
kernel/smp.c:42:34: error: indirection requires pointer operand ('void'
invalid)
struct call_single_queue *q = &per_cpu(call_single_queue, i);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/asm-generic/percpu.h:57:3: note: instantiated from:
(*SHIFT_PERCPU_PTR(&per_cpu_var(var), per_cpu_offset(cpu)))
^
kernel/smp.c:67:35: error: indirection requires pointer operand ('void'
invalid)
struct call_single_queue *dst = &per_cpu(call_single_queue, cpu);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/asm-generic/percpu.h:57:3: note: instantiated from:
(*SHIFT_PERCPU_PTR(&per_cpu_var(var), per_cpu_offset(cpu)))
^
kernel/smp.c:155:33: error: indirection requires pointer operand ('void'
invalid)
struct call_single_queue *q = &__get_cpu_var(call_single_queue);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/asm-generic/percpu.h:59:3: note: instantiated from:
(*SHIFT_PERCPU_PTR(&per_cpu_var(var), my_cpu_offset))
^
5 diagnostics generated.
make[1]: *** [kernel/smp.o] Error 1
make: *** [kernel/smp.o] Error 2
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list