diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/core/flow.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/net/core/flow.c b/net/core/flow.c index 0ab5234b17d8..3ed2b4b1d6d4 100644 --- a/net/core/flow.c +++ b/net/core/flow.c | |||
@@ -142,8 +142,6 @@ typedef u64 flow_compare_t; | |||
142 | typedef u32 flow_compare_t; | 142 | typedef u32 flow_compare_t; |
143 | #endif | 143 | #endif |
144 | 144 | ||
145 | extern void flowi_is_missized(void); | ||
146 | |||
147 | /* I hear what you're saying, use memcmp. But memcmp cannot make | 145 | /* I hear what you're saying, use memcmp. But memcmp cannot make |
148 | * important assumptions that we can here, such as alignment and | 146 | * important assumptions that we can here, such as alignment and |
149 | * constant size. | 147 | * constant size. |
@@ -153,8 +151,7 @@ static int flow_key_compare(struct flowi *key1, struct flowi *key2) | |||
153 | flow_compare_t *k1, *k1_lim, *k2; | 151 | flow_compare_t *k1, *k1_lim, *k2; |
154 | const int n_elem = sizeof(struct flowi) / sizeof(flow_compare_t); | 152 | const int n_elem = sizeof(struct flowi) / sizeof(flow_compare_t); |
155 | 153 | ||
156 | if (sizeof(struct flowi) % sizeof(flow_compare_t)) | 154 | BUILD_BUG_ON(sizeof(struct flowi) % sizeof(flow_compare_t)); |
157 | flowi_is_missized(); | ||
158 | 155 | ||
159 | k1 = (flow_compare_t *) key1; | 156 | k1 = (flow_compare_t *) key1; |
160 | k1_lim = k1 + n_elem; | 157 | k1_lim = k1 + n_elem; |