From: ivanmeler Date: Tue, 29 Mar 2022 18:09:27 +0000 (+0000) Subject: drivers: modem_v1: Fix void pointer to enum cast X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=refs%2Fheads%2Flineage-19.0;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git drivers: modem_v1: Fix void pointer to enum cast --- 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;