diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-05-21 16:16:26 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-08-15 16:38:29 +0200 |
commit | 104cc95036b883902382fe9f90cee5028850122b (patch) | |
tree | 27892e1378a280bac218a73abed9ab60fad346b0 /rust/kernel/net.rs | |
parent | cc063d23ad80ef7d201c41b2716b1bae7c662cf9 (diff) |
drivers: misc: sram: fix up some const issues with recent attribute changes
[ Upstream commit bf7b4a0e25569ce39c6749afe363aefe5723d326 ]
The binary attribute const changes recently for the sram driver were
made in a way that hid the fact that we would be casting a const pointer
to a non-const one. So explicitly make the cast so that it is obvious
and preserve the const pointer in the sram_reserve_cmp() function.
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Thomas Weißschuh <linux@weissschuh.net>
Fixes: c3b8c358c4f3 ("misc: sram: constify 'struct bin_attribute'")
Link: https://lore.kernel.org/r/2025052125-squid-sandstorm-a418@gregkh
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'rust/kernel/net.rs')
0 files changed, 0 insertions, 0 deletions