From 4512f12e5bcc7b4844b56a30dc41bf99a9c743bb Mon Sep 17 00:00:00 2001 From: ivanmeler Date: Tue, 29 Mar 2022 18:09:27 +0000 Subject: [PATCH] drivers: modem_v1: Fix void pointer to enum cast --- drivers/misc/modem_v1/modem_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/misc/modem_v1/modem_main.c b/drivers/misc/modem_v1/modem_main.c index 5d5851b2bee7..2dc18614c2f9 100644 --- a/drivers/misc/modem_v1/modem_main.c +++ b/drivers/misc/modem_v1/modem_main.c @@ -661,7 +661,7 @@ enum mif_sim_mode { static int simslot_count(struct seq_file *m, void *v) { - enum mif_sim_mode mode = (enum mif_sim_mode)m->private; + enum mif_sim_mode mode = (enum mif_sim_mode)(long)m->private; seq_printf(m, "%u\n", mode); return 0; -- 2.20.1