net: filter: Fix redefinition warnings on x86-64.
authorDavid S. Miller <davem@davemloft.net>
Tue, 13 May 2014 17:13:33 +0000 (13:13 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 13 May 2014 17:13:33 +0000 (13:13 -0400)
commit1268e253a81e504bc5d5cb7f887dbd538984f137
tree9c5bb7744164b5f90943612f55603c26577854e4
parent62555582916c7b18558c91faaf271a3edbaeff83
net: filter: Fix redefinition warnings on x86-64.

Do not collide with the x86-64 PTRACE user API namespace.

net/core/filter.c:57:0: warning: "R8" redefined [enabled by default]
arch/x86/include/uapi/asm/ptrace-abi.h:38:0: note: this is the location of the previous definition

Fix by adding a BPF_ prefix to the register macros.

Reported-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/filter.c