mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
[NET]: skbuff: remove old NET_CALLER macro
Here is a revised alternative that uses BUG_ON/WARN_ON (as suggested by Herbert Xu) to eliminate NET_CALLER. Signed-off-by: Stephen Hemminger <shemminger@osdl.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
98f245e797
commit
9c2b3328f7
3 changed files with 5 additions and 16 deletions
|
@ -83,12 +83,6 @@
|
|||
* Any questions? No questions, good. --ANK
|
||||
*/
|
||||
|
||||
#ifdef __i386__
|
||||
#define NET_CALLER(arg) (*(((void **)&arg) - 1))
|
||||
#else
|
||||
#define NET_CALLER(arg) __builtin_return_address(0)
|
||||
#endif
|
||||
|
||||
struct net_device;
|
||||
|
||||
#ifdef CONFIG_NETFILTER
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue