aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorDan Carpenter <error27@gmail.com>2026-08-20 11:30:22 +0300
committerLachlan Hodges <lachlan.hodges@morsemicro.com>2026-09-02 13:48:02 +1000
commit37f018809909dfc99646b1b1f79c2b3968e7890a (patch)
tree63d9b3329780a8c0881bf873988bcb26459ee560 /scripts/Makefile.thinlto
parentwifi: mm81x: tx multicast frames from AP at primary width (diff)
wifi: mm81x: fix type bugs handling sdio_readl/writel()
The sdio_readl() and sdio_writel() functions, instead of returning kernel error codes, instead stores the error codes in a parameter. These caller functions pass should pass an int pointer to store the error code but instead pass a signed long. This will not work on big endian systems. On little endian systems passing a ssize_t means negative error codes are converted to positive values near UINT_MAX. This doesn't cause a problem at runtime because in mm81x_sdio_reg32_write() the error codes are discarded and we always return -EIO. In mm81x_sdio_reg32_read() the high bits are truncated away so the positive value is re-converted back to negative and the code works as intended. Either way, passing an int is the correct thing and is a cleanup. Fixes: b1906cea00b0 ("wifi: mm81x: add mm81x Wi-Fi HaLow driver") Signed-off-by: Dan Carpenter <error27@gmail.com> Link: https://patch.msgid.link/aoa7Hj1W7ETOrOzO@stanley.mountain Signed-off-by: Lachlan Hodges <lachlan.hodges@morsemicro.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions