linux/drivers/net/can/rockchip
Greg Kroah-Hartman e78f70bad2 time/timecounter: Fix the lie that struct cyclecounter is const
In both the read callback for struct cyclecounter, and in struct
timecounter, struct cyclecounter is declared as a const pointer.

Unfortunatly, a number of users of this pointer treat it as a non-const
pointer as it is burried in a larger structure that is heavily modified by
the callback function when accessed.  This lie had been hidden by the fact
that container_of() "casts away" a const attribute of a pointer without any
compiler warning happening at all.

Fix this all up by removing the const attribute in the needed places so
that everyone can see that the structure really isn't const, but can,
and is, modified by the users of it.

Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/all/2025070124-backyard-hurt-783a@gregkh
2025-07-01 15:38:25 +02:00
..
Kconfig can: rockchip_canfd: Drop obsolete dependency on COMPILE_TEST 2024-11-04 18:01:06 +01:00
Makefile can: rockchip_canfd: add stats support for errata workarounds 2024-09-04 14:41:53 +02:00
rockchip_canfd-core.c can: dev: add struct data_bittiming_params to group FD parameters 2025-05-21 14:33:28 +02:00
rockchip_canfd-ethtool.c can: rockchip_canfd: add hardware timestamping support 2024-09-04 14:41:53 +02:00
rockchip_canfd-rx.c can: rockchip_canfd: add support for CAN_CTRLMODE_LOOPBACK 2024-09-04 14:41:53 +02:00
rockchip_canfd-timestamp.c time/timecounter: Fix the lie that struct cyclecounter is const 2025-07-01 15:38:25 +02:00
rockchip_canfd-tx.c can: rockchip_canfd: fix return type of rkcanfd_start_xmit() 2024-09-09 08:17:06 +02:00
rockchip_canfd.h can: rockchip_canfd: fix return type of rkcanfd_start_xmit() 2024-09-09 08:17:06 +02:00