]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit01951fc4ddc2ffb8b22cb08ae83534d683deb5c2
tree9c5bb7744164b5f90943612f55603c26577854e4
parent7f7b15c3e582320c3ba5a09bb3bb0079a6feafa5
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