sparse issue buulding kernel/signal.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The following errors are coming when checking a kernel built for
ARM.

kernel/signal.c:1245:9: error: no member 'ip' in struct pt_regs
kernel/signal.c:1251:29: error: no member 'ip' in struct pt_regs
kernel/signal.c:1251:29: error: cast from unknown type
kernel/signal.c:1251:29: error: no member 'ip' in struct pt_regs
kernel/signal.c:1251:29: error: cast from unknown type
kernel/signal.c:1251:29: error: cannot dereference this type
kernel/signal.c:1251:29: error: cannot size expression
kernel/signal.c:1251:29: error: no member 'ip' in struct pt_regs
kernel/signal.c:1251:29: error: cast from unknown type
kernel/signal.c:1251:29: error: cannot dereference this type

The code is as follows

#if defined(__i386__) && !defined(__arch_um__)
	pr_info("code at %08lx: ", regs->ip);
	{
		int i;
		for (i = 0; i < 16; i++) {
			unsigned char insn;

			if (get_user(insn, (unsigned char *)(regs->ip + i)))
				break;
			pr_cont("%02x ", insn);
		}
	}
	pr_cont("\n");
#endif

so shouldn't really being built?

--
Ben Dooks				http://www.codethink.co.uk/
Senior Engineer				Codethink - Providing Genius

https://www.codethink.co.uk/privacy.html



[Index of Archives]     [Newbies FAQ]     [LKML]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Trinity Fuzzer Tool]

  Powered by Linux