diff options
| author | Rosen Penev <rosenp@gmail.com> | 2026-07-16 13:29:46 -0700 |
|---|---|---|
| committer | Vinod Koul <vkoul@kernel.org> | 2026-07-17 17:50:19 +0530 |
| commit | faa4ddedab7d75e0f28e2d14c14a428664deeb90 (patch) | |
| tree | 7b0ad0d0631418e140776648b3f1453fdcf56b33 /include/linux/timerqueue.h | |
| parent | 64173b6b7609acb88fb763041c9e496caa6e834d (diff) | |
dma: fsl_raid: convert descriptor stores to big-endian
The descriptor structs (fsl_re_cmpnd_frame / fsl_re_hw_desc) are
in-memory but their fields are __be32, because the structures are handed
to the device as big-endian. The driver stored CPU-endian u32 values
into them directly, which is both wrong (the engine would see
byte-swapped lengths/addresses) and flagged by sparse as a base-type
mismatch.
Wrap those stores in cpu_to_be32() so the values are little->big
converted.
Reported-by: kernel test robot <lkp@intel.com>
Link: https://lore.kernel.org/oe-kbuild-all/202008111749.yy85rFMD%25lkp@intel.com/
Assisted-by: opencode:hy3-free
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Link: https://patch.msgid.link/20260716202949.677290-2-rosenp@gmail.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions
