diff options
author | Jae Hyun Yoo <jae.hyun.yoo@linux.intel.com> | 2021-10-02 05:22:15 +0300 |
---|---|---|
committer | Jae Hyun Yoo <jae.hyun.yoo@linux.intel.com> | 2021-10-20 01:10:40 +0300 |
commit | 5961fe1c6410a03315731cb88260e85cb4fbd3c7 (patch) | |
tree | 38221f0524e0d340592dec93754cd96bb884833d | |
parent | 637a70a43a51df6276aec12d6df6b7311d4c30de (diff) | |
download | linux-5961fe1c6410a03315731cb88260e85cb4fbd3c7.tar.xz |
soc: aspeed: mctp: fix a build break
This commit fixes a build break which is caused by an incompatible
compare function parameter of list_sort() call.
Signed-off-by: Jae Hyun Yoo <jae.hyun.yoo@linux.intel.com>
-rw-r--r-- | drivers/soc/aspeed/aspeed-mctp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/soc/aspeed/aspeed-mctp.c b/drivers/soc/aspeed/aspeed-mctp.c index 7fb4506a1184..7509e0c54562 100644 --- a/drivers/soc/aspeed/aspeed-mctp.c +++ b/drivers/soc/aspeed/aspeed-mctp.c @@ -1123,7 +1123,7 @@ out_unlock: } static int -eid_info_cmp(void *priv, struct list_head *a, struct list_head *b) +eid_info_cmp(void *priv, const struct list_head *a, const struct list_head *b) { struct aspeed_mctp_endpoint *endpoint_a; struct aspeed_mctp_endpoint *endpoint_b; @@ -1221,7 +1221,7 @@ aspeed_mctp_set_eid_info(struct aspeed_mctp *priv, void __user *userbuf) list_add_tail(&endpoint->link, &list); } - list_sort(NULL, &list, &eid_info_cmp); + list_sort(NULL, &list, eid_info_cmp); if (!aspeed_mctp_eid_info_list_valid(&list)) { ret = -EINVAL; goto out; |