linux/drivers/net/can/spi/mcp251xfd
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
Makefile
mcp251xfd-chip-fifo.c
mcp251xfd-core.c can: dev: add struct data_bittiming_params to group FD parameters 2025-05-21 14:33:28 +02:00
mcp251xfd-crc16.c
mcp251xfd-dump.c can: mcp251xfd: properly indent labels 2024-06-28 23:48:11 +02:00
mcp251xfd-dump.h
mcp251xfd-ethtool.c can: mcp251xfd: mcp251xfd_ring_set_ringparam(): assign missing tx_obj_num_coalesce_irq 2023-02-02 10:33:27 +01:00
mcp251xfd-ram.c can: mcp251xfd: fix ring configuration when switching from CAN-CC to CAN-FD mode 2024-08-06 09:52:00 +02:00
mcp251xfd-ram.h
mcp251xfd-regmap.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
mcp251xfd-ring.c can: mcp251xfd: Switch to use hrtimer_setup() 2025-02-18 10:35:45 +01:00
mcp251xfd-rx.c can: mcp251xfd: rx: add workaround for erratum DS80000789E 6 of mcp2518fd 2024-06-28 23:48:12 +02:00
mcp251xfd-tef.c can: mcp251xfd: mcp251xfd_get_tef_len(): work around erratum DS80000789E 6. 2024-11-26 11:42:32 +01:00
mcp251xfd-timestamp.c time/timecounter: Fix the lie that struct cyclecounter is const 2025-07-01 15:38:25 +02:00
mcp251xfd-tx.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
mcp251xfd.h can: mcp251xfd: tef: prepare to workaround broken TEF FIFO tail index erratum 2024-06-28 23:48:12 +02:00