-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix compilation warning with 64 bit system #413
base: master
Are you sure you want to change the base?
Changes from 4 commits
8daab38
37c7a79
5fe83bd
44419b1
dba7428
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -364,10 +364,10 @@ static ssize_t mwl_debugfs_info_read(struct file *file, char __user *ubuf, | |
"-----------------------=> address| address|qlen|fw_desc_cnt\n"); | ||
spin_lock_irqsave(&pcie_priv->tx_desc_lock, flags); | ||
len += scnprintf(p + len, size - len, | ||
"wcb_base0 : %x => %8x|%8p|%4d|%d\n", get_hw_spec->wcb_base0, *((unsigned int *)le32_to_cpu(get_hw_spec->wcb_base0)),(void *)*((unsigned int *)le32_to_cpu(get_hw_spec->wcb_base0)),skb_queue_len(&pcie_priv->txq[0]),pcie_priv->fw_desc_cnt[0]); | ||
"wcb_base0 : %x => %8zx|%8p|%4d|%d\n", get_hw_spec->wcb_base0, *((uintptr_t *)(uintptr_t)le32_to_cpu(get_hw_spec->wcb_base0)),(void *)*((uintptr_t *)(uintptr_t)le32_to_cpu(get_hw_spec->wcb_base0)),skb_queue_len(&pcie_priv->txq[0]),pcie_priv->fw_desc_cnt[0]); | ||
for(i = 0; i < SYSADPT_TOTAL_TX_QUEUES - 1; i++) | ||
len += scnprintf(p + len, size - len, | ||
"wcb_base[%2d]: %x => %8x|%8p|%4d|%d\n", i, get_hw_spec->wcb_base[i], *((unsigned int *)le32_to_cpu(get_hw_spec->wcb_base[i])),(void *)*((unsigned int *)le32_to_cpu(get_hw_spec->wcb_base[i])),skb_queue_len(&pcie_priv->txq[i + 1]),pcie_priv->fw_desc_cnt[i + 1]); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same as above. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You can delete this part :
wcb_base must be an internal memory on the 88X8xxx chip, searching RAM is useless. |
||
"wcb_base[%2d]: %x => %8zx|%8p|%4d|%d\n", i, get_hw_spec->wcb_base[i], *((uintptr_t *)(uintptr_t)le32_to_cpu(get_hw_spec->wcb_base[i])),(void *)*((uintptr_t *)(uintptr_t)le32_to_cpu(get_hw_spec->wcb_base[i])),skb_queue_len(&pcie_priv->txq[i + 1]),pcie_priv->fw_desc_cnt[i + 1]); | ||
spin_unlock_irqrestore(&pcie_priv->tx_desc_lock, flags); | ||
} | ||
|
||
|
@@ -1342,7 +1342,7 @@ static ssize_t mwl_debugfs_regrdwr_read(struct file *file, char __user *ubuf, | |
priv->reg_value); | ||
else | ||
len += scnprintf(p + len, size - len, | ||
"error: %d(%u 0x%08x 0x%08x)\n", | ||
"error: %zd(%u 0x%08x 0x%08x)\n", | ||
ret, priv->reg_type, priv->reg_offset, | ||
priv->reg_value); | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3622,11 +3622,7 @@ int mwl_fwcmd_get_fw_core_dump(struct ieee80211_hw *hw, | |
core_dump->context = pcmd->cmd_data.coredump.context; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You'd have to test this function, I'm not sure:
in
but
Roughly speaking, for a union, if I calculate, it would be worth :
sounds strange |
||
core_dump->size_kb = pcmd->cmd_data.coredump.size_kb; | ||
core_dump->flags = pcmd->cmd_data.coredump.flags; | ||
memcpy(buff, | ||
(const void *)((u32)pcmd + | ||
sizeof(struct hostcmd_cmd_get_fw_core_dump) - | ||
sizeof(struct hostcmd_cmd_get_fw_core_dump_)), | ||
MAX_CORE_DUMP_BUFFER); | ||
memcpy(buff, pcmd->buffer, MAX_CORE_DUMP_BUFFER); | ||
|
||
mutex_unlock(&priv->fwcmd_mutex); | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
zx requires size_t.