Przeglądaj źródła

msm: ipa: make changes to use ndo_siocdevprivate

ndo_do_ioctl is deprected in latest kernel. Instead make changes
to use ndo_siocdevprivate.

Change-Id: If7987fa0538ecb8a19d15443e17411873681c2aa
Signed-off-by: Chaitanya Pratapa <[email protected]>
Chaitanya Pratapa 3 lat temu
rodzic
commit
e57808f4dc
1 zmienionych plików z 8 dodań i 0 usunięć
  1. 8 0
      drivers/platform/msm/ipa/ipa_v3/rmnet_ipa.c

+ 8 - 0
drivers/platform/msm/ipa/ipa_v3/rmnet_ipa.c

@@ -2648,7 +2648,11 @@ static int handle3_egress_format_v2(struct net_device *dev,
  * later
  * -EFAULT: Error while transmitting the skb
  */
+#if (LINUX_VERSION_CODE <= KERNEL_VERSION(5, 14, 14))
 static int ipa3_wwan_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
+#else
+static int ipa3_wwan_ioctl(struct net_device *dev, struct ifreq *ifr, void __user *data, int cmd)
+#endif
 {
 	int rc = 0;
 	int mru = 1000, epid = 1, mux_index, len, epid_ll = 5;
@@ -3158,7 +3162,11 @@ static const struct net_device_ops ipa3_wwan_ops_ip = {
 	.ndo_stop = ipa3_wwan_stop,
 	.ndo_start_xmit = ipa3_wwan_xmit,
 	.ndo_tx_timeout = ipa3_wwan_tx_timeout,
+#if (LINUX_VERSION_CODE <= KERNEL_VERSION(5, 14, 14))
 	.ndo_do_ioctl = ipa3_wwan_ioctl,
+#else
+	.ndo_siocdevprivate = ipa3_wwan_ioctl,
+#endif
 	.ndo_change_mtu = ipa3_wwan_change_mtu,
 	.ndo_set_mac_address = 0,
 	.ndo_validate_addr = 0,