prog.c:1: warning: ‘struct cpu_state’ declared inside parameter list
prog.c:1: warning: its scope is only this definition or declaration, which is probably not what you want
prog.c: In function ‘bar’:
prog.c:7: warning: passing argument 1 of ‘foo’ from incompatible pointer type
/home/vz5DDQ/cc1XUItb.o: In function `main':
prog.c:(.text+0x26): undefined reference to `foo'
/home/vz5DDQ/cc1XUItb.o: In function `bar':
prog.c:(.text+0x1): undefined reference to `foo'
collect2: ld returned 1 exit status