Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ipw2200: prepare for const netdev->dev_addr

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

authored by

Jakub Kicinski and committed by
Kalle Valo
d8a416de e3f90395

+4 -4
+3 -3
drivers/net/wireless/intel/ipw2x00/ipw2200.c
··· 199 199 struct clx2_tx_queue *txq, int qindex); 200 200 static int ipw_queue_reset(struct ipw_priv *priv); 201 201 202 - static int ipw_queue_tx_hcmd(struct ipw_priv *priv, int hcmd, void *buf, 202 + static int ipw_queue_tx_hcmd(struct ipw_priv *priv, int hcmd, const void *buf, 203 203 int len, int sync); 204 204 205 205 static void ipw_tx_queue_free(struct ipw_priv *); ··· 2264 2264 } 2265 2265 2266 2266 static int ipw_send_cmd_pdu(struct ipw_priv *priv, u8 command, u8 len, 2267 - void *data) 2267 + const void *data) 2268 2268 { 2269 2269 struct host_cmd cmd = { 2270 2270 .cmd = command, ··· 5033 5033 return used; 5034 5034 } 5035 5035 5036 - static int ipw_queue_tx_hcmd(struct ipw_priv *priv, int hcmd, void *buf, 5036 + static int ipw_queue_tx_hcmd(struct ipw_priv *priv, int hcmd, const void *buf, 5037 5037 int len, int sync) 5038 5038 { 5039 5039 struct clx2_tx_queue *txq = &priv->txq_cmd;
+1 -1
drivers/net/wireless/intel/ipw2x00/ipw2200.h
··· 1945 1945 u8 cmd; 1946 1946 u8 len; 1947 1947 u16 reserved; 1948 - u32 *param; 1948 + const u32 *param; 1949 1949 } __packed; /* XXX */ 1950 1950 1951 1951 struct cmdlog_host_cmd {