diff options
-rw-r--r-- | net/xfrm/xfrm_algo.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/xfrm/xfrm_algo.c b/net/xfrm/xfrm_algo.c index 8a72def25a34..5ced62c19c63 100644 --- a/net/xfrm/xfrm_algo.c +++ b/net/xfrm/xfrm_algo.c | |||
@@ -407,27 +407,27 @@ static struct xfrm_algo_desc *xfrm_find_algo( | |||
407 | static int xfrm_alg_id_match(const struct xfrm_algo_desc *entry, | 407 | static int xfrm_alg_id_match(const struct xfrm_algo_desc *entry, |
408 | const void *data) | 408 | const void *data) |
409 | { | 409 | { |
410 | return entry->desc.sadb_alg_id == (int)data; | 410 | return entry->desc.sadb_alg_id == (unsigned long)data; |
411 | } | 411 | } |
412 | 412 | ||
413 | struct xfrm_algo_desc *xfrm_aalg_get_byid(int alg_id) | 413 | struct xfrm_algo_desc *xfrm_aalg_get_byid(int alg_id) |
414 | { | 414 | { |
415 | return xfrm_find_algo(&xfrm_aalg_list, xfrm_alg_id_match, | 415 | return xfrm_find_algo(&xfrm_aalg_list, xfrm_alg_id_match, |
416 | (void *)alg_id, 1); | 416 | (void *)(unsigned long)alg_id, 1); |
417 | } | 417 | } |
418 | EXPORT_SYMBOL_GPL(xfrm_aalg_get_byid); | 418 | EXPORT_SYMBOL_GPL(xfrm_aalg_get_byid); |
419 | 419 | ||
420 | struct xfrm_algo_desc *xfrm_ealg_get_byid(int alg_id) | 420 | struct xfrm_algo_desc *xfrm_ealg_get_byid(int alg_id) |
421 | { | 421 | { |
422 | return xfrm_find_algo(&xfrm_ealg_list, xfrm_alg_id_match, | 422 | return xfrm_find_algo(&xfrm_ealg_list, xfrm_alg_id_match, |
423 | (void *)alg_id, 1); | 423 | (void *)(unsigned long)alg_id, 1); |
424 | } | 424 | } |
425 | EXPORT_SYMBOL_GPL(xfrm_ealg_get_byid); | 425 | EXPORT_SYMBOL_GPL(xfrm_ealg_get_byid); |
426 | 426 | ||
427 | struct xfrm_algo_desc *xfrm_calg_get_byid(int alg_id) | 427 | struct xfrm_algo_desc *xfrm_calg_get_byid(int alg_id) |
428 | { | 428 | { |
429 | return xfrm_find_algo(&xfrm_calg_list, xfrm_alg_id_match, | 429 | return xfrm_find_algo(&xfrm_calg_list, xfrm_alg_id_match, |
430 | (void *)alg_id, 1); | 430 | (void *)(unsigned long)alg_id, 1); |
431 | } | 431 | } |
432 | EXPORT_SYMBOL_GPL(xfrm_calg_get_byid); | 432 | EXPORT_SYMBOL_GPL(xfrm_calg_get_byid); |
433 | 433 | ||