ipw2200: prepare for const netdev->dev_addr
authorJakub Kicinski <kuba@kernel.org>
Mon, 18 Oct 2021 23:50:15 +0000 (16:50 -0700)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 20 Oct 2021 09:39:45 +0000 (12:39 +0300)
netdev->dev_addr will be come const soon, constify the argument
to command send to avoid compiler warnings.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20211018235021.1279697-10-kuba@kernel.org
drivers/net/wireless/intel/ipw2x00/ipw2200.c
drivers/net/wireless/intel/ipw2x00/ipw2200.h

index 0a38d17744a9dbaadbc75773f31e41e4d80cd17e..23037bfc9e4cbfb5183114610fb6701e4cd41fd3 100644 (file)
@@ -199,7 +199,7 @@ static int ipw_queue_tx_reclaim(struct ipw_priv *priv,
                                struct clx2_tx_queue *txq, int qindex);
 static int ipw_queue_reset(struct ipw_priv *priv);
 
-static int ipw_queue_tx_hcmd(struct ipw_priv *priv, int hcmd, void *buf,
+static int ipw_queue_tx_hcmd(struct ipw_priv *priv, int hcmd, const void *buf,
                             int len, int sync);
 
 static void ipw_tx_queue_free(struct ipw_priv *);
@@ -2264,7 +2264,7 @@ static int ipw_send_cmd_simple(struct ipw_priv *priv, u8 command)
 }
 
 static int ipw_send_cmd_pdu(struct ipw_priv *priv, u8 command, u8 len,
-                           void *data)
+                           const void *data)
 {
        struct host_cmd cmd = {
                .cmd = command,
@@ -5033,7 +5033,7 @@ static int ipw_queue_tx_reclaim(struct ipw_priv *priv,
        return used;
 }
 
-static int ipw_queue_tx_hcmd(struct ipw_priv *priv, int hcmd, void *buf,
+static int ipw_queue_tx_hcmd(struct ipw_priv *priv, int hcmd, const void *buf,
                             int len, int sync)
 {
        struct clx2_tx_queue *txq = &priv->txq_cmd;
index 98fe62737888c5f6f20743f80fbae377440e590e..55cac934f4ee92e0b982e8c2956136a01eb0b39c 100644 (file)
@@ -1945,7 +1945,7 @@ struct host_cmd {
        u8 cmd;
        u8 len;
        u16 reserved;
-       u32 *param;
+       const u32 *param;
 } __packed;    /* XXX */
 
 struct cmdlog_host_cmd {