Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame^] | 1 | arptables: fix the redefinition of 'arpt_get_target' |
| 2 | |
| 3 | Upstream-Status: Pending |
| 4 | |
| 5 | This function is already defined as a static inline function in |
| 6 | include/linux/netfilter_arp/arp_tables.h, once GCC uses -O0, the |
| 7 | inline will not work, and the redefinition error will happen |
| 8 | |
| 9 | Signed-off-by: Aws Ismail <aws.ismail@windriver.com> |
| 10 | Signed-off-by: Roy.Li <rongqing.li@windriver.com> |
| 11 | |
| 12 | diff --git a/libarptc/libarptc_incl.c b/libarptc/libarptc_incl.c |
| 13 | index 35736db..addd3f9 100644 |
| 14 | --- a/libarptc/libarptc_incl.c |
| 15 | +++ b/libarptc/libarptc_incl.c |
| 16 | @@ -11,14 +11,6 @@ |
| 17 | /* (C)1999 Paul ``Rusty'' Russell - Placed under the GNU GPL (See |
| 18 | COPYING for details). */ |
| 19 | |
| 20 | -#ifndef __OPTIMIZE__ |
| 21 | -STRUCT_ENTRY_TARGET * |
| 22 | -GET_TARGET(STRUCT_ENTRY *e) |
| 23 | -{ |
| 24 | - return (void *)e + e->target_offset; |
| 25 | -} |
| 26 | -#endif |
| 27 | - |
| 28 | static int sockfd = -1; |
| 29 | static void *arptc_fn = NULL; |
| 30 | |